/* BASE STYLES */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
html { scroll-behavior: smooth; }
body { background: #f4f7fb; color: #333; line-height: 1.6; overflow-x: hidden; }
.container { width: 90%; max-width: 1200px; margin: auto; padding: 0 15px; }

/* HEADER */
.header { 
    background: #fff; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky; 
    top: 0; 
    z-index: 1000;
.map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 20px;
}

.map-item {
    width: 100%;
}
@media (max-width: 768px) {
    .map-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
}
/* Container & Grid */
.map-section {
    padding: 60px 20px;
    background: #f7f9fc;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.map-section .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.map-section .section-subtitle {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 40px;
    color: #555;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.map-item.premium {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-item.premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.map-item.premium h5 {
    margin: 15px 0;
    font-size: 1.2rem;
    color: #333;
}

/* Iframe */
.map-item.premium iframe {
    width: 100%;
    height: 250px;
    border: 0;
    border-radius: 12px;
    transition: transform 0.3s;
}

/* Button */
.btn-directions {
    margin: 15px 0 20px;
    background: #25d366;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s, transform 0.3s;
}

.btn-directions:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .map-grid {
        grid-template-columns: 1fr;
    }
    .map-item.premium iframe {
        height: 220px;
    }
}

}
.headerFlex { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; position: relative; }
.logo img { height: 40px; width: auto; max-width: 180px; }

nav { display: flex; align-items: center; }
nav a { margin: 0 10px; text-decoration: none; color: #0d47a1; font-weight: 600; font-size: 15px; white-space: nowrap; transition: 0.3s; }
nav a:hover { color: #1565c0; background-color: #0d47a1; padding: 4px 8px; border-radius: 6px; color: #fff; }
.langBtn { background: #0d47a1; color: #fff; border: none; padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 14px; margin-left: 5px; }
.langBtn:hover {color: #0d47a1; background-color: #fff; border: 1px solid #0d47a1; }

/* MOBILE MENU & HAMBURGER */
.menu-checkbox, .hamburger { display: none; }

@media (max-width: 768px) {
    .hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; }
    .hamburger span { width: 25px; height: 3px; background: #0d47a1; transition: 0.3s; }
    
    nav { 
        display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; 
        background: #fff; text-align: center; box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out; 
    }
    .menu-checkbox:checked ~ nav { max-height: 500px; padding: 20px 0; }
    
    /* Animation to X */
    .menu-checkbox:checked + .hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .menu-checkbox:checked + .hamburger span:nth-child(2) { opacity: 0; }
    .menu-checkbox:checked + .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
}

/* HERO */
.hero { 
    background: linear-gradient(rgba(13,71,161,.85), #1e88e5d9), 
    url('https://images.unsplash.com/photo-1498050108023-c5249f4df085'); 
    background-size: cover; background-position: center; color: #fff; padding: 150px 0; text-align: center; 
}
.hero h1 { font-size: clamp(28px, 5vw, 42px); margin-bottom: 15px; }
.services-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 30px; }
.service-card { background: rgba(255, 255, 255, 0.2); padding: 6px 15px; border-radius: 20px; font-size: 14px; border: 1px solid rgba(255, 255, 255, 0.3); }
.service-card:hover { background: rgba(255, 255, 255, 0.3); border-color: rgba(255, 255, 255, 0.5); }

.btn { display: inline-block; padding: 12px 26px; border-radius: 30px; text-decoration: none; margin: 5px; font-weight: 600; transition: 0.3s; }
.btnPrimary { background: #2e7d32; color: #fff; }
.btnPrimary:hover { background: #1b5e20; color: #fff; }

.btnSecondary { background: #fff; color: #0d47a1; }
.btnSecondary:hover { background: #0d47a1; color: #fff; }

/* SECTIONS */
.services, .about, .why, .contact { padding: 70px 0; }
.section-title { font-size: clamp(28px, 4vw, 36px); margin-bottom: 10px; color: #0d47a1; text-align: center; }
.section-subtitle { color: #666; margin-bottom: 40px; text-align: center; }

#about img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.about{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: center;
    background-color: #f8f9fa;
}
.storyCard:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* GRID & CARDS */
/* Default shared grid settings (remains 4-column for Why Us / Contact) */
.grid, .whyGrid, .contactGrid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 25px; 
}
.whyGrid:hover, .contactGrid:hover {
    transform: translateY(-5px);
}

/* Specific override for Services Section to force 3 columns */
.services .grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card, .whyCard, .contactCard { 
    background: #fff; 
    padding: 30px 20px; 
    border-radius: 18px; 
    box-shadow: 0 8px 20px rgba(0,0,0,.08); 
    text-align: center; 
    transition: 0.3s; 
}
.card:hover, .whyCard:hover, .contactCard:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 12px 30px rgba(0,0,0,.15); 
}

.card i, .whyCard i { font-size: 40px; color: #0d47a1; margin-bottom: 15px; }
.whyCard { background: linear-gradient(135deg, #0d47a1, #1e88e5); color: #fff; }
.whyCard i { color: #fff; }

.aboutGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 50px; align-items: center; }
.about img { width: 100%; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.storyCard { background: #fff; padding: 20px; border-left: 5px solid #0d47a1; margin-top: 20px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,.05); }
/* FOOTER */
.footer { background: #0d47a1; color: #fff; text-align: center; padding: 25px; }
iframe { width: 100%; height: 350px; border-radius: 15px; border: none; margin-top: 30px; }

/* REVEAL ANIMATION */
.reveal { position: relative; opacity: 0; transform: translateY(40px); transition: all 1s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- URDU RTL SUPPORT --- */

/* 1. Global RTL Toggle */

.rtl-mode p, .rtl-mode h3, .rtl-mode h4 {
    line-height: 1.8; /* Gives Urdu characters room to breathe */
}

.rtl-mode {
    direction: rtl;
    text-align: right;
}

/* 2. Adjust Header for RTL */
.rtl-mode .headerFlex {
    flex-direction: row; /* Keeps logo and burger on same row but mirrored */
}

/* 3. Flip Story Card Borders */
.rtl-mode .storyCard {
    border-left: none;
    border-right: 5px solid #0d47a1;
}

/* 4. Fix Icons (Prevent icons from mirroring/looking weird) */
.rtl-mode i {
    direction: ltr;
    display: inline-block;
}

/* 5. Mobile Adjustments for RTL */
@media (max-width: 768px) {
    .rtl-mode .hamburger {
        margin-left: 0;
        margin-right: auto; /* Pushes burger to left since logo is now right */
    }
    
    .rtl-mode nav {
        left: auto;
        right: 0;
    }
}

/* 6. Fix Button/Service Card spacing for RTL */
.rtl-mode .langBtn {
    margin-left: 0;
    margin-right: 5px;
}

.rtl-mode .btn {
    margin: 5px;
}

/* WHATSAPP FLOATING BUTTON */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 10000; /* Higher than header and reveals */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #fff;
}

/* Adjust position for RTL mode so it doesn't block text */
.rtl-mode .whatsapp-float {
    right: auto;
    left: 40px;
}

/* Pulse Animation */
@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
    animation: pulse-wa 2s infinite;
}

/* FOOTER SOCIALS */
.footer {
    background: #0d47a1;
    color: #fff;
    text-align: center;
    padding: 40px 0 25px; /* Increased top padding for spacing */
}

.footer-socials {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-socials a {
    color: #fff;
    font-size: 18px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: #fff;
    color: #0d47a1;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Ensure footer text stays centered in RTL */
.rtl-mode .footer {
    text-align: center;
}

/* CONTACT MAP GRID */
.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.map-item h4 {
    margin-bottom: 12px;
    color: #0d47a1;
    font-size: 1.1rem;
    text-align: left;
}

/* RTL Support for Map Labels */
.rtl-mode .map-item h4 {
    text-align: right;
}

.map-item iframe {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.map-item iframe:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* DIRECTIONS BUTTON STYLES */
.btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #0d47a1;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-directions:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
    color: #fff;
}

.btn-directions i {
    font-size: 1.1rem;
}

/* RTL Adjustment for Button Icon */
.rtl-mode .btn-directions {
    flex-direction: row-reverse;
}

/* Fix for phone numbers in RTL/Urdu mode */
.phone-number {
    direction: ltr !important;
    display: inline-block;
    unicode-bidi: embed;
    font-family: 'Poppins', sans-serif; /* Keep numbers in a clean English font */
}

.rtl-mode .phone-number {
    margin-right: 5px; /* Adds space after the icon in Urdu mode */
}
/* Space between icon and text for English (LTR) */
.contact-icon {
    margin-right: 12px;
    color: #0d47a1; /* Match your brand blue */
}

/* Space between icon and text for Urdu (RTL) */
.rtl-mode .contact-icon {
    margin-right: 0;
    margin-left: 12px;
}

.services .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
    background-color: #5691eb; /* Light green background on hover */
    color: #fff;
}

/* Ensure the phone number doesn't reverse in Urdu */
.phone-number {
    direction: ltr;
    display: inline-block;
}

/* COMPACT MAP STYLES */
.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Narrower columns */
    gap: 20px;
    margin-top: 25px;
}

.map-item.compact {
    padding: 12px;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 15px;
}

.map-item h5 {
    font-size: 0.95rem; /* Smaller text */
    margin-bottom: 10px;
    color: #0d47a1;
}

/* SMALLER DIRECTIONS BUTTON */
.btn-directions-compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 15px;
    background-color: #0d47a1;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem; /* Smaller font */
    transition: 0.3s;
}

.btn-directions-compact:hover {
    background-color: #1565c0;
    color: #fff;
}

/* RTL ADJUSTMENT */
.rtl-mode .map-item h5 {
    text-align: right;
}
.rtl-mode .btn-directions-compact {
    flex-direction: row-reverse;
}

/* BACK TO TOP BUTTON */
/* BACK TO TOP - DEFAULT (English/Left) */
.back-to-top {
    position: fixed;
    bottom: 90px;
    left: 20px; /* Default position for English */
    right: auto;
    width: 45px;
    height: 45px;
    background-color: #0d47a1;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* Controlled by JS */
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

/* BACK TO TOP - URDU (Right) */
.rtl-mode .back-to-top {
    left: auto;
    right: 20px; /* Move to right for Urdu */
}

.back-to-top:hover {
    background-color: #1565c0;
    transform: translateY(-5px);
}

.back-to-top:hover {
    background-color: #1565c0;
    transform: translateY(-5px);
}

/* Adjust for RTL mode if you want the button on the other side */
.rtl-mode .back-to-top {
    right: auto;
    left: 20px;
}

/* WHATSAPP - DEFAULT (English/Right) */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    /* your existing styling */
}

/* WHATSAPP - URDU (Left) */
.rtl-mode .whatsapp-float {
    right: auto;
    left: 20px;
}

.credits {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    display: inline-block;
}

.credits p {
    margin: 5px 0;
    color: #cbd5e0; /* A soft grey to distinguish it from the main copyright */
}

.credits strong {
    color: #fff;
}

.credits a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}
.credits a:hover {
    color: #00050a;
    background-color: transparent;
}
/* Forces phone numbers to stay LTR even in Urdu/RTL mode */
.phone-number, 
[href^="tel:"] {
    direction: ltr !important;
    display: inline-block;
    unicode-bidi: embed;
}

/* Fix for the separator bar in RTL */
.rtl-mode .footer-contact span {
    direction: ltr;
    display: inline-block;
}

.main-footer {
    background: #0c6dc2d9;
    color: #ffffff;
    padding: 60px 20px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-brand h3 {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.footer-brand span {
    color: #022266; /* Accent color */
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background: #022266;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: #ffffff;
    transform: translateY(-5px);
}

.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 0 0 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-col {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.footer-col i {
    font-size: 1.5rem;
    color: #022266;
}

.col-text {
    display: flex;
    flex-direction: column;
}

.col-text .label {
    color:#022266;
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 5px;
}

.col-text a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
    font-weight: 500;

}

.col-text a:hover {
    color: #022266;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(90, 5, 5, 0.1);
    padding-top: 25px;
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-bottom p { margin-bottom: 10px; }

.footer-bottom a {
    color: #022266;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-top { text-align: center; justify-content: center; }
    .footer-grid { text-align: left; }
}