/* Enhanced Navbar Styles */
.navbar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98)) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    padding: 10px 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.99)) !important;
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.15);
}

.navbar-brand {
    position: relative;
    padding: 5px 15px;
    overflow: hidden;
}

.navbar-brand img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar-brand:hover img {
    transform: scale(1.08) rotate(2deg);
}

.navbar-brand::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(46, 125, 50, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

.navbar-brand:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.navbar-nav {
    gap: 15px;
}

.nav-item {
    position: relative;
    perspective: 1000px;
}

.nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    padding: 10px 20px !important;
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: 30px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.2);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link.active {
    color: white !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.2);
}

/* Enhanced Search Bar */
.search-wrapper {
    position: relative;
    margin-left: 20px;
}

.search-input {
    width: 220px;
    padding: 12px 45px 12px 20px;
    border: 2px solid transparent;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1), rgba(76, 175, 80, 0.1));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.search-input:focus {
    width: 280px;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(46, 125, 50, 0.15);
    outline: none;
    background: white;
}

.search-button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
}

.search-button:hover {
    transform: translateY(-50%) scale(1.15);
    color: var(--secondary-color);
}

/* Enhanced Mobile Navigation */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        padding: 25px;
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        margin-top: 15px;
        border: 1px solid rgba(46, 125, 50, 0.1);
        backdrop-filter: blur(10px);
    }

    .nav-item {
        margin: 8px 0;
        transform-style: preserve-3d;
    }

    .nav-link {
        text-align: center;
        padding: 12px 25px !important;
    }

    .search-wrapper {
        margin: 15px 0;
    }

    .search-input, .search-input:focus {
        width: 100%;
        padding: 15px 45px 15px 20px;
    }
}

/* Enhanced Animation for Navbar on Scroll */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar.scrolled {
    animation: slideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Search Bar Styles */
.search-wrapper {
    position: relative;
    margin-left: 15px;
}

.search-input {
    width: 200px;
    padding: 8px 35px 8px 15px;
    border: 2px solid transparent;
    border-radius: 25px;
    background: rgba(74, 144, 226, 0.1);
    transition: all 0.3s ease;
}

.search-input:focus {
    width: 250px;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.2);
    outline: none;
}

.search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Mobile Navigation */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-top: 15px;
    }

    .nav-item {
        margin: 5px 0;
    }

    .search-wrapper {
        margin: 10px 0;
    }

    .search-input {
        width: 100%;
    }

    .search-input:focus {
        width: 100%;
    }
}

/* Animation for Navbar on Scroll */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar.scrolled {
    animation: slideDown 0.5s ease forwards;
}

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --accent-color: #28a745;
    --text-color: #333;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    scroll-behavior: smooth;
}

/* Navigation Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand .logo {
    height: 50px;
    transition: transform 0.3s ease;
}

.navbar-brand .logo:hover {
    transform: scale(1.1);
}

.nav-link {
    position: relative;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section Styles */
.hero-container {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
    transition: transform 10s linear;
}

.hero-slide.active .hero-image {
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7), transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    color: white;
    padding: 0 10%;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

.hero-cta {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background-color: darken(#007bff, 10%);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Sections */
.section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.section h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-color);
}

/* About Section */
.about-section {
    background-color: white;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-features {
    list-style: none;
    padding: 0;
}

.about-features li {
    margin-bottom: 10px;
}

.about-features i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* Programs Section */
.program-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.program-card:hover {
    transform: translateY(-10px);
}

.program-card img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Contact Section */
.contact-section {
    background-color: var(--light-bg);
}

.contact-form input,
.contact-form textarea {
    border-radius: 5px;
    border: 1px solid #ddd;
}

.contact-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 50px 0;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--primary-color);
}

.newsletter-form input {
    border-radius: 5px 0 0 5px;
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Latest Posts Section */
.post-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.post-title {
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.post-excerpt {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Search Styles */
.search-item {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.search-form {
    position: relative;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 25px;
    padding: 5px;
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-input {
    border: none;
    background: transparent;
    padding: 8px 15px;
    width: 200px;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    width: 220px;
}

.search-button {
    background: none;
    border: none;
    padding: 8px 15px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* Responsive Search */
@media (max-width: 991px) {
    .search-item {
        margin: 10px 0;
        width: 100%;
    }
    
    .search-wrapper {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
    
    .search-input:focus {
        width: 100%;
    }
}

/* Latest Updates Section */
.updates-section {
    background-color: var(--light-bg);
}

.update-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.update-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.update-image {
    position: relative;
    overflow: hidden;
}

.update-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.update-card:hover .update-image img {
    transform: scale(1.1);
}

.update-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.update-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.update-content h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.update-card:hover .update-content h3 {
    color: var(--primary-color);
}

.update-content p {
    color: var(--secondary-color);
    margin-bottom: 15px;
    flex-grow: 1;
}

.update-content .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Latest Updates Section */
#latest-updates {
    background-color: #f8f9fa;
    overflow: hidden;
}

#latest-updates .section-title {
    position: relative;
    text-align: center;
    color: #333;
    font-weight: bold;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

#latest-updates .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
}

#latest-updates .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#latest-updates .card {
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: none;
    overflow: hidden;
    transform: scale(0.9);
    opacity: 0;
}

#latest-updates .card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

#latest-updates .card-img-top {
    transition: transform 0.4s ease;
    overflow: hidden;
}

#latest-updates .card:hover .card-img-top {
    transform: scale(1.1);
}

#latest-updates .card-body {
    background: white;
    transition: background 0.4s ease;
}

#latest-updates .card:hover .card-body {
    background: #f8f9fa;
}

/* Staggered Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0, 20px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

#latest-updates .card:nth-child(1) { animation: fadeInUp 0.6s ease forwards; animation-delay: 0.2s; }
#latest-updates .card:nth-child(2) { animation: fadeInUp 0.6s ease forwards; animation-delay: 0.4s; }
#latest-updates .card:nth-child(3) { animation: fadeInUp 0.6s ease forwards; animation-delay: 0.6s; }
#latest-updates .card:nth-child(4) { animation: fadeInUp 0.6s ease forwards; animation-delay: 0.8s; }

/* Scroll Reveal */
#latest-updates.is-visible .section-title {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
.feature-item:hover i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.principal-image img:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Responsive Design */
@media (max-width: 991px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .principal-message {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .about-features {
        flex-direction: column;
    }
    
    .feature-item {
        margin-bottom: 20px;
    }
    
    .principal-image {
        margin-bottom: 30px;
    }
}

/* Animations */
.img-fluid {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Rotating Line with School Name */
.rotating-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.rotating-line svg {
    width: 100%;
    height: 100%;
}

.rotating-line svg circle {
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: rotate 10s linear infinite;
}

.rotating-line svg text {
    font-size: 14px;
    font-weight: bold;
    fill: white;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Hero Section Comprehensive Styles */
.hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 1s ease-in-out;
    display: flex;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    transition: transform 5s linear;
}

.hero-slide.active .hero-image {
    transform: scale(1.1);
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7), transparent 70%);
}

.hero-text {
    color: white;
    padding: 0 50px;
    max-width: 60%;
    transform: translateX(-50px);
    opacity: 0;
    transition: all 1s ease;
}

.hero-slide.active .hero-text {
    transform: translateX(0);
    opacity: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

.hero-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Advanced Hero Slide Transitions */
@keyframes slideLeftIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideRightIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { 
        transform: scale(0.8); 
        opacity: 0; 
    }
    to { 
        transform: scale(1); 
        opacity: 1; 
    }
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide.slide-left {
    animation: slideLeftIn 1.25s ease-out;
}

.hero-slide.slide-right {
    animation: slideRightIn 1.25s ease-out;
}

.hero-slide.fade {
    animation: fadeIn 1.25s ease-out;
}

.hero-slide.zoom {
    animation: zoomIn 1.25s ease-out;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    transition: transform 5s linear;
}

.hero-slide.active .hero-image {
    transform: scale(1.1);
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7), transparent 70%);
}

/* Hero Slider Progress Bar Styles */
.hero-slide {
    position: relative;
}

.slide-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background-color: #007bff;
    transition: width 5s linear;
    z-index: 15;
}

.hero-slide.active .slide-progress {
    width: 100%;
}

/* Enhanced Hero Section Transitions */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 1.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    transform: scale(1.1);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Slide Left Transition */
.hero-slide.slide-left {
    transform: translateX(100%) scale(1.1);
}

.hero-slide.slide-left.active {
    transform: translateX(0) scale(1);
}

/* Slide Right Transition */
.hero-slide.slide-right {
    transform: translateX(-100%) scale(1.1);
}

.hero-slide.slide-right.active {
    transform: translateX(0) scale(1);
}

/* Fade Transition */
.hero-slide.fade {
    opacity: 0;
    transform: scale(1.2);
}

.hero-slide.fade.active {
    opacity: 1;
    transform: scale(1);
}

/* Zoom Transition */
.hero-slide.zoom {
    transform: scale(1.4);
    opacity: 0;
}

.hero-slide.zoom.active {
    transform: scale(1);
    opacity: 1;
}

/* Enhanced Hero Image Transition */
.hero-image {
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-slide.active .hero-image {
    transform: scale(1);
}

.hero-slide .hero-image {
    transform: scale(1.1);
}

/* Hero Content Transition */
.hero-content {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s cubic-bezier(0.645, 0.045, 0.355, 1) 0.3s;
}

.hero-slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

/* Animation and Transition Styles */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Section Animations */
.admissions-content, .about-content, .home-content {
    animation: fadeIn 1s ease-out;
}

/* Image Hover Effects */
.img-hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-hover-effect:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* List and Section Animations */
.animated-list li, .animated-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.7s forwards;
    animation-delay: calc(var(--delay) * 0.2s);
}

/* Button Animations */
.btn-animated {
    transition: all 0.3s ease;
}

.btn-animated:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 14px rgba(50,50,93,.1), 0 3px 6px rgba(0,0,0,.08);
}

/* Card Animations */
.card-animated {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-animated:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

document.addEventListener('DOMContentLoaded', function() {
    // Smooth scrolling for navigation links
    document.querySelectorAll('a[href^="#"]').forEach(anchor => {
        anchor.addEventListener('click', function (e) {
            e.preventDefault();
            document.querySelector(this.getAttribute('href')).scrollIntoView({
                behavior: 'smooth'
            });
        });
    });

    // Navbar color change on scroll
    window.addEventListener('scroll', function() {
        if (window.scrollY > 50) {
            document.querySelector('.navbar').classList.add('scrolled');
        } else {
            document.querySelector('.navbar').classList.remove('scrolled');
        }
    });

    // Form submission handling
    const contactForm = document.querySelector('.contact-form');
    if (contactForm) {
        contactForm.addEventListener('submit', function(e) {
            e.preventDefault();
            // Add your form submission logic here
            alert('Thank you for your message. We will get back to you soon!');
            contactForm.reset();
        });
    }
});

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Principal Section Styles */
.principal-section {
    background-color: white;
    position: relative;
    overflow: hidden;
}

.principal-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.principal-background-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.3));
    filter: blur(50px);
    animation: pulse-background 5s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes pulse-background {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.principal-image {
    position: relative;
    z-index: 10;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.principal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.principal-image:hover img {
    transform: scale(1.1);
}

.principal-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 123, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.principal-image:hover .principal-hover-overlay {
    opacity: 1;
}

.principal-quote {
    color: white;
    text-align: center;
    padding: 20px;
    font-style: italic;
    font-size: 0.9rem;
}

.principal-info h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.principal-message {
    background: var(--light-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease;
}

.principal-message:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.principal-message h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.principal-message h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.principal-signature {
    margin-top: 20px;
    text-align: right;
    font-style: italic;
}

@media (max-width: 991px) {
    .principal-image-container {
        margin-bottom: 30px;
    }
}

/* Dropdown Menu Styles */
.navbar .dropdown-menu {
    background-color: white;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-top: 10px;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.navbar .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
}

.navbar .dropdown-item {
    color: var(--text-color);
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.navbar .dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.navbar .dropdown-toggle::after {
    margin-left: 5px;
    vertical-align: middle;
}

.navbar .nav-link.dropdown-toggle {
    display: flex;
    align-items: center;
}

/* Active and Focus States */
.navbar .dropdown-item:active,
.navbar .dropdown-item:focus {
    background-color: var(--primary-color);
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .navbar .dropdown-menu {
        border-radius: 0;
        margin-top: 0;
        box-shadow: none;
    }
    
    .navbar .dropdown-menu::before {
        display: none;
    }
}

/* Search Wrapper Styles */
.search-item {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.search-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-input {
    border: none;
    padding: 8px 15px;
    width: 180px;
    background: transparent;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-button {
    background: transparent;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-button:hover {
    color: var(--primary-color);
}

.search-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

@media (max-width: 991px) {
    .search-item {
        margin: 15px 0;
    }
    
    .search-wrapper {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
}