/* ============================================
   COMPONENT STYLES
   ============================================ */

/* Navigation - Enhanced Professional Design */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 
        0 1px 0 rgba(0, 0, 0, 0.03),
        0 8px 32px rgba(0, 46, 109, 0.06);
    border-bottom: 1px solid rgba(93, 187, 255, 0.08);
}

.navbar.scrolled {
    padding: 14px 0;
    box-shadow: 
        0 2px 0 rgba(0, 0, 0, 0.03),
        0 12px 40px rgba(0, 46, 109, 0.1);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    padding: 5px 0;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 
        0 4px 12px rgba(0, 46, 109, 0.08),
        0 0 0 2px rgba(255, 255, 255, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(93, 187, 255, 0.1);
}

.logo:hover .logo-img {
    transform: scale(1.05);
    box-shadow: 
        0 6px 20px rgba(93, 187, 255, 0.15),
        0 0 0 2px rgba(93, 187, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--sky-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover .logo-text {
    background: linear-gradient(135deg, var(--sky-blue) 0%, var(--dark-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

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

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 20px;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.1px;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(93, 187, 255, 0.1), rgba(93, 187, 255, 0.05));
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}

.nav-link:hover {
    color: var(--sky-blue);
    transform: translateY(-1px);
}

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

.nav-link.active {
    color: var(--sky-blue);
    font-weight: 700;
}

.nav-link.active::before {
    opacity: 1;
    transform: scale(1);
    background: linear-gradient(135deg, rgba(93, 187, 255, 0.15), rgba(93, 187, 255, 0.08));
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, var(--sky-blue), var(--dark-blue));
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(93, 187, 255, 0.4);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    min-width: 260px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 46, 109, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    border: 1px solid rgba(93, 187, 255, 0.1);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--dark-blue);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    margin: 2px 8px;
    border-radius: 10px;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--sky-blue), var(--dark-blue));
    border-radius: 0 3px 3px 0;
    transition: height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(93, 187, 255, 0.1), rgba(93, 187, 255, 0.05));
    color: var(--sky-blue);
    padding-left: 28px;
    transform: translateX(4px);
}

.dropdown-item:hover::before {
    height: 60%;
}

/* Desktop only - dropdown on hover */
@media (min-width: 993px) {
    .nav-item:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }
}

.hamburger {
    display: none;
    font-size: 1.4rem;
    color: var(--dark-blue);
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1001;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    outline: none;
    flex-shrink: 0;
}

.hamburger i {
    font-size: 1.4rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.hamburger:hover {
    background: linear-gradient(135deg, rgba(93, 187, 255, 0.12), rgba(93, 187, 255, 0.06));
    color: var(--sky-blue);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(93, 187, 255, 0.2);
}

.hamburger:active {
    transform: scale(0.95);
}

.hamburger.active {
    background: linear-gradient(135deg, rgba(93, 187, 255, 0.15), rgba(93, 187, 255, 0.08)) !important;
    color: var(--sky-blue) !important;
}

.hamburger.active i {
    transform: rotate(90deg);
}
/* Highlights Cards */
.highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--border-radius-lg);
    padding: 45px 35px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.highlight-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--sky-blue), var(--dark-blue));
    z-index: 2;
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.highlight-card:hover:before {
    transform: scaleX(1);
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(93, 187, 255, 0.3);
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--sky-blue), var(--dark-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--sky-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--dark-blue);
    transform: translateX(5px);
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--sky-blue) 0%, var(--dark-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.stat-item p {
    font-weight: 600;
    color: var(--dark-blue);
}

/* Programs Grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.program-card {
    text-align: center;
    transition: var(--transition);
}

.program-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--sky-blue), var(--dark-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Footer - Enhanced Professional Design */
footer {
    background: var(--dark-blue);
    color: white;
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

footer .footer-col:first-child p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--sky-blue);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.footer-logo i {
    font-size: 1.5rem;
    color: var(--sky-blue);
}

.footer-logo:hover {
    color: #a1d8ff;
}

.footer-logo:hover i {
    color: #a1d8ff;
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--sky-blue);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--sky-blue);
    border-radius: 1px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin-bottom: 10px;
    transition: var(--transition);
    font-size: 0.95rem;
    font-weight: 400;
}

.footer-links a:hover {
    color: var(--sky-blue);
    padding-left: 5px;
    transform: translateX(3px);
}

.footer-contact p {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact i {
    margin-right: 12px;
    color: var(--sky-blue);
    margin-top: 3px;
    font-size: 1rem;
    min-width: 18px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1rem;
}

.social-icon:hover {
    background: var(--sky-blue);
    border-color: var(--sky-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(93, 187, 255, 0.4);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 400;
}

.copyright a {
    color: var(--sky-blue);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.copyright a:hover {
    color: #a1d8ff;
    text-decoration: underline;
}


/* Add to the end of components.css */

/* Card link styling */
.card-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--sky-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    padding-right: 20px;
}

.card-link:after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
}

.card-link:hover {
    color: var(--dark-blue);
    padding-right: 25px;
}

.card-link:hover:after {
    right: -5px;
}

/* Responsive adjustments for new components */
@media (max-width: 992px) {
    .programs-grid,
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials {
        grid-template-columns: 1fr;
    }
    
    .cta-section h2 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .programs-grid,
    .events-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .events-grid {
        margin-top: 50px;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-card-body {
        flex-direction: row;
        padding: 25px;
        gap: 18px;
    }
    
    .event-date {
        flex-shrink: 0;
    }
    
    .event-content {
        text-align: left;
    }
    
    .events-section {
        padding: 70px 0;
    }
    
    .events-section .section-header {
        margin-bottom: 50px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 15px;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
}



/* Add to components.css */

/* Image hover effects */
.highlight-card,
.program-card,
.testimonial-card,
.event-card {
    overflow: hidden;
}

/* Ensure cards with images have proper spacing */
.highlight-card .highlight-icon,
.program-card .program-icon {
    margin-top: 20px;
}

/* Make sure text doesn't overlap with images */
.highlight-card h3,
.program-card h3 {
    margin-top: 10px;
}

/* Gallery item responsiveness */
@media (max-width: 768px) {
    .gallery-item {
        height: 200px;
    }
    
    .highlight-image,
    .program-image {
        height: 150px;
    }
}

/* Parallax effect for background images */
@media (min-width: 769px) {
    .hero-image,
    .campus-image,
    .cta-image {
        transform: translateY(calc(var(--scroll-y) * 0.5));
    }
}

/* Image loading animation */
.highlight-image,
.program-image,
.gallery-item,
.testimonial-image,
.event-image {
    animation: imageLoad 0.5s ease-out;
}

@keyframes imageLoad {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}