/* ==========================================================================
   BRC BACHHAWARA - PORTAL LANDING PAGE STYLES
   ========================================================================== */

/* Modern layout adjustments for the landing page */
.landing-body {
    background-color: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.flex-grow {
    flex-grow: 1;
}


/* Premium Header styling */
.landing-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--text-white);
    padding: 16px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid #eab308; /* Gold/Yellow Govt strip */
    position: relative;
    z-index: 100;
}

.landing-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Logos & Branding Group */
.branding-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.gov-logo-img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
    transition: transform 0.3s ease;
}

.gov-logo-img:hover {
    transform: scale(1.05);
}

.header-text-block {
    display: flex;
    flex-direction: column;
}

.header-text-block h1 {
    color: var(--text-white);
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.header-text-block p {
    font-size: 11px;
    color: #94a3b8;
    margin: 4px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

/* Right-aligned branch branding */
.branch-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.branch-logo-img {
    height: 60px;
    width: auto;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: white;
    padding: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.branch-logo-img:hover {
    transform: rotate(5deg) scale(1.05);
}

/* Hero Section */
.hero-section {
    padding: 60px 0 40px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Hero Content */
.hero-content {
    display: flex;
    flex-direction: column;
}

.govt-badge {
    align-self: flex-start;
    background-color: #fef3c7;
    color: #b45309;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 9999px;
    margin-bottom: 20px;
    border: 1px solid #fde68a;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 38px;
    color: #0f172a;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-title span {
    background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: #475569;
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.5;
}

.hero-description {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Office Image Showcase Container */
.hero-image-showcase {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    border: 6px solid #ffffff;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-image-showcase:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.15);
}

.office-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.image-overlay-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0) 100%);
    color: #ffffff;
    padding: 24px 20px 16px 20px;
    font-size: 13px;
    font-weight: 500;
}

.image-overlay-caption p {
    margin: 0;
    letter-spacing: 0.5px;
}

/* Portal Section */
.portal-section-wrapper {
    background-color: #f1f5f9;
    padding: 60px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.section-header {
    text-align: center;
    margin-bottom: 45px;
}

.section-header h2 {
    font-size: 28px;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.portal-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

/* Modernized Portal login card */
.portal-card-modern {
    background-color: var(--bg-card);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.portal-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: background-color 0.3s ease;
}

.portal-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(79, 70, 229, 0.15);
    border-color: #cbd5e1;
}

.portal-card-modern.hm-card:hover::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.portal-card-modern.brc-card:hover::before {
    background: linear-gradient(90deg, #4f46e5, #3b82f6);
}

.card-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.hm-card .card-icon-wrapper {
    background-color: #ecfdf5;
}

.brc-card .card-icon-wrapper {
    background-color: #eff6ff;
}

.portal-card-modern:hover .card-icon-wrapper {
    transform: scale(1.1);
}

.portal-card-modern h3 {
    font-size: 22px;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 4px;
}

.portal-card-modern .lang-sub {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 16px;
}

.portal-card-modern .portal-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 28px;
    flex-grow: 1;
}

/* Action button inside card */
.portal-action-btn {
    width: 100%;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.hm-card .portal-action-btn {
    background-color: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.hm-card .portal-action-btn:hover {
    background-color: #059669;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.brc-card .portal-action-btn {
    background-color: #4f46e5;
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.brc-card .portal-action-btn:hover {
    background-color: #3b82f6;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}

/* Footer redesign */
.landing-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 40px 0 20px 0;
    border-top: 4px solid #eab308;
    font-size: 13px;
    line-height: 1.6;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0.6;
    margin-bottom: 10px;
}

.footer-logo-small {
    height: 35px;
    width: auto;
    filter: grayscale(100%) brightness(1.5);
}

.landing-footer p {
    margin: 0;
}

.landing-footer .copyright {
    color: #64748b;
    margin-top: 10px;
    font-size: 12px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Mobile Friendly Overrides)
   ========================================================================== */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .office-img {
        height: 320px;
    }
    
    .hero-title {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .landing-header-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .branding-group {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .header-text-block h1 {
        font-size: 18px;
    }
    
    .branch-group {
        justify-content: center;
    }
    
    .hero-section {
        padding: 30px 0;
    }
    
    .hero-title {
        font-size: 26px;
        text-align: center;
    }
    
    .govt-badge {
        align-self: center;
    }
    
    .hero-subtitle {
        font-size: 15px;
        text-align: center;
    }
    
    .hero-description {
        font-size: 14px;
        text-align: center;
    }
    
    .hero-image-showcase {
        border-width: 4px;
    }
    
    .office-img {
        height: 240px;
    }
    
    .portal-grid-modern {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .portal-card-modern {
        padding: 30px 20px;
    }
}
