/* ==========================================================================
   1. VARIABLES & SYSTEM DEFAULTS
   ========================================================================== */
:root {
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --text-primary: #1e293b; /* Soft dark slate for better readability */
    --text-secondary: #475569;
    --brand-blue: #1e40af;
    --brand-blue-hover: #1e3a8a;
    --brand-gold: #b45309;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --transition-fast: all 0.2s ease-in-out;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.8; /* Increased line-height for easier reading */
    font-size: 17px;  /* Comfortable reading base size */
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 15px 24px; /* Fixed pixel padding to prevent tight edges */
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo h2 {
    margin: 0;
    color: var(--brand-blue);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.logo p {
    margin: 2px 0 0 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--brand-blue);
}

.call-btn {
    background: var(--brand-blue);
    color: #ffffff !important;
    padding: 9px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.call-btn:hover {
    background: var(--brand-blue-hover);
    transform: translateY(-1px);
}

/* GLOBAL ICON SIZING LOCK (Prevents oversized icons anywhere) */
.call-btn svg,
.call-btn i,
.call-btn img,
.site-mobile-bar svg,
.site-mobile-bar img,
svg, i {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    font-size: 18px !important;
    flex-shrink: 0 !important;
    display: inline-block;
    vertical-align: middle;
}

/* ==========================================================================
   3. HERO SECTION & PROFILE CARD
   ========================================================================== */
.hero-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 45px 24px; /* Fixed padding for clean side space */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 2.1rem;
    color: var(--brand-blue);
    margin: 0 0 10px 0;
    font-weight: 800;
    line-height: 1.25;
}

.subtitle {
    color: var(--brand-gold);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1.7;
}

.profile-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    width: 280px;
    text-align: center;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.profile-card:hover {
    border-color: var(--brand-blue);
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brand-blue);
    margin-bottom: 10px;
}

.profile-card h3 {
    color: var(--brand-blue);
    margin: 5px 0;
    font-size: 1.2rem;
}

.profile-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 4px 0;
}

/* ==========================================================================
   4. LIVE SEARCH BAR COMPONENT (OVERLAP FIX)
   ========================================================================== */
.search-container {
    position: relative;
    max-width: 750px;
    margin: 25px auto 15px auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.search-input {
    width: 100%;
    padding: 12px 75px 12px 16px !important; /* Right padding badhaya taaki text icons ke neeche na jaye */
    font-size: 0.95rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    background-color: #ffffff;
    color: var(--text-primary);
    outline: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.search-input:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}

.search-icon {
    position: absolute;
    right: 36px; /* Positioned to the far right */
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
}

.clear-search {
    position: absolute;
    right: 60px; /* Positioned separately from search icon to prevent overlap */
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    display: none;
}

.clear-search:hover {
    color: var(--text-primary);
}

.searchable-item.js-search-hidden {
    display: none !important;
}

/* ==========================================================================
   5. CONTENT & ARTICLE STYLING (READABILITY & MARGINS)
   ========================================================================== */
.content-container {
    padding: 30px 24px; /* Fixed pixel padding ensures clean edges on all devices */
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
}

.info-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--brand-blue);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.info-card:hover {
    box-shadow: var(--shadow-md);
}

.info-card h2 {
    color: var(--brand-blue);
    font-size: 1.5rem;
    margin-top: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.info-card h3 {
    color: var(--brand-gold);
    font-size: 1.25rem;
    margin-top: 20px;
}

.info-card h4 {
    color: var(--brand-blue);
    font-size: 1.1rem;
    margin-top: 15px;
}

.info-card p {
    color: var(--text-primary);
    font-size: 1.02rem; /* Readable font size */
    line-height: 1.8;   /* Comfortable line height */
    margin-bottom: 14px;
}

.info-card ul {
    padding-left: 22px;
}

.info-card li {
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 1.02rem;
    line-height: 1.75;
}

/* ==========================================================================
   6. CONTACT SECTION & FORM
   ========================================================================== */
.contact-section {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    padding: 40px 24px; /* Clean edge spacing */
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.address-details, 
.contact-form {
    flex: 1;
    min-width: 280px;
}

.address-details h2, 
.contact-form h3 {
    color: var(--brand-blue);
    margin-top: 0;
    font-size: 1.5rem;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #ffffff;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.contact-form button {
    width: 100%;
    background: var(--brand-blue);
    color: #ffffff;
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.contact-form button:hover {
    background: var(--brand-blue-hover);
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.main-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ==========================================================================
   8. RESPONSIVE MEDIA QUERIES (MOBILE & TABLET FIXES)
   ========================================================================== */
@media (max-width: 900px) {
    .main-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 12px 18px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .hero-section {
        flex-direction: column;
        padding: 30px 18px;
        text-align: center;
    }

    .profile-card {
        width: 100%;
        max-width: 320px;
    }

    .content-container {
        padding: 20px 18px; /* Strict mobile side padding ensures text won't touch screen edges */
    }

    .contact-section {
        padding: 30px 18px;
        flex-direction: column;
        gap: 25px;
    }

    .info-card {
        padding: 18px 16px; /* Compact padding for small screens */
    }

    .info-card p,
    .info-card li {
        font-size: 0.98rem; /* Mobile reading optimization */
        line-height: 1.7;
    }
}