/* Country Pages Styles */

/* Country Hero */
.country-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.country-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.country-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.9), rgba(26, 54, 93, 0.7));
}

.country-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.country-hero-content {
    padding: 60px 20px;
}

.country-flag {
    margin-bottom: 20px;
}

.country-flag img {
    width: 120px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.country-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.country-hero p {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* Country Info Grid */
.country-info {
    background: #f8f9fa;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.info-card {
    background: white;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-color, #1a365d);
    margin-bottom: 15px;
}

.info-card h4 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.info-card p {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

/* Why Study Section */
.why-study {
    background: white;
}

.why-study h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color, #1a365d);
    margin-bottom: 50px;
}

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

.why-item {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.why-item i {
    font-size: 2.5rem;
    color: var(--primary-color, #1a365d);
    margin-bottom: 20px;
}

.why-item h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 12px;
}

.why-item p {
    color: #666;
    line-height: 1.7;
}

/* Universities Section */
.universities {
    background: #f8f9fa;
}

.universities h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color, #1a365d);
    margin-bottom: 50px;
}

.university-card {
    background: white;
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.university-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.university-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color, #1a365d);
}

.university-header .year {
    background: var(--primary-color, #1a365d);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.university-desc {
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
}

.faculties {
    margin-bottom: 25px;
}

.faculties h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faculties h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-color, #1a365d);
    border-radius: 2px;
}

.faculties ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
}

.faculties li {
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #555;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faculties li::before {
    content: '✓';
    color: var(--primary-color, #1a365d);
    font-weight: bold;
}

.fees-table h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fees-table h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #c9a227;
    border-radius: 2px;
}

.fees-table table {
    width: 100%;
    border-collapse: collapse;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

.fees-table th,
.fees-table td {
    padding: 15px 20px;
    text-align: left;
}

.fees-table th {
    background: var(--primary-color, #1a365d);
    color: white;
    font-weight: 600;
}

.fees-table tr:nth-child(even) {
    background: #f0f0f0;
}

.fees-table td:last-child {
    font-weight: 600;
    color: var(--primary-color, #1a365d);
}

/* Living Costs Section */
.living-costs {
    background: white;
}

.living-costs h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color, #1a365d);
    margin-bottom: 50px;
}

.costs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.cost-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
}

.cost-card i {
    font-size: 2.5rem;
    color: var(--primary-color, #1a365d);
    margin-bottom: 20px;
}

.cost-card h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
}

.cost-details {
    text-align: left;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.cost-item:last-child {
    border-bottom: none;
}

.cost-item span {
    color: #666;
}

.cost-item strong {
    color: var(--primary-color, #1a365d);
}

.total-cost {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color, #1a365d), #2d4a7c);
    color: white;
    padding: 40px;
    border-radius: 16px;
}

.total-cost h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.total-cost .total-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.total-cost .note {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Language Courses Section */
.language-courses {
    background: #f8f9fa;
}

.language-courses h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color, #1a365d);
    margin-bottom: 20px;
}

.language-courses > .container > p {
    text-align: center;
    color: #666;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.language-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.lang-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.lang-item h4 {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.lang-item p {
    color: var(--primary-color, #1a365d);
    font-size: 1.2rem;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color, #1a365d), #2d4a7c);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-3px);
}

/* RTL Support */
[dir="rtl"] .university-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .faculties h4::before,
[dir="rtl"] .fees-table h4::before {
    margin-left: 10px;
    margin-right: 0;
}

[dir="rtl"] .fees-table th,
[dir="rtl"] .fees-table td {
    text-align: right;
}

[dir="rtl"] .cost-item {
    flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 768px) {
    .country-hero {
        min-height: 350px;
    }
    
    .country-hero h1 {
        font-size: 2rem;
    }
    
    .country-hero p {
        font-size: 1.1rem;
    }
    
    .university-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .university-header h3 {
        font-size: 1.3rem;
    }
    
    .fees-table {
        overflow-x: auto;
    }
    
    .fees-table table {
        min-width: 400px;
    }
    
    .total-cost .total-amount {
        font-size: 2rem;
    }
    
    .cta-section h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .country-hero h1 {
        font-size: 1.7rem;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .university-card {
        padding: 25px 20px;
    }
}
