/* ===========================
   St. Anna COLLEGE - REDESIGNED
   Matching stannsnursingcollege.com design
   =========================== */

/* ROOT VARIABLES */
:root {
    --primary: #2E5090;
    --primary-dark: #051f4d;
    --secondary: #FF6B00;
    --secondary-light: #FF8533;
    --accent: #FF6B00;
    --text-dark: #0A0E17;
    --text-light: #334155;
    --text-muted: #64748B;
    --light-bg: #F5F8FC;
    --white: #FFFFFF;
    --footer-dark: #041a40;
    --transition: all 0.28s cubic-bezier(0.2, 0, 0.2, 1);
}

/* GLOBAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    letter-spacing: 0.3px;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
    font-size: clamp(16px, 1.5vw, 18px);
}

/* IMAGE OPTIMIZATION */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy-loaded images styling */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

img[loading="lazy"][src] {
    animation: none;
    background: none;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin: 1.5rem 0 0.75rem 0;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

/* HEADER STYLES - PREMIUM */
.header-main {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #003d82 100%);
    color: var(--white);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 12px 40px rgba(5, 31, 77, 0.5), 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    border-bottom: 2px solid rgba(255, 107, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-main:hover {
    box-shadow: 0 16px 50px rgba(5, 31, 77, 0.6), 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
}

.logo-section:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--white);
    padding: 4px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.2, 0, 0.2, 1);
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.logo:hover {
    transform: scale(1.12) rotate(-5deg);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 107, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.college-name {
    color: var(--white);
    font-weight: 700;
    font-size: 1.08rem;
    margin-left: 0.5rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 70px;
    letter-spacing: 0.6px;
    background: linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s cubic-bezier(0.2, 0, 0.2, 1);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    align-items: center;
    flex-wrap: wrap;
}

.nav-list a {
    color: var(--white);
    font-weight: 600;
    font-size: 0.96rem;
    transition: all 0.4s cubic-bezier(0.2, 0, 0.2, 1);
    position: relative;
    padding: 0.75rem 1.5rem;
    text-transform: capitalize;
    letter-spacing: 0.4px;
    text-decoration: none !important;
    border-bottom: none !important;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    overflow: hidden;
}

/* Enhanced underline effect for nav links */
.nav-list a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary) 0%, #FFD700 100%);
    transform: translateX(-50%);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
}

.nav-list a::after {
    content: none !important;
}

.nav-list a {
    outline: none;
    box-shadow: none;
    text-shadow: none;
}

.nav-list li {
    position: relative;
    list-style: none;
}

/* PREMIUM Dropdown Menu Styling */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: linear-gradient(135deg, var(--white) 0%, #f5f9fc 50%, #f0f6ff 100%);
    list-style: none;
    padding: 0.8rem 0;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(5, 31, 77, 0.3), 0 8px 16px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-20px) scale(0.92);
    z-index: 1000;
    display: none;
    border: 1px solid rgba(255, 107, 0, 0.2);
    backdrop-filter: blur(12px);
}

.nav-list li:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    display: block;
    transform: translateY(0) scale(1);
}

/* Premium Dropdown Link Styling */
.nav-dropdown li a {
    display: block;
    padding: 1rem 1.6rem;
    color: var(--text-dark);
    font-size: 0.96rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
    position: relative;
    border-left: 4px solid transparent;
    text-decoration: none !important;
    letter-spacing: 0.3px;
}

/* Remove ALL pseudo-elements from dropdown links */
.nav-dropdown li a::before,
.nav-dropdown li a::after {
    content: none !important;
    display: none !important;
}

.nav-dropdown li a:hover {
    background: linear-gradient(90deg, rgba(255, 107, 0, 0.12) 0%, rgba(255, 107, 0, 0.04) 100%);
    color: var(--secondary);
    border-left-color: var(--secondary);
    padding-left: 2rem;
    transform: translateX(4px);
    box-shadow: inset 0 0 0 1px rgba(255, 107, 0, 0.1);
}

/* Staggered dropdown item animations */
.nav-list li:hover .nav-dropdown li {
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.nav-list li:hover .nav-dropdown li:nth-child(1) { animation-delay: 0.05s; }
.nav-list li:hover .nav-dropdown li:nth-child(2) { animation-delay: 0.1s; }
.nav-list li:hover .nav-dropdown li:nth-child(3) { animation-delay: 0.15s; }
.nav-list li:hover .nav-dropdown li:nth-child(4) { animation-delay: 0.2s; }
.nav-list li:hover .nav-dropdown li:nth-child(5) { animation-delay: 0.25s; }

/* Main nav link hover effect - PROFESSIONAL WITHOUT UNDERLINES */
.nav-list li > a {
    border-radius: 6px;
    background: transparent;
}

.nav-list li > a:hover {
    color: var(--secondary);
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.15) 0%, rgba(255, 107, 0, 0.08) 100%);
    border-radius: 8px;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.25);
}

.nav-list li > a:hover::before {
    width: 70%;
}

/* Active state for current page */
.nav-list li > a.active {
    color: var(--secondary);
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2) 0%, rgba(255, 107, 0, 0.1) 100%);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(255, 107, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav-list li > a.active::before {
    width: 75%;
}

.menu-toggle {
    display: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 2px solid rgba(255, 107, 0, 0.5);
    color: var(--white);
    padding: 0.75rem 1.3rem;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.96rem;
    transition: all 0.4s cubic-bezier(0.2, 0, 0.2, 1);
    letter-spacing: 0.6px;
    position: relative;
    z-index: 1000;
    pointer-events: auto;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.menu-toggle:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.18) 100%);
    border-color: var(--secondary);
    box-shadow: 0 12px 32px rgba(255, 107, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
    border-width: 2px;
}

/* HERO SECTION */
.hero-section {
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.85) 0%, rgba(11, 61, 145, 0.85) 50%, rgba(0, 74, 32, 0.85) 100%), 
                url('../images/campus image 1.png') center/cover;
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(90deg, #FF7A18 0%, #FFD700 50%, #87CEEB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: gradientShift 8s linear infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
}

/* CONTAINER */
.container-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* SECTION TITLES */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* PRINCIPAL SECTION */
.principal-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

.principal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.principal-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.principal-text h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary);
    font-weight: 700;
    transition: var(--transition);
}

.read-more:hover {
    transform: translateX(4px);
}

/* MISSION & VISION */
.mission-vision-section {
    padding: 4rem 0;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.mission-card,
.vision-card {
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 6px solid var(--secondary);
    border-top: 3px solid var(--primary);
    background: var(--white);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.mission-card:hover,
.vision-card:hover {
    box-shadow: 0 16px 40px rgba(65, 105, 225, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-4px);
}

.mission-card h3,
.vision-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 1.3rem;
}

/* PROGRAMS SECTION */
.programs-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card {
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    border-top: 3px solid var(--secondary);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(65, 105, 225, 0.15);
}

.program-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.program-icon svg {
    width: 32px;
    height: 32px;
}

.program-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* WHY CHOOSE US */
.why-choose-section {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-box {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(65, 105, 225, 0.08), rgba(255, 122, 0, 0.05));
    border-radius: 12px;
    border-left: 4px solid var(--secondary);
    text-align: center;
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(65, 105, 225, 0.1);
}

.feature-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.feature-box h4 {
    color: var(--primary);
    margin: 1rem 0;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* TESTIMONIALS */
.testimonials-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    border-left: 4px solid var(--secondary);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card p:first-child {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.95rem;
}

/* CONTACT INQUIRY */
.contact-inquiry-section {
    padding: 4rem 0;
}

.inquiry-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 3rem;
    border-radius: 12px;
    color: var(--white);
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 12px 40px rgba(11, 61, 145, 0.3);
}

.inquiry-box h2 {
    color: var(--white);
    text-align: center;
    margin-bottom: 2rem;
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.inquiry-form input,
.inquiry-form textarea {
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

/* NEWSLETTER */
.newsletter-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--light-bg), rgba(65, 105, 225, 0.05));
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.1);
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 61, 145, 0.3);
}

/* BUTTONS */
.submit-btn,
.inquiry-form button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.submit-btn:hover,
.inquiry-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 122, 0, 0.3);
}

/* FOOTER */
.footer-main {
    background: linear-gradient(180deg, rgba(11, 61, 145, 0.85) 0%, rgba(4, 26, 64, 0.85) 100%),
                url('../images/scholarship%202026.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 3rem 0 2rem;
    margin-top: 5rem;
    box-shadow: 0 -8px 32px rgba(11, 61, 145, 0.2);
    position: relative;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Centered Logo */
.footer-logo-center {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.footer-logo-center a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--white);
    transition: all 0.35s ease;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
}

.footer-logo-center a:hover {
    border-color: var(--secondary);
    box-shadow: 0 16px 64px rgba(255, 122, 0, 0.35);
    transform: translateY(-6px);
}

.footer-logo-center img {
    max-width: 130px;
    max-height: 130px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-column h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--white);
    text-align: left;
}

.footer-column ul {
    list-style: none;
    text-align: left;
}

.footer-column ul li {
    margin: 0.65rem 0;
}

.footer-column a {
    color: #cfe4ff;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding-bottom: 2px;
}

.footer-column a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: all 0.28s ease;
    transform: translateX(-50%);
}

.footer-column a:hover {
    color: var(--white);
}

.footer-column a:hover::after {
    width: 100%;
}

/* FOOTER ABOUT SECTION */
.footer-about {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.05), rgba(255, 156, 74, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 1.5rem;
}

.footer-logo img {
    max-width: 90px;
    max-height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

/* FOOTER SOCIAL */
.footer-social {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.15), rgba(255, 156, 74, 0.1));
    color: var(--white);
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 122, 0, 0.3);
}

/* FOOTER CONTACT */
.footer-column address {
    font-style: normal;
    color: #d4e6ff;
    line-height: 1.8;
    text-align: left;
}

.footer-column address a {
    display: block;
    margin: 0.5rem 0;
}

.copyright {
    font-size: 0.9rem;
    color: #a8c5e0;
    margin-top: 1rem;
}

/* FOOTER BOTTOM */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #cfe4ff;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0.5rem 0;
    color: #a8c5e0;
}

.footer-bottom a {
    color: #cfe4ff;
    transition: var(--transition);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Ensure footer container items are not constrained by page containers */
main ~ .footer-main {
    margin-left: auto;
    margin-right: auto;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .principal-content {
        grid-template-columns: 1fr;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.5rem 1rem;
    }

    .logo {
        width: 70px;
        height: 70px;
        padding: 5px;
        border: 2px solid var(--white);
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    }

    .college-name {
        font-size: 0.95rem;
        background: linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0.8) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .navbar-menu {
        gap: 1rem;
    }

    .nav-list {
        display: none;
        gap: 0;
        position: fixed;
        right: 0;
        left: 0;
        top: 85px;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #003d82 100%);
        flex-direction: column;
        padding: 0.8rem 0;
        border-radius: 0;
        box-shadow: 0 8px 24px rgba(11, 61, 145, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15);
        border: 2px solid rgba(255, 107, 0, 0.25);
        border-top: 1px solid rgba(255, 107, 0, 0.2);
        z-index: 999;
        max-height: calc(100vh - 85px);
        overflow-y: auto;
        pointer-events: auto;
        animation: slideDownMenu 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(20px);
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        width: 100%;
        animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    .nav-list li:nth-child(1) { animation-delay: 0.05s; }
    .nav-list li:nth-child(2) { animation-delay: 0.1s; }
    .nav-list li:nth-child(3) { animation-delay: 0.15s; }
    .nav-list li:nth-child(4) { animation-delay: 0.2s; }
    .nav-list li:nth-child(5) { animation-delay: 0.25s; }
    .nav-list li:nth-child(6) { animation-delay: 0.3s; }
    .nav-list li:nth-child(7) { animation-delay: 0.35s; }

    .nav-list a {
        display: block;
        padding: 1rem 1.5rem;
        border-radius: 0;
        margin: 0;
        transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
        color: rgba(255, 255, 255, 0.95);
        border-left: 4px solid transparent;
        position: relative;
    }
    
    .nav-list > li > a::after {
        content: '';
        display: inline-block;
        width: 0;
        height: 0;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 5px solid currentColor;
        margin-left: 0.5rem;
        opacity: 0;
        transition: opacity 0.3s ease;
        margin-right: 0;
    }
    
    .nav-list > li:has(.nav-dropdown) > a::after {
        opacity: 1;
        margin-right: 0;
    }
    
    .nav-list > li:has(.nav-dropdown.active) > a::after {
        transform: rotate(180deg);
    }

    .nav-list a:hover {
        background: rgba(255, 107, 0, 0.15);
        color: var(--secondary);
        border-left-color: var(--secondary);
    }

    .menu-toggle {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .container-main {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Dropdown Styling */
    .nav-list .nav-dropdown {
        position: static !important;
        top: auto !important;
        left: auto !important;
        display: none !important;
        visibility: visible !important;
        flex-direction: column !important;
        background: rgba(0, 0, 0, 0.25) !important;
        border: none !important;
        box-shadow: inset 0 8px 16px rgba(0, 0, 0, 0.3) !important;
        border-radius: 0 !important;
        padding: 0.5rem 0 !important;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transform: none !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        margin: 0 !important;
        min-width: none !important;
        z-index: 999 !important;
        list-style: none !important;
        border: none !important;
        box-shadow: inset 0 8px 16px rgba(0, 0, 0, 0.3) !important;
    }

    .nav-list .nav-dropdown.active {
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 500px !important;
        display: flex !important;
    }

    .nav-dropdown li a {
        display: block;
        padding: 0.75rem 1.5rem 0.75rem 2.5rem !important;
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 0.9rem;
        border: none !important;
        background: none !important;
        margin: 0 !important;
    }

    .nav-dropdown li a:hover {
        background: rgba(255, 107, 0, 0.2) !important;
        color: var(--secondary) !important;
        padding-left: 3rem !important;
    }

    /* Ensure parent links with dropdowns work on mobile */
    .nav-list > li > a {
        cursor: pointer;
        -webkit-user-select: none;
        user-select: none;
    }

    /* Force hide dropdown by default and show only when active */
    ul.nav-dropdown {
        display: none !important;
    }
    
    ul.nav-dropdown.active {
        display: flex !important;
        background: rgba(0, 0, 0, 0.25) !important;
        position: static !important;
    }
}

@media (max-width: 600px) {
    .header-container {
        padding: 0 0.75rem;
    }

    .logo {
        width: 65px;
        height: 65px;
        padding: 4px;
        border: 2px solid var(--white);
    }

    .college-name {
        font-size: 0.85rem;
        max-width: 120px;
    }

    .hero-section {
        padding: 3rem 1rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .hero-content h2 {
        font-size: 1.5rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .section-title h2 {
        font-size: 1.5rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .principal-section,
    .mission-vision-section,
    .programs-section,
    .why-choose-section,
    .testimonials-section,
    .contact-inquiry-section,
    .newsletter-section {
        padding: 2rem 0;
    }

    .mission-card,
    .vision-card,
    .program-card {
        padding: 1.5rem;
    }

    .inquiry-box {
        padding: 2rem 1.5rem;
    }

    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 0.75rem;
    }

    .footer-logo img {
        max-width: 70px;
        max-height: 90px;
    }

    .footer-column h4 {
        font-size: 0.85rem;
    }

    /* Text wrapping and overflow handling */
    p, span, a, h1, h2, h3, h4, h5, h6 {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .container-main {
        overflow-x: hidden;
    }

    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Button and link text wrapping */
    a[href*="register"],
    a[href*="programs"], 
    button {
        white-space: normal;
        word-wrap: break-word;
    }
}

@media (max-width: 420px) {
    .header-container {
        padding: 0 0.5rem;
        gap: 0.5rem;
    }

    .logo {
        width: 45px;
        height: 45px;
        padding: 3px;
    }

    .college-name {
        font-size: 0.75rem;
        max-width: 100px;
        height: auto;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-box {
        padding: 1.5rem 1rem;
    }

    .footer-column address {
        font-size: 0.85rem;
    }

    /* Additional mobile optimizations for extra small screens */
    body {
        overflow-x: hidden;
    }

    main {
        width: 100%;
        overflow: hidden;
    }

    h1, h2, h3, h4, h5, h6 {
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }

    p, span, a {
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    /* Ensure no horizontal scroll */
    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.5rem !important;
    }

    .container-main {
        padding: 0 0.5rem !important;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .about-grid,
    .mission-vision-grid,
    .programs-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .program-card,
    .mission-card,
    .vision-card {
        padding: 1rem !important;
        margin: 0 !important;
    }

    /* Fix navigation on mobile */
    .nav-list {
        right: 0.5rem !important;
        left: 0.5rem !important;
    }

    .nav-list a {
        padding: 0.9rem 1.2rem !important;
        margin: 0.2rem 0.5rem !important;
        font-size: 0.85rem;
    }

    .menu-toggle {
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem;
    }

    /* Responsive button styling */
    a[style*="display: inline-flex"],
    button[style*="display: inline-flex"] {
        width: auto;
        min-width: auto;
        max-width: 100%;
    }

    /* Prevent icons from overflowing */
    i[class*="fas"],
    svg {
        max-width: 100%;
        height: auto;
    }
}

/* ===========================
   VISUAL ENHANCEMENTS & ANIMATIONS
   Eye-catching improvements for better UX
   =========================== */

/* SMOOTH SCROLL BEHAVIOR */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ANIMATION KEYFRAMES */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(65, 105, 225, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(65, 105, 225, 0);
    }
}

@keyframes shimmerEffect {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes slideDownMenu {
    from {
        opacity: 0;
        transform: translateY(-20px) scaleY(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

/* HERO SECTION ANIMATIONS */
.hero-section {
    animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
    animation: fadeInUp 0.8s ease-out 0.2s both;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-content h2 {
    animation: fadeInUp 0.8s ease-out 0.4s both;
    background-size: 200% auto;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    animation: fadeInUp 0.8s ease-out 0.6s both;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* PROGRAM CARDS - ENHANCED HOVER EFFECTS */
.program-card {
    animation: scaleIn 0.6s ease-out;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.program-card::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.6s ease-out;
    pointer-events: none;
    z-index: 1;
}

.program-card:hover::before {
    left: 100%;
}

.program-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(65, 105, 225, 0.25);
}

.program-card:hover .program-icon {
    transform: scale(1.2) rotate(10deg);
    color: #FF6B00;
}

.program-icon {
    transition: var(--transition);
}

/* MISSION & VISION CARDS - ENHANCED */
.mission-card,
.vision-card {
    animation: fadeInUp 0.7s ease-out;
    position: relative;
    overflow: hidden;
}

.mission-card::after,
.vision-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4169E1, #FF6B00);
    transform: translateX(-100%);
    transition: transform 0.6s ease-out;
}

.mission-card:hover::after,
.vision-card:hover::after {
    transform: translateX(0);
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(65, 105, 225, 0.15);
}

/* FEATURE BOXES - NUMBERED & ANIMATED */
.feature-box {
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.feature-box:nth-child(1) { animation-delay: 0.1s; }
.feature-box:nth-child(2) { animation-delay: 0.2s; }
.feature-box:nth-child(3) { animation-delay: 0.3s; }
.feature-box:nth-child(4) { animation-delay: 0.4s; }
.feature-box:nth-child(5) { animation-delay: 0.5s; }
.feature-box:nth-child(6) { animation-delay: 0.6s; }

.feature-box::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 107, 0, 0.1) 0%, transparent 100%);
    transition: top 0.6s ease-out;
}

.feature-box:hover::before {
    top: 0;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(65, 105, 225, 0.15);
}

.feature-number {
    animation: float 3s ease-in-out infinite;
    transition: var(--transition);
}

.feature-box:hover .feature-number {
    color: #FF6B00;
    transform: scale(1.1);
}

/* TESTIMONIAL CARDS - ENHANCED */
.testimonial-card {
    animation: scaleIn 0.6s ease-out;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4169E1, #FF6B00);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease-out;
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(65, 105, 225, 0.2);
}

.testimonial-author {
    color: #4169E1;
    font-weight: 600;
    font-style: italic;
    transition: var(--transition);
}

.testimonial-card:hover .testimonial-author {
    color: #FF6B00;
}

/* BUTTONS - ENHANCED INTERACTIVE */
.read-more,
.submit-btn,
.btn-primary-small {
    position: relative;
    overflow: hidden;
    display: inline-block;
    transition: var(--transition);
    min-height: 48px;
    min-width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.read-more::after,
.submit-btn::after,
.btn-primary-small::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.read-more:hover::after,
.submit-btn:hover::after,
.btn-primary-small:hover::after {
    width: 300px;
    height: 300px;
}

.read-more:hover,
.submit-btn:hover,
.btn-primary-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(65, 105, 225, 0.3);
}

/* PRINCIPAL SECTION */
.principal-section {
    animation: fadeInUp 0.8s ease-out;
}

.principal-image img {
    animation: slideInLeft 0.8s ease-out;
    transition: var(--transition);
}

.principal-image:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.principal-text {
    animation: slideInRight 0.8s ease-out;
}

/* SECTION TITLES - UNDERLINE ANIMATION */
.section-title {
    position: relative;
    margin-bottom: 2rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4169E1, #FF6B00);
    animation: slideInLeft 0.8s ease-out;
    border-radius: 2px;
}

.section-title p {
    color: #333;
    font-size: 1.05rem;
    margin-top: 0.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* CONTAINER ENTRY ANIMATIONS */
.programs-section,
.mission-vision-section,
.why-choose-section,
.testimonials-section,
.latest-news-section {
    animation: fadeInUp 0.8s ease-out;
}

/* NEWS CARDS HOVER */
.news-card {
    animation: scaleIn 0.6s ease-out !important;
    transition: all 0.4s cubic-bezier(0.2, 0, 0.2, 1) !important;
}

.news-card:hover {
    transform: translateY(-15px) scale(1.02) !important;
    box-shadow: 0 25px 50px rgba(65, 105, 225, 0.25) !important;
}

/* FORM ELEMENTS */
input,
textarea,
select {
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(65, 105, 225, 0.15);
}

input::placeholder,
textarea::placeholder {
    transition: color 0.3s ease;
}

input:focus::placeholder,
textarea:focus::placeholder {
    color: #999;
}

/* COUNTER ANIMATION */
@keyframes countUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* SECTION DIVIDERS */
section {
    position: relative;
}

section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e9ecef, transparent);
}

/* LINK HOVER EFFECTS */
a {
    position: relative;
}

a:not(.read-more):not(.submit-btn)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF6B00;
    transition: width 0.3s ease;
}

a:hover:not(.read-more):not(.submit-btn)::after {
    width: 100%;
}

/* ============================================
   ULTIMATE NAVBAR & UNDERLINE FIXES
   ============================================ */

/* ABSOLUTE FIX: Remove all text-decoration from navbar */
.header-main a,
.nav-list a,
.nav-list li a,
.nav-dropdown a {
    text-decoration: none !important;
    border-bottom: none !important;
    text-decoration-line: none !important;
    text-decoration-thickness: 0 !important;
    text-underline-offset: 0 !important;
}

/* Remove ALL pseudo-elements that could create underlines */
.header-main a::before,
.header-main a::after,
.nav-list a::before,
.nav-list a::after,
.nav-list li a::before,
.nav-list li a::after,
.nav-dropdown a::before,
.nav-dropdown a::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
}

/* Fix focus states */
.nav-list a:focus,
.nav-dropdown a:focus,
.nav-list li a:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
    text-decoration: none !important;
}

/* Ensure nav links don't have any box-shadow that could appear as underlines */
.nav-list a,
.nav-dropdown a,
.nav-list li a {
    box-shadow: none !important;
}

/* Remove underline from logo section */
.logo-section {
    text-decoration: none !important;
    border: none !important;
}

.logo-section:hover {
    text-decoration: none !important;
}

/* Additional mobile/tablet responsive rules */
@media (max-width: 768px) {
    /* Hero Section Mobile Fixes */
    .hero-section {
        min-height: 50vh !important;
        padding: 2rem 1rem !important;
        background-attachment: scroll !important;
    }
    
    .hero-content {
        padding: 2rem 1rem !important;
        max-width: 100% !important;
    }
    
    .hero-content h1 {
        font-size: 1.6rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.8rem !important;
    }
    
    .hero-content h2 {
        font-size: 1.3rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .hero-content p {
        font-size: 0.95rem !important;
    }
    
    /* CTA Buttons Stack on Mobile */
    .hero-content > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .hero-content a {
        width: 100% !important;
        justify-content: center !important;
    }
    
    /* Principal Section Mobile */
    .principal-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .principal-image img {
        max-height: 300px !important;
    }
    
    /* Grid Collapses */
    .programs-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Card Padding Reduction */
    .program-card,
    .mission-card,
    .vision-card,
    .feature-box {
        padding: 1.5rem !important;
    }
    
    /* Section Padding */
    section {
        padding: 2rem 0 !important;
    }
    
    /* Container Main Padding */
    .container-main {
        padding: 0 1rem !important;
        max-width: 100% !important;
    }
    
    /* Section Titles */
    .section-title h2 {
        font-size: 1.6rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .section-title p {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Footer Improvements */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .footer-section {
        padding: 2rem 1rem !important;
    }
    
    /* Text Sizing */
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.4rem !important; }
    h3 { font-size: 1.15rem !important; }
    p { font-size: 0.95rem !important; }
    
    /* Button Sizing */
    .action-btn,
    .btn,
    button {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Newsletter Form */
    .newsletter-form {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100% !important;
    }
}

/* SCROLL REVEAL INTERSECTION OBSERVER READY */
[data-aos] {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* FOCUS VISIBLE FOR ACCESSIBILITY */
*:focus-visible {
    outline: 3px solid #4169E1;
    outline-offset: 2px;
}

/* BACKDROP EFFECTS */
.inquiry-box,
.newsletter-content {
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}



/* =========================================
   CLS (Cumulative Layout Shift) PREVENTION
   ========================================= */

/* Fixed dimensions for media containers */
iframe, video, embed, object {
    max-width: 100%;
    height: auto;
}

/* Reserve space for dynamic content */
.ad-space, .widget-placeholder, .banner-space {
    min-height: 250px;
    background: var(--light-bg, #f0f0f0);
}

/* Prevent form shift on interaction */
button, input[type=submit], a.btn {
    transition: box-shadow 0.2s ease;
    will-change: transform;
}

button:hover, input[type=submit]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Input focus without layout shift */
input, textarea, select {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary, #2E5090);
}

/* Ensure banners/modals don't cause shift */
.modal, .dialog, .popup {
    position: fixed;
    overflow: hidden;
}

/* Fix header height to prevent shift on scroll */
header, nav {
    height: auto;
    min-height: 60px;
}