:root {
    --primary-color: #274082;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --font-family: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-family);
    color: #444;
    line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-color);
}

#top-header {
    background: var(--primary-color);
    padding: 0.6rem 0;
    font-size: 0.9rem;
}

#top-header .contact-info-top a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

#top-header .contact-info-top a:hover {
    opacity: 1;
}

#top-header .contact-info-top a i {
    margin-right: 8px;
}

#top-header .social-links a {
    color: #fff;
    opacity: 0.8;
    margin-left: 15px;
    transition: opacity 0.3s ease;
}

#top-header .social-links a:hover {
    opacity: 1;
}

#main-navbar {
    transition: all 0.3s ease;
    background: #fff !important;
}

.logo-img {
    height: 50px;
}

.navbar-brand {
    font-size: 1.5rem;
}
.navbar-brand strong {
    color: var(--primary-color);
}

.navbar .nav-link {
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.navbar .nav-link.active, .navbar .nav-link:hover {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dropdown-item {
    font-weight: 500;
}
.dropdown-item:hover {
    background-color: var(--primary-color);
    color: #fff !important;
}

/* Mega Menu */
.dropdown-mega {
    position: static;
}

.dropdown-mega-simple {
    position: relative;
}

.dropdown-mega .dropdown-menu {
    width: 100%;
    left: 0;
    top: 100%;
    padding: 1.5rem 1rem;
    border-radius: 0 0 0.5rem 0.5rem;
}

/* Custom width for Courses Mega Menu is now handled in the media query */

.dropdown-mega .dropdown-header {
    font-weight: 700;
    color: var(--primary-color);
    padding-left: 0.75rem;
    font-size: 1rem;
}

.dropdown-mega .dropdown-item {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.dropdown-mega .dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.dropdown-mega .dropdown-item:hover i {
    color: #fff;
}

main#main-content {
    padding-top: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.sub-pages h3 {
    color: #333;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
}

.sub-page-content {
    display: none;
}

.sub-page-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

/* Hero Section - Modern Redesign */
#heroCarousel .carousel-item {
    height: 95vh; 
    min-height: 600px;
    background-size: cover;
    background-position: center;
}

#heroCarousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
}

#heroCarousel .carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 0;
}

#heroCarousel .hero-content {
    max-width: 600px;
    animation: hero-text-animation 1s forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes hero-text-animation {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#heroCarousel .carousel-item.active .hero-content {
    animation-delay: 0.5s;
}

#heroCarousel .carousel-caption h1 {
    color: #fff;
    font-weight: 700;
    font-size: 3.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

#heroCarousel .carousel-caption p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

#heroCarousel .btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-width: 2px;
}

#heroCarousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#heroCarousel .carousel-indicators .active {
    background-color: #fff;
    opacity: 1;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.3s ease;
}
#heroCarousel .carousel-control-prev { left: 30px; }
#heroCarousel .carousel-control-next { right: 30px; }

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Sections */
section:not(#home) {
    padding: 100px 0;
}

/* Course Cards */
.course-card {
    border: none;
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.course-card .card-title {
    color: var(--primary-color);
}

/* Contact Section */
#contact .contact-info, #contact form {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
#contact .contact-info i {
    color: var(--primary-color);
}
#contact .contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}
#contact .contact-info a:hover {
    text-decoration: underline;
}

/* Footer */
footer.site-footer {
    background: #1a1a1a;
    color: #a9a9a9;
    padding: 60px 0 0;
    font-size: 0.9rem;
}

.footer-top {
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-bottom {
    padding: 20px 0;
    font-size: 0.85rem;
    color: #777;
}

.footer-bottom a {
    color: #fff;
    font-weight: 500;
}

.footer-bottom .fas.fa-heart {
    color: #e74c3c; /* Red heart */
}

.site-footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
}

.site-footer a {
    color: #a9a9a9;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    background: #333;
    color: #fff;
    margin-right: 8px;
    transition: background 0.3s ease;
}

.footer-social-icons a:hover {
    background: var(--primary-color);
    color: #fff !important; /* Overriding other link colors */
}

#home {
    padding: 0 !important;
}

#about {
    background-color: #fff;
}

#about .lead {
    font-weight: 400;
    color: #6c757d;
}

#about .icon-box-sm {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: #e7f0fe;
    color: var(--primary-color);
}

#about h5 {
    font-weight: 600;
}

.btn-read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    color: var(--dark-color);
}

.btn-read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.btn-read-more:hover i {
    transform: translateX(5px);
}

/* Why Choose Us Section */
#why-choose-us {
    background: var(--dark-color);
}

#why-choose-us .section-title h2,
#why-choose-us .section-title p {
    color: #fff;
}

#why-choose-us .section-title p {
    color: rgba(255, 255, 255, 0.7);
}

.choose-us-item {
    background: #343a40;
    padding: 40px 20px;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
    height: 100%;
}

.choose-us-item:hover {
    transform: translateY(-10px);
    border-top-color: var(--primary-color);
}

.choose-us-item .icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
}

.choose-us-item h4 {
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.choose-us-item p {
    color: rgba(255, 255, 255, 0.7);
}

/* Life at Wilfred's Section - Modern Card Design */
#life-at-wilfreds {
    background: #f8f9fa;
}

#life-at-wilfreds .life-item {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    margin: 0 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#life-at-wilfreds .life-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#life-at-wilfreds .life-item img {
    width: 100%;
}

#life-at-wilfreds .life-item-content {
    padding: 25px;
}

#life-at-wilfreds .life-item-content h4 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
}

#life-at-wilfreds .life-item-content p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
}

#life-at-wilfreds .slick-dots li button:before {
    font-size: 12px;
    color: var(--primary-color);
}

#life-at-wilfreds .slick-dots li.slick-active button:before {
    opacity: 1;
    color: var(--primary-color);
}

#life-at-wilfreds .slick-prev,
#life-at-wilfreds .slick-next {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    z-index: 1;
    border-radius: 50%;
}

#life-at-wilfreds .slick-prev:hover,
#life-at-wilfreds .slick-next:hover {
    background: var(--primary-color);
}

#life-at-wilfreds .slick-prev { left: -25px; }
#life-at-wilfreds .slick-next { right: -25px; }

/* Notices & Updates Section */
#notices-updates {
    background: #fff;
}

#notices-updates .section-header h2 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.notices-list {
    max-height: 450px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom Scrollbar */
.notices-list::-webkit-scrollbar {
    width: 5px;
}
.notices-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.notices-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.notices-list::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.events-carousel .event-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.events-carousel .event-item img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.events-carousel .event-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: #fff;
}

.events-carousel .event-item-content h4 {
    color: #fff;
    font-weight: 600;
}

.notices-list .notice-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 0.5rem;
    margin-bottom: 15px;
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.notices-list .notice-item:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.notices-list .notice-date {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    margin-right: 20px;
    font-weight: 700;
}

.notices-list .notice-date .month {
    font-size: 0.8rem;
    display: block;
    text-transform: uppercase;
}

.notices-list .notice-date .day {
    font-size: 1.5rem;
    display: block;
    line-height: 1;
}

.notices-list .notice-content h5 {
    font-weight: 600;
    margin-bottom: 5px;
}

.notices-list .notice-content p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* Testimonials Section */
#testimonials {
    padding: 80px 0;
    background: var(--light-color);
}
.testimonial-slider .testimonial-item {
    background: #fff;
    padding: 40px;
    margin: 0 15px;
    border-radius: 0.5rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    text-align: center;
}
.testimonial-item img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid var(--primary-color);
}
.testimonial-item h5 {
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 5px;
}
.testimonial-item span {
    color: #6c757d;
    font-weight: 500;
}
.testimonial-item p {
    font-style: italic;
    color: #444;
}
.testimonial-item .quote-icon {
    color: var(--primary-color);
    font-size: 2rem;
    opacity: 0.2;
}

/* Student Avatar Styles */
.student-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem auto;
    box-shadow: 0 4px 15px rgba(39, 64, 130, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.student-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(39, 64, 130, 0.4);
}
#testimonials .slick-dots li button:before {
    font-size: 12px;
    color: var(--primary-color);
}

/* How to Apply Section */
#how-to-apply {
    padding: 80px 0;
    background: var(--primary-color);
    color: #fff;
}
#how-to-apply .lead {
    color: rgba(255, 255, 255, 0.8);
}
#how-to-apply h2 {
    color: #fff;
}
.apply-step {
    text-align: center;
    position: relative;
    padding: 0 30px;
}
.apply-step .icon {
    width: 80px;
    height: 80px;
    background: #fff;
    color: var(--primary-color);
    font-size: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(0,0,0, 0.1);
}
.apply-step h5 {
    font-weight: 600;
    color: #fff;
}
.apply-step p {
    color: rgba(255, 255, 255, 0.8);
}
.apply-step-connector {
    flex-grow: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 20px;
}

/* Campus Life */
#campus-life img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#campus-life img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Mobile-specific mega menu styling */
@media (max-width: 991.98px) {
    .dropdown-mega .mega-menu-column:not(:first-child) {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #eee;
    }
    .vertical-apply-btn {
        display: none !important;
    }
}

/* Desktop-specific dropdown alignment */
@media (min-width: 992px) {
    .dropdown-mega-simple .dropdown-menu {
        width: auto;
        left: 0;
        min-width: 250px;
    }
    
    .dropdown-mega-courses .dropdown-menu {
        width: auto;
        min-width: 600px;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Vertical separator for mega menu */
    .dropdown-mega .mega-menu-column:not(:last-child) {
        border-right: 1px solid #eee;
    }
}

/* Wider Container for larger screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1600px;
  }
}

/* Stats Section */
#stats {
    background: var(--primary-color);
    padding: 60px 0;
    color: #fff;
}

#stats .stat-item {
    text-align: center;
}

#stats .stat-item .icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

#stats .stat-item .counter-value {
    font-size: 3.5rem;
    font-weight: 700;
}

#stats .stat-item p {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

#courses .course-card-v2 {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#courses .course-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

#courses .course-card-v2 .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

#courses .course-card-v2 h4 {
    font-weight: 600;
    color: var(--dark-color);
}

#courses .course-card-v2 .btech-streams {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: left;
}

#courses .course-card-v2 .btech-streams a {
    display: block;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 8px;
    text-decoration: none;
    color: #444;
    font-weight: 500;
    transition: all 0.3s ease;
}

#courses .course-card-v2 .btech-streams a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateX(5px);
}

/* Fixed Action Buttons */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    transform: translateY(20px);
    z-index: 1000;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-fab {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    background-color: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    color: #fff;
}

.vertical-apply-btn {
    position: fixed;
    top: 50%;
    left: -110px !important; /* Adjust for a nice "peek" amount */
    transform: translateY(-50%) rotate(-270deg);
    transform-origin: right center; /* Scale from the right edge */
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 25px;
    border-radius: 6px 6px 0 0;
    font-weight: 600;
    text-decoration: none;
    z-index: 1000;
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.vertical-apply-btn:hover {
    transform: translateY(-50%) rotate(-270deg) scale(1.1); /* Scale up on hover */
    color: #fff;
}

/* Mobile Bottom Bar */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    z-index: 1010;
}

.mobile-bottom-bar .btn {
    flex-grow: 1;
    border-radius: 0;
    padding: 0.8rem 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.mobile-bottom-bar .dropup .dropdown-menu {
    width: 100%;
    border-radius: 5px 5px 0 0;
}

/* Page Title Section */
.page-title-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.page-title-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark-color);
}

.page-content-section {
    padding: 80px 0;
} 