/* Rainbow Girls PU College - Global Styles */

/* ===== CSS RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== MOBILE OPTIMIZATION ===== */
html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

/* Touch optimization */
a, button, input, textarea, select {
    -webkit-tap-highlight-color: rgba(27, 67, 50, 0.1);
    touch-action: manipulation;
}

/* Prevent horizontal scroll on mobile */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    height: auto;
}

/* Ensure sticky positioning works */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    position: relative;
    padding-top: 0; /* Remove padding-top */
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    /* Smooth momentum scrolling on iOS */
    body {
        -webkit-overflow-scrolling: touch;
        padding-top: 0; /* Remove padding-top */
    }
    
    /* Better button rendering on mobile */
    button {
        -webkit-appearance: none;
        appearance: none;
    }
    
    /* Optimize select inputs for mobile */
    select {
        -webkit-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        padding-right: 36px;
    }
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-50px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===== ROOT VARIABLES ===== */
:root {
    /* Brand Colors - Forest Foundation (Option 4) */
    --primary: #1B4332;          /* Deep Forest Green */
    --secondary: #52B788;        /* Turquoise Green */
    --accent: #081C15;           /* Almost Black Green */
    --background: #F8FBF8;       /* Pale Mint */
    --text: #1A1A1A;             /* Dark Text */
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --gray: #777777;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 60px;
    --max-width: 1440px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 50px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--gray);
}

/* ===== LAYOUT ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.section {
    padding: var(--section-padding);
}

.section:first-of-type {
    padding-top: 6rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.col-2 {
    flex: 1;
    min-width: 300px;
}

/* ===== NOTIFICATION BAR ===== */
.notification-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10001;
    font-size: 0.875rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.notification-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
}

.notification-item i {
    font-size: 0.875rem;
    opacity: 0.9;
}

.notification-item a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.notification-item a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.notification-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-right a {
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.notification-right a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Adjust notification bar on mobile */
@media (max-width: 768px) {
    .notification-bar {
        padding: 0.4rem 0;
        font-size: 0.75rem;
    }
    
    .notification-content {
        gap: 1rem;
    }
    
    .notification-left {
        gap: 0.75rem;
    }
    
    .notification-item {
        gap: 0.25rem;
    }
    
    .notification-item i {
        font-size: 0.7rem;
    }
    
    .notification-right a {
        width: 24px;
        height: 24px;
        font-size: 0.875rem;
    }
}

@media (max-width: 640px) {
    .notification-bar {
        padding: 0.3rem 0;
        font-size: 0.7rem;
    }
    
    .notification-left {
        gap: 0.75rem;
    }
    
    /* Hide text on mobile, show only icons */
    .notification-item a {
        display: none;
    }
    
    .notification-item {
        justify-content: center;
        padding: 0.3rem 0.5rem;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        width: 32px;
        height: 32px;
    }
    
    .notification-item i {
        font-size: 0.9rem;
        margin: 0;
    }
    
    .notification-right {
        gap: 0.5rem;
    }
    
    .notification-right a {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
}

/* ===== HEADER / NAVBAR ===== */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10000;
    animation: slideDown 0.5s ease-out;
    transition: all 0.3s ease;
    height: 150px;
}

/* Adjust header position based on notification bar */
.header {
    top: 40px;
}

body:not(:has(.notification-bar)) .header {
    top: 0;
}

/* Sticky navbar scroll effect */
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

/* Ensure container doesn't interfere with sticky */
.header .container {
    position: relative;
    z-index: 1;
}

.header.scrolled .navbar {
    padding: 0.5rem 0;
}

.header.scrolled .logo-img {
    width: 90px;
    height: 105px;
}

.header.scrolled .logo-text h2 {
    font-size: 1.1rem;
}

.header.scrolled .logo-text p {
    font-size: 0.65rem;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* ===== DROPDOWN NAVIGATION ===== */
.dropdown {
    position: relative;
}

/* Create invisible bridge between trigger and dropdown */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    z-index: 9998;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 250px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    top: calc(100% - 4px);
    left: 0;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    backdrop-filter: blur(10px);
    padding: 8px 0;
}

/* Remove CSS-only hover to let JavaScript handle it */
.dropdown:hover .dropdown-content {
    display: none;
}

/* Ensure dropdown items don't inherit parent hover styles */
.dropdown:hover .dropdown-content a {
    color: #333333 !important;
    background: none !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Prevent dropdown items from inheriting parent's ::before and ::after styles */
.dropdown:hover .dropdown-content a::before,
.dropdown:hover .dropdown-content a::after {
    display: none !important;
    opacity: 0 !important;
    transform: none !important;
}

.dropdown-content a {
    color: #333333 !important;
    padding: 14px 24px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 8px;
    margin: 4px 8px;
    position: relative;
    overflow: hidden;
    background: none !important;
    transform: none !important;
    box-shadow: none !important;
    font-weight: 500 !important;
    font-size: 0.95rem;
    border-bottom: none;
}



/* Staggered animation for dropdown items */
.dropdown-content a:nth-child(1) {
    transition-delay: 0.05s;
}

.dropdown-content a:nth-child(2) {
    transition-delay: 0.1s;
}

.dropdown-content a:nth-child(3) {
    transition-delay: 0.15s;
}

.dropdown-content a:nth-child(4) {
    transition-delay: 0.2s;
}

.dropdown-content a:hover {
    background: linear-gradient(135deg, rgba(27, 67, 50, 0.1), rgba(82, 183, 136, 0.1));
    color: var(--primary) !important;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(27, 67, 50, 0.15);
    padding-left: 28px;
}

.dropdown-content a::before {
    display: none !important;
}

.dropdown-content a::after {
    display: none !important;
}

.dropdown-content a:hover::before {
    display: none !important;
}

.dropdown-content a:hover::after {
    display: none !important;
}

/* Dropdown icon styling */
.dropdown-icon {
    font-size: 0.75rem;
    margin-left: 8px;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}


/* Mobile dropdown styles */
@media (max-width: 968px) {
    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.95);
        opacity: 1;
        transform: none;
        padding-left: 1rem;
        margin-top: 0;
        border: none;
        border-radius: 8px;
        backdrop-filter: none;
    }
    
    .dropdown:hover .dropdown-content,
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        padding: 12px 20px;
        border-left: 3px solid var(--primary);
        margin-left: 1rem;
        border-radius: 6px;
        margin-bottom: 4px;
    }
    
    .dropdown > a::after {
        content: '▶';
        transition: transform 0.3s ease;
    }
    
    .dropdown.active > a::after {
        transform: rotate(90deg);
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 120px;
    height: 140px;
    border-radius: 8px;
    transition: var(--transition);
    object-fit: contain;
}

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

.logo a {
    text-decoration: none;
    display: block;
}

.logo-text h2 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary);
}

.logo-text p {
    font-size: 0.75rem;
    margin: 0;
    color: var(--gray);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu li {
    position: relative;
}



.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    position: relative;
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

/* Modern hover effect with smooth background */
.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 25px;
    z-index: -1;
}

/* Subtle shadow effect */
.nav-menu a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(27, 67, 50, 0.1);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
    border-radius: 25px;
    z-index: -2;
}

.nav-menu a:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(27, 67, 50, 0.3);
}

.nav-menu a:hover::before {
    opacity: 1;
    transform: scale(1);
}

.nav-menu a:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Active/current page indicator */
.nav-menu a.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    box-shadow: 0 5px 20px rgba(27, 67, 50, 0.3);
}

.nav-menu a.active::before {
    opacity: 1;
    transform: scale(1);
}

/* Contact button styling */
.nav-menu a.btn-contact {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(27, 67, 50, 0.3);
    margin-left: 0.5rem;
}

.nav-menu a.btn-contact:hover {
    background: linear-gradient(135deg, #0F2B1E, #2F5D47);
    box-shadow: 0 6px 20px rgba(27, 67, 50, 0.4);
    transform: translateY(-3px);
}

.nav-menu a.btn-contact::before,
.nav-menu a.btn-contact::after {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-toggle:hover {
    background-color: var(--secondary);
    color: var(--primary);
    transform: scale(1.1) rotate(90deg);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background-color: #0F2B1E;
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: var(--primary);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 300%;
    height: 300%;
}

.btn-secondary:hover {
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px) scale(1.05);
}

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

.btn-accent:hover {
    background-color: #2F5D47;
    transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    background-image: url('../images/RAI_hero1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 190px;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(27, 67, 50, 0.7) 0%, rgba(8, 28, 21, 0.7) 100%);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero-pattern.png');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SIMPLE HERO (No Background Image) ===== */
.hero-simple {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 190px;
}

.hero-simple::after,
.hero-simple::before {
    display: none;
}

.hero-simple h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-simple p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== CARDS ===== */
.card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* ===== COURSE CARDS ===== */
.courses-grid {
    margin-top: 3rem;
}

.course-card {
    position: relative;
    overflow: hidden;
    border: none;
    padding: 2.5rem;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: height 0.3s ease;
}

.course-card:hover::before {
    height: 8px;
}

.course-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.course-icon {
    font-size: 3.5rem !important;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.course-badge {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--text);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.course-combinations {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(27, 67, 50, 0.05), rgba(82, 183, 136, 0.05));
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

.combination-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.combination-item i {
    font-size: 1.2rem;
    color: var(--primary);
    min-width: 20px;
}

.combination-item span {
    white-space: nowrap;
}

/* Science Card Specific */
.science-card:hover {
    box-shadow: 0 8px 25px rgba(66, 165, 245, 0.3);
}

.science-card .course-badge {
    background: linear-gradient(135deg, #42A5F5, #1976D2);
    color: white;
}

/* Commerce Card Specific */
.commerce-card:hover {
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.commerce-card .course-badge {
    background: linear-gradient(135deg, #66BB6A, #388E3C);
    color: white;
}

/* Arts Card Specific */
.arts-card:hover {
    box-shadow: 0 8px 25px rgba(156, 39, 176, 0.3);
}

.arts-card .course-badge {
    background: linear-gradient(135deg, #AB47BC, #7B1FA2);
    color: white;
}

/* Prevent animation jank */
.card,
.feature-item,
.process-step,
.gallery-item,
.contact-info-item,
.accordion-item,
.testimonial-card,
.course-card {
    will-change: transform, opacity;
}

/* Add perspective for 3D transforms */
.gallery-grid,
.card-grid,
.features-grid {
    perspective: 1000px;
}

.card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-block;
}

.card:hover .card-icon {
    transform: scale(1.2) rotateY(180deg);
    color: var(--accent);
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

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

/* ===== SECTIONS ===== */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-title p {
    font-size: 1.125rem;
    color: var(--gray);
}

.lead-text {
    font-size: 1.125rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: 2.5rem;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background-color: rgba(27, 67, 50, 0.25);
    border-radius: 999px;
}

.faculty-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.faculty-table thead {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.faculty-table th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem;
    text-align: left;
}

.faculty-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(27, 67, 50, 0.12);
    color: var(--text);
    background-color: var(--white);
}

.faculty-table tbody tr:nth-child(even) td {
    background-color: rgba(82, 183, 136, 0.08);
}

.faculty-table tbody tr:hover td {
    background-color: rgba(27, 67, 50, 0.08);
}

.faculty-table td:first-child {
    text-align: center;
    font-weight: 600;
    color: var(--primary);
}

.faculty-table td:nth-child(4),
.faculty-table td:nth-child(5) {
    font-weight: 500;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.two-column img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* ===== FEATURE ICONS ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(27, 67, 50, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.15) rotate(10deg);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.feature-item:hover .feature-icon::before {
    width: 100%;
    height: 100%;
}

.feature-item h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    mix-blend-mode: multiply;
}

.gallery-item:hover::before {
    opacity: 0.3;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.gallery-item:hover img {
    transform: scale(1.15) rotate(2deg);
}

/* ===== CAROUSEL ===== */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 10;
}

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

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

/* ===== CAMPUS CAROUSEL (Continuous Scrolling) ===== */
.campus-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.campus-carousel-track {
    display: flex;
    gap: 1rem;
    animation: scrollInfinite 20s linear infinite;
}

.campus-carousel-slide {
    flex: 0 0 calc(33.333% - 0.67rem);
    min-width: calc(33.333% - 0.67rem);
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.campus-carousel-slide:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.campus-carousel-slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

@keyframes scrollInfinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-33.333% - 1rem));
    }
}

/* Pause animation on hover */
.campus-carousel:hover .campus-carousel-track {
    animation-play-state: paused;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
    transform: translateY(-2px);
    background-color: rgba(255, 253, 250, 1);
}

.form-group input,
.form-group textarea,
.form-group select {
    transition: all 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ===== ADMISSION PROCESS ===== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(27, 67, 50, 0.3);
}

.step-number::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid var(--primary);
    transform: scale(1);
    opacity: 0;
    transition: all 0.4s ease;
}

.process-step:hover .step-number {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 6px 20px rgba(27, 67, 50, 0.5);
}

.process-step:hover .step-number::after {
    transform: scale(1.3);
    opacity: 1;
}

.process-step h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* ===== BANNER ===== */
.banner {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    margin: 60px 0;
    border-radius: var(--radius-md);
}

.banner h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.banner .btn:hover {
    border: 2px solid var(--white) !important;
}

.hero-simple .btn:hover {
    border: 2px solid var(--white) !important;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--text);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 80px;
    height: 90px;
    border-radius: 8px;
    transition: var(--transition);
    object-fit: contain;
}

.footer-logo-img:hover {
    transform: scale(1.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.5fr;
    gap: 0;
    margin-bottom: 3rem;
    align-items: start;
}

.footer-section {
    padding: 0 1.5rem;
}

.footer-section:first-child {
    padding-left: 0;
}

.footer-section:last-child {
    padding-right: 0;
}

.footer-section h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section p {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-section p i {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.footer-section a:hover {
    color: var(--secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

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

.social-links a:hover {
    background-color: var(--secondary);
    color: var(--text);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 5px 15px rgba(27, 67, 50, 0.4);
}

.social-links a:active {
    transform: translateY(-2px) scale(0.95);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ===== TESTIMONIALS CAROUSEL ===== */
.testimonials-carousel-wrapper {
    position: relative;
    margin-top: 3rem;
    padding: 0 60px;
}

.testimonials-carousel {
    overflow: hidden;
    border-radius: var(--radius-md);
}

.testimonials-track {
    display: grid;
    grid-template-columns: repeat(6, calc(33.333% - 1.334rem));
    gap: 2rem;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.testimonial-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border-top: 4px solid var(--primary);
    min-width: 0; /* Prevent grid blowout */
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent);
}

/* Navigation Buttons */
.testimonial-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.testimonial-nav-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-md);
}

.testimonial-nav-btn.prev-testimonial {
    left: 0;
}

.testimonial-nav-btn.next-testimonial {
    right: 0;
}

.testimonial-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.testimonial-nav-btn:disabled:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-50%) scale(1);
}

/* Dots Navigation */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.testimonial-dot:hover {
    background-color: var(--secondary);
    transform: scale(1.2);
}

.testimonial-dot.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    width: 30px;
    border-radius: 10px;
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--secondary);
    opacity: 0.3;
    margin-bottom: 1rem;
    line-height: 1;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray);
    font-style: italic;
    margin-bottom: 2rem;
    min-height: 150px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--light-gray);
}

.author-image {
    font-size: 3.5rem;
    color: var(--primary);
    line-height: 1;
}

.author-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    color: var(--primary);
}

.author-info p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: var(--gray);
}

.rating {
    display: flex;
    gap: 0.25rem;
}

.rating i {
    color: var(--secondary);
    font-size: 0.9rem;
}

/* FAQ Container */
.faq-container {
    max-width: 900px;
    margin: 2rem auto 0;
}

/* ===== ACCORDION ===== */
.accordion-item {
    background-color: var(--white);
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--light-gray);
    transition: all 0.3s ease;
    position: relative;
}

.accordion-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.accordion-header:hover::before {
    width: 4px;
}

.accordion-header:hover {
    background-color: var(--secondary);
    padding-left: 2rem;
}

.accordion-header h4 {
    margin: 0;
    color: var(--text);
}

.accordion-icon {
    transition: var(--transition);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.accordion-content-inner {
    padding: 0 1.5rem;
    transition: padding 0.4s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 1000px; /* Increased to accommodate larger content */
}

.accordion-item.active .accordion-content-inner {
    padding: 1.5rem;
}

/* ===== MAP ===== */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== CONTACT INFO ===== */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-info-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-info-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-info-item h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.bg-light {
    background-color: var(--light-gray);
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 1600px) {
    :root {
        --container-padding: 0 80px;
    }
}

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-track {
        grid-template-columns: repeat(6, calc(50% - 1rem));
    }
    
    .testimonials-carousel-wrapper {
        padding: 0 50px;
    }
}

@media (max-width: 968px) {
    :root {
        --container-padding: 0 40px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .navbar {
        flex-wrap: wrap;
    }
    
    /* Header - Tablet */
    .header {
        height: 100px;
        padding: 0.5rem 0;
    }
    
    .header.scrolled {
        height: 80px;
    }
    
    /* Logo - Tablet */
    .logo-img {
        transition: all 0.3s ease;
    }
    
    .header.scrolled .logo-img {
        width: 50px;
        height: 60px;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 100px;
        left: 0;
        right: 0;
        background-color: var(--white);
        width: 100%;
        gap: 0;
        margin-top: 0;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 999;
        animation: slideDownMenu 0.3s ease-out;
    }
    
    @keyframes slideDownMenu {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
        padding: 16px 20px;
        margin: 0;
        font-size: 1.05rem;
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu a:hover {
        transform: translateX(0) scale(1);
        background-color: rgba(27, 67, 50, 0.05);
    }
    
    .nav-menu a::after {
        display: none; /* Remove sparkle on mobile menu */
    }
    
    /* Dropdown in mobile menu */
    .dropdown {
        position: static;
        width: 100%;
    }
    
    .dropdown > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px !important;
        width: 100%;
    }
    
    .dropdown-icon {
        transition: transform 0.3s ease;
    }
    
    .dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }
    
    .dropdown-content {
        display: none;
        position: static;
        background-color: rgba(27, 67, 50, 0.05);
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        padding: 0;
        opacity: 1;
        transform: none;
        width: 100%;
        max-width: 100%;
        border: none;
        border-top: 1px solid rgba(27, 67, 50, 0.2);
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-content a {
        padding: 14px 20px 14px 40px !important;
        border-bottom: 1px solid rgba(27, 67, 50, 0.1);
        font-size: 0.95rem;
        color: #333 !important;
        background: none !important;
        transform: none !important;
    }
    
    .dropdown-content a:last-child {
        border-bottom: 1px solid rgba(27, 67, 50, 0.2);
    }
    
    .dropdown-content a:hover {
        background-color: rgba(27, 67, 50, 0.1) !important;
        color: var(--primary) !important;
        transform: none !important;
        padding-left: 40px !important;
    }
    
    .mobile-menu-toggle {
        display: block;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Hero - Tablet */
    .hero {
        margin-top: 100px;
    }
    
    .hero-simple {
        margin-top: 100px;
    }
    
    .header.scrolled .logo-text p {
        font-size: 0.6rem;
    }
    
    .two-column {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Mobile Menu Overlay */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: -1;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

/* ===== TABLET OPTIMIZATION ===== */
@media (max-width: 768px) {
    :root {
        --container-padding: 0 30px;
    }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.375rem; }
    
    .hero {
        padding: 70px 0;
        margin-top: 120px; /* Tablet margin - no notification bar */
    }
    
    .section {
        padding: 50px 0;
    }
    
    /* Better touch targets for tablets */
    .btn {
        padding: 16px 36px;
        font-size: 1.05rem;
        min-height: 48px;
    }
    
    .card {
        padding: 1.75rem;
    }
    
    .logo-text h2 {
        font-size: 1.25rem;
    }
    
    .logo-text p {
        font-size: 0.7rem;
    }

    .table-responsive {
        margin-top: 2rem;
    }

    .faculty-table {
        min-width: 620px;
    }

    .faculty-table th,
    .faculty-table td {
        padding: 0.85rem 1rem;
    }
}

/* ===== MOBILE OPTIMIZATION ===== */
@media (max-width: 640px) {
    :root {
        --container-padding: 0 20px;
        --section-padding: 50px 0;
    }
    
    /* Typography - Mobile Optimized */
    h1 { 
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    h2 { 
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h3 { 
        font-size: 1.25rem;
        line-height: 1.3;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .table-responsive {
        margin-top: 1.5rem;
    }

    .faculty-table {
        min-width: 520px;
    }

    .faculty-table th,
    .faculty-table td {
        padding: 0.75rem 0.9rem;
        font-size: 0.95rem;
    }

    /* Hero Section - Mobile */
    .hero {
        padding: 50px 0;
        margin-top: 140px; /* Adjusted for notification bar (40px) + header (100px) */
        min-height: auto;
    }
    
    .hero::after {
        opacity: 0.6; /* Lighter gradient on mobile for better text readability */
    }
    
    .hero h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
    }
    
    /* Mobile Menu */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem 0;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 9999;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu .dropdown-content {
        position: static;
        display: none;
        opacity: 1;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        background-color: rgba(27, 67, 50, 0.05);
        min-width: auto;
        margin-left: 1rem;
        margin-top: 0.5rem;
    }
    
    .nav-menu .dropdown.active .dropdown-content {
        display: block;
    }
    
    /* Dropdown content links - Mobile */
    .nav-menu .dropdown-content a {
        color: white !important;
        padding: 12px 16px !important;
        display: block !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        border-radius: 8px !important;
        margin: 4px 0 !important;
        transition: all 0.3s ease !important;
    }
    
    .nav-menu .dropdown-content a:hover,
    .nav-menu .dropdown-content a:active {
        background-color: rgba(255, 255, 255, 0.2) !important;
        color: white !important;
        padding-left: 20px !important;
    }
    
    /* Nav menu items - Mobile */
    .nav-menu li {
        padding: 0;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .nav-menu a {
        display: block !important;
        padding: 12px 16px !important;
        border-radius: 8px !important;
        background-color: transparent !important;
        transition: all 0.3s ease !important;
        width: 100% !important;
        text-align: left !important;
        color: var(--text) !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        min-height: 48px;
    }
    
    .nav-menu a:hover,
    .nav-menu a:active {
        background-color: rgba(253, 255, 254, 0.1) !important;
        transform: translateX(5px) !important;
        color: #ffffff !important;
        box-shadow: none !important;
    }
    
    .nav-menu .btn-contact {
        background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
        color: white !important;
        border-radius: 8px !important;
        margin-left: 0 !important;
    }
    
    .nav-menu .btn-contact:hover {
        background: linear-gradient(135deg, #0F2B1E, #2F5D47) !important;
    }
    
    /* Simple Hero - Mobile */
    .hero-simple {
        padding: 60px 0;
        margin-top: 140px; /* Adjusted for notification bar (40px) + header (100px) */
    }
    
    .hero-simple h1 {
        font-size: 1.75rem;
    }
    
    .hero-simple p {
        font-size: 1rem;
    }
    
    /* Section Spacing */
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    /* Buttons - Touch-Friendly */
    .btn {
        padding: 14px 28px;
        font-size: 1rem;
        min-height: 48px; /* Minimum touch target */
        width: 100%;
        max-width: 100%;
    }
    
    /* Cards - Mobile Optimized */
    .card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
    
    /* Course Cards - Mobile */
    .course-card {
        padding: 1.75rem;
    }
    
    .course-icon {
        font-size: 2.75rem !important;
    }
    
    .course-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }
    
    .course-combinations {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .combination-item {
        font-size: 0.9rem;
    }
    
    .combination-item i {
        font-size: 1.1rem;
    }
    
    /* Features Grid - Mobile (2 Columns) */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    /* Process Steps - Mobile */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Testimonials - Mobile */
    .testimonials-track {
        grid-template-columns: repeat(6, 100%);
        gap: 1rem;
    }
    
    .testimonials-carousel-wrapper {
        padding: 0 35px;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .testimonial-quote {
        font-size: 2.5rem;
    }
    
    .testimonial-text {
        min-height: auto;
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .author-image {
        font-size: 2.5rem;
    }
    
    .author-info h4 {
        font-size: 1rem;
    }
    
    .author-info p {
        font-size: 0.85rem;
    }
    
    .testimonial-dots {
        margin-top: 1.5rem;
        gap: 0.75rem;
    }
    
    .testimonial-dot {
        width: 10px;
        height: 10px;
    }
    
    .testimonial-dot.active {
        width: 24px;
    }
    
    /* Gallery - Mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item img {
        height: 250px;
    }
    
    /* Accordion/FAQ - Mobile */
    .accordion-header {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .accordion-header h4 {
        font-size: 1rem;
    }
    
    .accordion-content-inner {
        font-size: 0.9rem;
    }
    
    .accordion-item.active .accordion-content-inner {
        padding: 1rem;
    }
    
    /* Forms - Mobile Optimized */
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px; /* Touch-friendly */
        -webkit-appearance: none;
        appearance: none;
    }
    
    .form-group textarea {
        min-height: 120px;
    }
    
    /* Form messages - Mobile */
    .form-message {
        font-size: 0.9rem;
        padding: 0.875rem;
    }
    
    /* Two column form layout - Mobile */
    .row {
        grid-template-columns: 1fr;
    }
    
    /* Contact Info - Mobile */
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-info-item {
        padding: 1.5rem;
    }
    
    .contact-info-item i {
        font-size: 2rem;
    }
    
    /* Banner - Mobile */
    .banner {
        padding: 40px 20px;
        margin: 40px 0;
    }
    
    .banner h2 {
        font-size: 1.5rem;
    }
    
    .banner p {
        font-size: 1rem;
    }
    
    /* Footer - Mobile */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section p {
        display: block;
        text-align: center;
    }
    
    .footer-section p i {
        margin-top: 0;
        margin-right: 0.5rem;
    }
    
    .footer-section {
        padding: 0;
    }
    
    .footer-section h3 {
        font-size: 1.125rem;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        font-size: 0.85rem;
        padding-top: 1.5rem;
    }
    
    /* Header - Mobile Reduced Height */
    .header {
        height: 100px;
        top: 40px !important; /* Account for notification bar */
        padding: 0.5rem 0;
    }
    
    .header.scrolled {
        height: 80px;
        top: 40px !important;
    }
    
    /* Logo - Mobile */
    .logo-img {
        width: 60px;
        height: 70px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    /* Logo - Mobile Scrolled State */
    .header.scrolled .logo-img {
        width: 50px;
        height: 60px;
    }
    
    .logo-text h2 {
        font-size: 1.1rem;
    }
    
    .logo-text p {
        font-size: 0.65rem;
    }
    
    /* Navbar - Mobile */
    .navbar {
        padding: 0.5rem 0;
    }
    

    
    /* Carousel Controls - Mobile */
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    /* Campus Carousel - Mobile */
    .campus-carousel-slide {
        flex: 0 0 calc(100% - 1rem);
        min-width: calc(100% - 1rem);
    }
    
    .campus-carousel-slide img {
        height: 200px;
    }
    
    .campus-carousel-track {
        animation-duration: 60s; /* Much slower animation for mobile */
    }
    
    @keyframes scrollInfinite {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-100% - 1rem));
        }
    }
    
    /* Map - Mobile */
    .map-container {
        height: 300px;
        margin-top: 1.5rem;
    }
    
    /* Two Column Layout - Mobile */
    .two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .two-column img {
        max-height: 300px;
        object-fit: cover;
    }
    
    /* Back to Top Button - Mobile */
    .back-to-top {
        bottom: 20px !important;
        right: 20px !important;
        width: 44px !important;
        height: 44px !important;
    }
    
    /* Performance Optimizations */
    * {
        animation-duration: 0.3s !important;
        transition-duration: 0.2s !important;
    }
    
    /* Reduce complex animations on mobile */
    .campus-carousel-track,
    .testimonial-track {
        will-change: transform;
    }
    
    /* Disable hover effects on mobile */
    .card:hover,
    .feature-item:hover .feature-icon,
    .testimonial-card:hover,
    .course-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    /* Optimize images for mobile */
    img {
        image-rendering: -webkit-optimize-contrast;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* Reduce paint/composite layers on mobile */
    .hero::after,
    .section::before,
    .card::before,
    .btn::before,
    .btn::after {
        will-change: auto;
    }
    
    /* Better spacing for mobile */
    .mt-1 { margin-top: 0.75rem; }
    .mt-2 { margin-top: 1.5rem; }
    .mt-3 { margin-top: 2rem; }
    .mb-1 { margin-bottom: 0.75rem; }
    .mb-2 { margin-bottom: 1.5rem; }
    .mb-3 { margin-bottom: 2rem; }
    
    /* WhatsApp Button - Mobile Optimized */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.5rem;
    }
    
    /* Navbar - Mobile Performance */
    .header.scrolled {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu a::before,
    .nav-menu a::after {
        transition: none !important;
    }
    
    /* Smooth campus carousel on mobile */
    .campus-carousel {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Reduce rendering complexity */
    .dropdown-content {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* ===== EXTRA SMALL MOBILE (iPhone SE, etc) ===== */
@media (max-width: 375px) {
    :root {
        --container-padding: 0 16px;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.35rem; }
    h3 { font-size: 1.15rem; }
    
    .hero {
        padding: 40px 0;
        margin-top: 120px;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .card,
    .course-card,
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .testimonials-carousel-wrapper {
        padding: 0 30px;
    }
    
    .banner {
        padding: 30px 16px;
        margin: 30px 0;
    }
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: whatsappPulse 2s infinite;
    opacity: 0;
    transform: translateY(20px);
    animation-delay: 1s;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-float:active {
    transform: translateY(-2px) scale(1.05);
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    }
}

/* WhatsApp tooltip */
.whatsapp-float::before {
    content: 'Chat with us on WhatsApp';
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    pointer-events: none;
}

.whatsapp-float::after {
    content: '';
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    pointer-events: none;
}

.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
    opacity: 1;
    visibility: visible;
}

/* WhatsApp button show state */
.whatsapp-float.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== CONTACT LINKS STYLING ===== */
.phone-link, .email-link, .map-link {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.phone-link:hover, .email-link:hover, .map-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.call-btn, .email-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.call-btn:hover, .email-btn:hover {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(27, 67, 50, 0.3);
    text-decoration: none;
    color: var(--white);
}

.map-info {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    text-align: center;
}

.map-info p {
    margin-bottom: 0.5rem;
}

.map-info a {
    margin-top: 1rem;
}

/* Mobile WhatsApp button adjustments */
@media (max-width: 640px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        left: 20px;
    }
    
    .whatsapp-float::before {
        right: 60px;
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .whatsapp-float::after {
        right: 50px;
    }
}

@media (max-width: 375px) {
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        bottom: 15px;
        left: 15px;
    }
    
    .whatsapp-float::before {
        right: 55px;
        font-size: 0.75rem;
        padding: 5px 8px;
    }
    
    .whatsapp-float::after {
        right: 45px;
    }
}

