/* FAQ Specific Styles */

/* Fix for navbar overlap */
body {
    padding-top: 80px;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fc;
    margin: 0;
    color: #1a1a2e;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Section */
.faq-header {
    background: linear-gradient(135deg, #2b4e87 0%, #77c7b5 100%);
    color: white;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    margin-top: -80px;
}

.faq-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(119, 199, 181, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(244, 198, 50, 0.15) 0%, transparent 50%);
}

.faq-header .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.faq-header .header-content {
    flex: 1;
    max-width: 600px;
}

.faq-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.faq-header .header-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.faq-header .image-placeholder {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 8rem;
}

/* Main Content Section */
.main-content-section {
    padding: 80px 0;
    background: white;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: start;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.content-text h2 {
    font-size: 2.2rem;
    color: #2b4e87;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.content-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.key-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.key-highlight-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    border: 1px solid rgba(43, 78, 135, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    height: 100%;
    box-sizing: border-box;
}

/* Ensure uniform card sizes */
.key-highlight-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 280px;
    padding: 2.5rem 1.5rem;
}

.key-highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(43, 78, 135, 0.15);
    border-color: rgba(43, 78, 135, 0.3);
}

.key-highlight-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2b4e87 0%, #77c7b5 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.3);
    flex-shrink: 0;
}

.key-highlight-card h3 {
    font-size: 1.3rem;
    margin: 0;
    color: #1c749c;
    font-weight: 700;
    line-height: 1.4;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 0.5rem;
    min-height: 60px;
}

/* Footer */
footer {
    background: #0d1321;
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h3 {
    color: #77c7b5;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-section p, 
.footer-section li a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a:hover {
    color: #77c7b5;
}

.footer-bottom {
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
    margin-top: 1rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 1rem;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-legal a:hover {
    color: #77c7b5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .key-highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .faq-header {
        margin-top: -70px;
        padding: 50px 0 60px 0;
    }
    
    .faq-header .container {
        flex-direction: column;
        text-align: center;
        padding-top: 70px;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .faq-header h1 {
        font-size: 2.5rem;
    }
    
    .header-subtitle {
        font-size: 1.2rem;
    }
    
    .faq-header .image-placeholder {
        width: 200px;
        height: 200px;
        font-size: 5rem;
    }
    
    .content-text h2 {
        font-size: 2.2rem;
    }
    
    .key-highlights-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .key-highlight-card {
        padding: 2.5rem 2rem;
        min-height: 250px;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .key-highlight-icon {
        font-size: 2rem;
        width: 70px;
        height: 70px;
    }
    
    .key-highlight-card h3 {
        font-size: 1.2rem;
        min-height: 55px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }
    
    .faq-header {
        margin-top: -60px;
        padding: 40px 0 50px 0;
    }
    
    .faq-header .container {
        padding-top: 60px;
    }
    
    .faq-header h1 {
        font-size: 2rem;
    }
    
    .faq-header .image-placeholder {
        width: 180px;
        height: 180px;
        font-size: 4rem;
    }
    
    .content-text h2 {
        font-size: 1.8rem;
    }
    
    .key-highlight-card {
        padding: 2rem 1.5rem;
        min-height: 230px;
    }
    
    .key-highlight-icon {
        font-size: 1.8rem;
        width: 60px;
        height: 60px;
    }
    
    .key-highlight-card h3 {
        font-size: 1.1rem;
        min-height: 50px;
    }
}

.key-highlight-card:nth-child(4) {
    margin-left: auto;
    margin-right: auto;
    grid-column: 2 / span 2;
}

@media (max-width: 1024px) {
    .key-highlight-card:nth-child(4) {
        grid-column: 1 / span 2;
        justify-self: center;
    }
}

@media (max-width: 768px) {
    .key-highlight-card:nth-child(4) {
        grid-column: 1;
    }
}

/* Center only the 4th box */
.key-highlight-card:nth-child(4) {
    margin-left: auto;
    margin-right: auto;
    grid-column: 2; /* Position it in the 3rd column */
}

@media (max-width: 1024px) {
    .key-highlight-card:nth-child(4) {
        grid-column: 2; /* Position it in the 2nd column (for 2-column layout) */
        justify-self: center;
    }
}

@media (max-width: 768px) {
    .key-highlight-card:nth-child(4) {
        grid-column: 1;
        margin: 0 auto;
    }
}

/* Header Image - Medium/Fit Size without outline */
.faq-header .header-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    width: 100%;
    max-width: 320px; /* Medium size */
    height: 240px; /* Fit size */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.header-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Shows full image without cropping */
    transition: transform 0.6s ease;
}

.header-img:hover {
    transform: scale(1.04);
}

/* Remove the old image-placeholder styles */
.faq-header .image-placeholder {
    display: none;
}

/* Responsive adjustments for the image */
@media (max-width: 768px) {
    .image-container {
        max-width: 260px; /* Medium size for tablet */
        height: 195px;
    }
}

@media (max-width: 480px) {
    .image-container {
        max-width: 220px; /* Medium size for mobile */
        height: 165px;
    }
}