/* ==========================================================================
   Countries Core Styles
   ========================================================================== */

/* Hero Section */
.country-hero-section {
    padding: 180px 0 100px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: var(--text-white);
    text-align: center;
}

.country-hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(4, 8, 20, 0.4) 0%, rgba(4, 8, 20, 0.1) 100%);
    z-index: 0;
}

.country-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.country-flag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 90px;
    background: #fff;
    border-radius: 12px;
    border: 4px solid white;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    overflow: hidden;
}

.country-flag-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.country-hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.country-hero-title span {
    color: var(--secondary-color);
}

.country-hero-subtitle {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 30px;
}

.country-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.1);
    padding: 10px 25px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    display: inline-flex;
}

.country-breadcrumb a {
    color: #fff;
    transition: var(--transition);
}

.country-breadcrumb a:hover {
    color: var(--secondary-color);
}

.country-breadcrumb span {
    color: var(--secondary-color);
    font-weight: 600;
}

/* ==========================================================================
   Common Country Sections
   ========================================================================== */
.country-section {
    padding: 80px 0;
}

.bg-light {
    background-color: #f8f9fa;
}

.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title span {
    color: var(--secondary-color);
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Quick Facts Section
   ========================================================================== */
.quick-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.fact-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.fact-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    background: rgba(212,175,55,0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.fact-content {
    display: flex;
    flex-direction: column;
}

.fact-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 5px;
}

.fact-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ==========================================================================
   Why Study Section
   ========================================================================== */
.why-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.why-study-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.why-study-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212,175,55,0.3);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.why-study-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.why-study-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.why-study-desc {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .country-hero-section {
        padding: 150px 0 80px;
    }
    
    .country-hero-content h1 {
        font-size: 2.5rem;
    }
}

/* ==========================================================================
   Data Tables & Essential Guide
   ========================================================================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.country-data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 30px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.country-data-table thead th {
    background: var(--primary-color);
    color: #fff;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1.05rem;
}

.country-data-table tbody td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    color: #444;
    line-height: 1.6;
}

.country-data-table tbody tr:last-child td {
    border-bottom: none;
}

.country-data-table tbody tr:hover td {
    background: #f9fbff;
}

.country-data-table.alt-table thead th {
    background: #f8f9fa;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-gold {
    background: rgba(212,175,55,0.15);
    color: var(--secondary-color);
    border: 1px solid rgba(212,175,55,0.3);
}

/* ==========================================================================
   Education System Timeline & Grading
   ========================================================================== */
.education-timeline {
    position: relative;
    padding-left: 30px;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(212,175,55,0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px rgba(212,175,55,0.3);
}

.timeline-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.timeline-content h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.duration-badge {
    display: inline-block;
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.duration-badge i {
    margin-right: 5px;
}

.timeline-content p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.grading-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.grade-card {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s ease;
}

.grade-card:hover {
    transform: translateX(5px);
    border-left-color: var(--secondary-color);
}

.grade-percent {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
    min-width: 80px;
}

.grade-details {
    display: flex;
    flex-direction: column;
}

.grade-class {
    font-weight: 700;
    color: #333;
}

.grade-equiv {
    font-size: 0.85rem;
    color: #777;
}

/* ==========================================================================
   Institutions & Scholarships
   ========================================================================== */
.institutions-grid, .scholarships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.institution-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.institution-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212,175,55,0.3);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.institution-number {
    position: absolute;
    top: -15px;
    right: -10px;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(212,175,55,0.1);
    line-height: 1;
}

.institution-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.institution-desc {
    color: #666;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

.scholarship-card {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-left: 4px solid var(--secondary-color);
}

.scholarship-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.scholarship-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    background: rgba(212,175,55,0.1);
    min-width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scholarship-content h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.scholarship-content p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Intakes Section
   ========================================================================== */
.intakes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.intake-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 4px solid var(--secondary-color);
    transition: transform 0.3s ease;
}

.intake-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.intake-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.intake-aka {
    display: block;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
    font-style: italic;
}

.intake-overview {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.intake-best-for {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #444;
    border-left: 3px solid var(--primary-color);
}

/* ==========================================================================
   Admission Requirements Section
   ========================================================================== */
.admission-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.admission-card:hover {
    border-color: rgba(212,175,55,0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.admission-area {
    color: var(--primary-color);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ddd;
}

.admission-details {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Career & PR Section
   ========================================================================== */
.psw-box {
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.3);
    padding: 20px;
    border-radius: 8px;
    display: inline-block;
}

.psw-box h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.psw-box p {
    margin: 0;
    color: #444;
    font-weight: 500;
}

.career-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.career-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 3px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.career-card:hover {
    transform: translateY(-5px);
}

.career-card h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.career-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.career-card ul li {
    margin-bottom: 10px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.salary-highlight {
    color: var(--secondary-color);
    font-weight: 700;
}

.pr-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.pr-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    opacity: 0.2;
}

.pr-step {
    position: relative;
    padding-left: 70px;
    margin-bottom: 30px;
}

.pr-step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: 0 0 0 5px rgba(10,37,64,0.1);
}

.pr-step-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.pr-step-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.pr-step-content p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .country-hero-section {
        padding: 150px 0 80px;
    }
    .country-hero-title {
        font-size: 3rem;
    }
    .country-hero-subtitle {
        font-size: 1rem;
    }
    .country-flag-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

/* ==========================================================================
   FAQ Section Styles
   ========================================================================== */
.faq-section {
    background-color: #ffffff;
    padding: 100px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .faq-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 5rem;
    }
}

.faq-badge {
    display: inline-block;
    color: #ffaa00;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.faq-title {
    font-size: 2.8rem;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
    color: #0b1c3c;
    margin-bottom: 2.5rem;
    line-height: 1.2;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border-left: 4px solid transparent;
}

.faq-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
}

.faq-item.active {
    border-color: #ffaa00;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-left: 4px solid #ffaa00;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #111827;
}

.faq-question i {
    color: #ffaa00;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    background: #fff8eb;
    padding: 8px;
    border-radius: 50%;
}

.faq-answer {
    margin-top: 1rem;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.7;
    border-top: 1px solid #f3f4f6;
    padding-top: 1rem;
}

.faq-image-wrapper {
    position: relative;
    padding: 20px;
    max-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.faq-image {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
    min-height: 400px;
    max-height: 700px;
    object-fit: cover;
    object-position: center;
}

.faq-decor {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.faq-decor-1 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #1a56db 0%, #3b82f6 100%);
    top: -10px;
    right: 0;
    opacity: 0.1;
}

.faq-decor-2 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ffaa00 0%, #ff8800 100%);
    bottom: 0;
    left: 0;
    opacity: 0.15;
}

/* ==========================================================================
   Responsive / Mobile Fixes for Countries Page
   ========================================================================== */
@media (max-width: 991px) {
    .country-hero-title { font-size: 3rem; }
    .country-hero-section { padding: 140px 0 60px; }
    
    .timeline::before { left: 30px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 20px; text-align: left; left: 0 !important; }
    .timeline-dot { left: 30px !important; }
    .timeline-item .timeline-content::before {
        left: -10px;
        right: auto;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }
}

@media (max-width: 767px) {
    .country-hero-title { font-size: 2.2rem; }
    .country-hero-subtitle { font-size: 1rem; }
    .country-section { padding: 50px 0; }
    .country-flag-icon { width: 100px; height: 65px; border-width: 2px; }
    
    .timeline::before { left: 20px; }
    .timeline-item { padding-left: 50px; }
    .timeline-dot { left: 20px !important; width: 16px; height: 16px; }
    
    .faq-question { font-size: 1rem; }
    .faq-item { padding: 1rem; }
    .faq-image { min-height: 250px; }
}
