/* 
    Premium Education Consultancy - Blue & White Theme
    Theme: Clean Light with Blue accents
    Typography: Playfair Display (Serif) & Poppins (Sans-serif)
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #A50000;
    --secondary: #4B367C;
    --accent: #8B004B;
    --bg-light: #FFFFFF;
    --bg-alt: #F8F9FA;
    --text-dark: #333333;
    --text-heading: #000000;
    --text-muted: #666666;
    --border: #EEEEEE;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.serif {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
}

.study-abroad-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.study-abroad-header p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

/* Utilities */
.container {
    width: 92%;
    max-width: 1300px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Responsive Utilities */
.grid-responsive {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: center;
}

@media (max-width: 768px) {
    .grid-responsive {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.grid-2col-responsive {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(30px, 5vw, 50px);
    align-items: center;
    margin-top: clamp(30px, 5vw, 60px);
}

@media (max-width: 768px) {
    .grid-2col-responsive {
        grid-template-columns: 1fr;
    }
}

/* Course Detail Page Grid */
.course-detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: clamp(30px, 5vw, 40px);
}

@media (max-width: 768px) {
    .course-detail-grid {
        grid-template-columns: 1fr;
    }

    .course-detail-grid .sidebar {
        margin-top: 30px;
    }
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.page-header-padding {
    padding-top: 150px;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
        min-height: 44px;
    }
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(165, 0, 0, 0.4);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(75, 54, 124, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: var(--transition);
    background: transparent;
}

nav.scrolled {
    background: var(--glass);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-auth {
    display: flex;
    gap: 15px;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
    width: auto;
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }

    .logo img {
        height: 35px !important;
        width: auto !important;
    }
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

@media (max-width: 1100px) {
    .nav-links {
        gap: 20px;
    }

    .nav-main {
        gap: 20px;
    }
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    padding: 20px 0;
    border-top: 3px solid var(--primary);
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    padding: 12px 25px;
    display: block;
    border-bottom: 1px solid #f5f5f5;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

/* Sticky Sidebar */
.sticky-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    /* Above navbar */
}

.sticky-btn {
    writing-mode: vertical-rl;
    background: var(--primary);
    color: white;
    padding: 20px 12px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 0 10px 10px 0;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    display: block;
    transition: var(--transition);
}

.sticky-btn:hover {
    padding-left: 20px;
}

/* Hide sticky sidebar on small mobile screens */
@media (max-width: 600px) {
    .sticky-sidebar {
        display: none;
    }
}

/* Hero Slider */
.hero-slider {
    min-height: clamp(60vh, 80vh, 100vh);
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    max-width: 800px;
}

.hero-content h1 {
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column;
        gap: 10px;
    }
}

/* Destination Cards */
.dest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: stretch;
    justify-items: stretch;
}

.dest-card {
    min-height: clamp(280px, 35vw, 350px);
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    display: grid;
    grid-template-rows: 1fr;
    place-items: stretch;
}

.dest-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    flex-shrink: 0;
}

.dest-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(165, 0, 0, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 30px;
    color: white;
    transition: var(--transition);
    text-align: left;
}

.dest-card:hover img {
    transform: scale(1.1);
}

.dest-card:hover .dest-overlay {
    background: rgba(165, 0, 0, 0.7);
}

/* Process Timeline */
.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 20%;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-weight: 700;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    min-height: clamp(180px, 30vw, 250px);
    border-radius: 15px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Services Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid rgba(165, 0, 0, 0.1);
    background: var(--glass);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(165, 0, 0, 0.05) 0%, rgba(75, 54, 124, 0.05) 100%);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(165, 0, 0, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
    display: inline-block;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent);
}

.service-card h3 {
    margin-bottom: 15px;
    transition: var(--transition);
}

.service-card:hover h3 {
    color: var(--primary);
}

.service-desc {
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Big Footer */
.footer {
    background: #111;
    color: white;
    padding: 80px 0 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    padding: 10px;
    width: 100%;
    border: none;
    border-radius: 5px;
    outline: none;
    color: #333;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #999;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.footer-contact p {
    color: #999;
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #222;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: inherit;
    text-decoration: none;
}

/* Mobile Navigation */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1002;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 5px;
    transition: var(--transition);
}

.hamburger.active div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 992px) {
    .nav-main {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: white;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        overflow-y: auto;
        transition: right 0.3s ease;
    }

    .nav-main.active {
        display: flex;
        flex-direction: column;
        right: 0;
    }

    .hamburger {
        display: block;
        order: 3;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        border-top: none;
        padding: 10px 0 10px 20px;
        transform: none;
        width: 100%;
        min-width: 0;
        background: var(--bg-alt);
        border-radius: 10px;
        margin-top: 10px;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding: 12px 0;
        border-bottom: none;
        font-size: 0.9rem;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 20px;
        list-style: none;
        width: 100%;
    }

    .nav-auth {
        display: flex;
        gap: 15px;
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid var(--border);
    }

    .nav-auth .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        flex: 1;
    }

    /* Hide Register on very small screens to save space, or keep it */
    @media (max-width: 480px) {
        .nav-auth .btn-primary {
            display: none;
        }

        /* Hide Register, keep Login */
    }

    /* Mobile Timeline Fix */
    .timeline {
        flex-direction: column;
        gap: 30px;
        padding-left: 20px;
    }

    .timeline::before {
        left: 45px;
        top: 0;
        width: 2px;
        height: 100%;
        display: block;
        /* Vertical line */
    }

    .timeline-step {
        width: 100%;
        text-align: left;
        display: flex;
        align-items: flex-start;
        gap: 25px;
    }

    .step-icon {
        margin: 0;
        flex-shrink: 0;
    }

    /* Typography Scaling */
    h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    h2 {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        margin-bottom: 1.5rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .section {
        padding: 60px 0;
    }

    /* Grid Scaling */
    .grid-3-col,
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Avoid Header Overlap */
    .section:first-of-type,
    #contact,
    #destinations {
        padding-top: 100px;
    }

    .page-header-padding {
        padding-top: 100px;
    }
}

@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 80px;
    }

    .grid-responsive {
        grid-template-columns: 1fr;
    }

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

    .service-card {
        padding: 30px 20px;
    }

    .dest-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .dest-card {
        min-height: 250px;
    }
    
    .dest-overlay {
        padding: 20px;
    }
    
    .dest-overlay h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .dest-overlay p {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .newsletter-form {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-form input {
        width: 100%;
        padding: 12px;
        border-radius: 5px;
        border: none;
        outline: none;
        color: #333;
    }

    .newsletter-form button {
        width: 100%;
        padding: 12px;
    }

    .sticky-sidebar {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        transform: none;
        z-index: 1001;
    }

    .sticky-btn {
        writing-mode: horizontal-tb;
        border-radius: 0;
        width: 100%;
        text-align: center;
        padding: 18px;
        font-size: 1rem;
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
    }

    .sticky-btn:hover {
        padding-left: 18px;
    }
}

@media (max-width: 480px) {

    .dest-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .dest-card {
        height: 250px;
    }

    .dest-overlay {
        padding: 20px !important;
    }

    .dest-overlay h3 {
        font-size: 1.3rem;
    }

    .dest-overlay p {
        font-size: 0.8rem;
    }
}

/* Extra small screens (320px - 375px) */
@media (max-width: 375px) {
    .dest-card {
        height: 220px;
    }

    .dest-overlay {
        padding: 15px !important;
    }

    .dest-overlay h3 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .dest-overlay p {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }

    .grid-responsive {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Generalized Responsive Grids */
.auto-grid-350 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 30px;
}

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

.auto-grid-280 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 30px;
}

.auto-grid-240 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 25px;
}

.auto-grid-200 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 40px;
}

.auto-grid-160 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    gap: 20px;
}

.text-center {
    text-align: center;
}

.w-full {
    width: 100%;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-50 {
    margin-top: 50px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-50 {
    margin-bottom: 50px;
}

.mb-80 {
    margin-bottom: 80px;
}

/* --- University Partners Section --- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.partner-category {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.partner-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.partner-category h4 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.partner-logos {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.partner-logo {
    background: var(--bg-alt);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: var(--text-dark);
    border-left: 3px solid var(--primary);
    transition: var(--transition);
}

.partner-logo:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

/* --- Scholarship Section --- */
.scholarship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.scholarship-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(165, 0, 0, 0.1);
}

.scholarship-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.scholarship-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.scholarship-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(165, 0, 0, 0.3);
}

.scholarship-card h3 {
    margin-bottom: 15px;
    color: var(--text-heading);
    font-size: 1.4rem;
}

.scholarship-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.scholarship-amount {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    font-size: 0.9rem;
}

/* --- Trust Badges Section --- */
.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.trust-badge {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.trust-badge:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.trust-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.trust-badge h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.trust-badge p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.95rem;
}

.certifications {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.cert-item {
    background: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.cert-item img {
    height: 60px;
    width: auto;
    display: block;
}

/* --- Emergency Contact Bar --- */
.emergency-contact {
    background: linear-gradient(90deg, #dc3545, #c62828);
    color: white;
    padding: 20px 0;
    position: sticky;
    bottom: 0;
    z-index: 999;
    box-shadow: 0 -5px 20px rgba(220, 53, 69, 0.3);
}

.emergency-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.emergency-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.emergency-info i {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px;
    border-radius: 50%;
    min-width: 48px;
    text-align: center;
}

.emergency-info strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.emergency-info span {
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-warning {
    background: #dc3545;
    color: white;
    border: none;
    white-space: nowrap;
}

.btn-warning:hover {
    background: #c62828;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
}

@media (max-width: 768px) {
    .emergency-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .emergency-info {
        justify-content: center;
    }
    
    .trust-badges-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .certifications {
        gap: 20px;
    }
}


/* --- Registration Page Styles --- */
.registration-page {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    min-height: 100vh;
}

.registration-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 40px 0;
}

.registration-form-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.form-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.form-section h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
}

.trust-indicator {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
    margin-bottom: 20px;
}

.trust-indicator h4 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.services-list {
    background: white;
    padding: 25px;
    border-radius: 10px;
}

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

.services-list li {
    margin-bottom: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.services-list li i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 0.9rem;
}

.trust-badges {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.trust-badge-item {
    width: 60px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #666;
    margin: 0 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .registration-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 20px 0;
    }
    
    .registration-welcome {
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .registration-form-container {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .registration-container {
        gap: 30px;
        padding: 10px 0;
    }
    
    .registration-form-container {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .registration-welcome h1 {
        font-size: 2rem !important;
    }
    
    .form-section {
        padding: 12px;
    }
    
    .form-section .grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    .registration-form-container {
        padding: 25px 15px;
    }
    
    .registration-welcome h1 {
        font-size: 1.8rem !important;
    }
    
    .registration-welcome p {
        font-size: 1rem !important;
    }
    
    .trust-badges {
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .trust-badge-item {
        width: 50px;
        height: 35px;
        font-size: 0.6rem;
        margin: 0 5px;
    }
}

/* Form Validation Styles */
.form-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c00;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-error strong {
    display: block;
    margin-bottom: 5px;
}

.form-error p {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* Input Focus Effects */
.registration-form input:focus,
.registration-form select:focus {
    border-color: var(--primary) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(165, 0, 0, 0.1) !important;
}

/* Button Hover Effects */
.registration-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(165, 0, 0, 0.3);
}

/* Checkbox Custom Styling */
.registration-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* --- Test Preparation Premium UI --- */
.test-prep-section {
    position: relative;
    background: var(--bg-alt);
    overflow: hidden;
}

.test-prep-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(165, 0, 0, 0.03) 0%, transparent 70%);
    z-index: 0;
}

.test-prep-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(75, 54, 124, 0.03) 0%, transparent 70%);
    z-index: 0;
}

.test-prep-container {
    position: relative;
    z-index: 1;
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .test-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .test-grid {
        grid-template-columns: 1fr;
    }
}

.test-card {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.test-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(165, 0, 0, 0.05) 0%, rgba(75, 54, 124, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.test-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(165, 0, 0, 0.1);
    border-color: rgba(165, 0, 0, 0.2);
}

.test-card:hover::before {
    opacity: 1;
}

.test-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: rgba(165, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2.5rem;
    transition: transform 0.4s ease, background 0.4s ease, color 0.4s ease;
}

.test-card:hover .test-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.test-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-heading);
}

.test-card ul {
    list-style: none;
    text-align: left;
    margin: 0 0 30px;
    padding: 0;
    flex-grow: 1;
}

.test-card ul li {
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
    align-items: flex-start;
}

.test-card ul li i {
    color: var(--primary);
    margin-top: 4px;
    font-size: 0.9rem;
}

.btn-enroll {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-enroll::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-enroll:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(165, 0, 0, 0.3);
}

.btn-enroll:hover::before {
    left: 0;
}

.view-classes-container {
    text-align: center;
    margin-top: 60px;
}

.btn-view-classes {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(165, 0, 0, 0.3);
}

.btn-view-classes:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(165, 0, 0, 0.4);
}

.btn-view-classes i {
    transition: transform 0.3s ease;
}

.btn-view-classes:hover i {
    transform: translateX(5px);
}

/* --- About Section Responsive Styles --- */
.card {
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    background: white;
    transition: var(--transition);
}

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

/* About Section Home Page */
.reveal {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive About Grid */
@media (max-width: 1024px) {
    .grid-responsive {
        gap: 35px;
    }
}

@media (max-width: 768px) {
    .grid-responsive {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section {
        padding: 60px 0;
    }

    h2 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        margin-bottom: 1rem;
    }

    h3 {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
    }

    h4 {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .grid-responsive {
        gap: 20px;
    }

    .section {
        padding: 40px 0;
    }

    h1 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.3rem, 4vw, 2rem);
    }

    h3 {
        font-size: 1rem;
    }

    .card {
        padding: 20px !important;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* Services/Features Grid Responsive */
.grid {
    display: grid;
    gap: 30px;
}

@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card {
        padding: 20px !important;
    }

    .card h3 {
        font-size: 1.1rem;
    }

    .card p {
        font-size: 0.9rem;
    }
}

/* Hero Content Responsive */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .btn {
        display: block;
        padding: 12px 20px;
        font-size: 0.85rem;
        width: 100%;
        margin-bottom: 10px;
    }
}

p {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    line-height: 1.6;
    color: var(--text-dark);
}

/* Image Container Aspect Ratios */
.hero-image {
    aspect-ratio: 16/9;
}

.blog-featured {
    aspect-ratio: 3/2;
}

.blog-card-image {
    aspect-ratio: 3/2;
}

.gallery-item {
    aspect-ratio: 1/1;
}

.dest-card {
    aspect-ratio: 4/3;
}

.service-card-image {
    aspect-ratio: 16/9;
}

.course-card-image {
    aspect-ratio: 16/10;
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fix image stretching on mobile */
@media (max-width: 480px) {
    img {
        border-radius: clamp(6px, 2vw, 10px);
    }
}

/* Ensure proper spacing on small devices */
@media (max-width: 600px) {
    .section {
        padding: clamp(40px, 6vw, 60px) 0;
    }

    h1 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.4rem, 4vw, 2rem);
    }

    h3 {
        font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    }

    h4 {
        font-size: clamp(0.95rem, 3vw, 1.2rem);
    }

    p {
        font-size: clamp(0.9rem, 2vw, 1rem);
    }
}

/* Container Responsive */
@media (max-width: 1024px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 clamp(12px, 3vw, 20px);
    }
}

@media (max-width: 480px) {
    .container {
        width: 98%;
        padding: 0 clamp(12px, 3vw, 15px);
    }
}

/* Text Effects */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.apply-section {
    padding: clamp(60px, 8vw, 100px) 0;
}

.apply-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 20vw, 280px), 1fr));
    gap: clamp(20px, 3vw, 30px);
    margin-top: clamp(30px, 5vw, 40px);
}

@media (max-width: 768px) {
    .apply-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(20px, 4vw, 25px);
    }
}

@media (max-width: 600px) {
    .apply-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.apply-card {
    padding: clamp(25px, 5vw, 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.apply-icon {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--primary);
    margin-bottom: clamp(12px, 2vw, 15px);
    display: inline-block;
}

.apply-card h4 {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: clamp(10px, 2vw, 15px);
    color: var(--text-heading);
}

.apply-card p {
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    color: var(--text-muted);
    margin-top: 0;
    line-height: 1.5;
}


.study-abroad-header {
    padding: clamp(80px, 12vw, 180px) 0;
    margin-top: clamp(60px, 8vw, 80px);
}

@media (max-width: 992px) {
    .study-abroad-header {
        margin-top: clamp(50px, 6vw, 70px);
    }
}

@media (max-width: 480px) {
    .study-abroad-header {
        margin-top: 50px;
    }
}

.destinations-section {
    padding: clamp(60px, 8vw, 100px) 0;
}

.destinations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 50px);
    align-items: center;
    margin-bottom: clamp(50px, 8vw, 80px);
}

@media (max-width: 1024px) {
    .destinations-grid {
        grid-template-columns: 1fr;
        gap: clamp(30px, 5vw, 40px);
        margin-bottom: clamp(40px, 6vw, 60px);
    }
}

@media (max-width: 768px) {
    .destinations-grid {
        gap: clamp(20px, 4vw, 30px);
        margin-bottom: clamp(30px, 5vw, 50px);
    }
}

@media (max-width: 480px) {
    .study-abroad-header {
        padding: clamp(60px, 10vw, 100px) 0;
    }

    .destinations-grid {
        gap: 20px;
        margin-bottom: 30px;
    }

    .destinations-grid img {
        border-radius: 8px;
    }
}

.destination-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .destination-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .destination-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }
}

.destinations-grid h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: clamp(15px, 3vw, 25px);
}

.destinations-grid p {
    font-size: clamp(0.95rem, 2vw, 1rem);
    line-height: 1.6;
}

.destinations-grid ul {
    margin-bottom: clamp(20px, 3vw, 30px);
}

.destinations-grid li {
    display: flex;
    align-items: flex-start;
    gap: clamp(8px, 2vw, 10px);
    flex-wrap: nowrap;
}

.destinations-grid li i {
    flex-shrink: 0;
    margin-top: 2px;
}

@media (max-width: 480px) {
    .destinations-grid li {
        gap: 8px;
        font-size: clamp(0.85rem, 2vw, 0.95rem);
    }
}




.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

@media (max-width: 1024px) {
    .contact-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-sidebar {
        order: -1;
        /* Show contact info above form on mobile */
    }
}

@media (max-width: 600px) {
    .contact-grid {
        gap: 20px;
    }

    /* Form styling for mobile */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        font-size: 16px !important;
        /* Prevent zoom on iOS */
        padding: 13px 12px !important;
    }

    textarea {
        min-height: 120px;
    }

    /* Contact cards better spacing on mobile */
    [style*="padding: 35px"] {
        padding: 25px !important;
    }

    [style*="padding: 40px"] {
        padding: 25px !important;
    }
}