/* assets/css/style.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #8B0E14; /* Sri Githam Maroon */
    --secondary-color: #B31217; /* Premium Red */
    --accent-color: #D4AF37; /* Academic Gold */
    --bg-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #f8f9fa;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

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

/* Typography Utilities */
.text-primary-brand { color: var(--primary-color) !important; }
.text-secondary-brand { color: var(--secondary-color) !important; }
.text-accent-brand { color: var(--accent-color) !important; }
.bg-primary-brand { background-color: var(--primary-color) !important; }
.bg-secondary-brand { background-color: var(--secondary-color) !important; }
.bg-accent-brand { background-color: var(--accent-color) !important; }
.border-primary-brand { border-color: var(--primary-color) !important; }
.border-secondary-brand { border-color: var(--secondary-color) !important; }
.border-accent-brand { border-color: var(--accent-color) !important; }

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.btn-primary-custom:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary-custom {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    border: 2px solid var(--accent-color);
}

.btn-secondary-custom:hover {
    background-color: transparent;
    color: var(--accent-color);
}

/* Navbar */
.navbar-brand img {
    height: 60px; /* Adjust based on logo */
}

.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.navbar-custom .nav-link {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 8px 12px;
    margin: 0 4px;
    border-radius: 5px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(212, 175, 55, 0.1); /* Subtle gold background */
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 70%;
}

/* Submenu / Dropdown Styles */
.navbar-custom .dropdown-menu {
    border: none;
    border-top: 3px solid var(--accent-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-radius: 0 0 10px 10px;
    padding: 10px 0;
    margin-top: 0;
    animation: dropdownFade 0.3s ease forwards;
    background-color: #ffffff;
}

.navbar-custom .dropdown-item {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 10px 20px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.navbar-custom .dropdown-item:hover {
    background-color: rgba(212, 175, 55, 0.05); /* Very light gold */
    color: var(--primary-color);
    padding-left: 25px; /* Slide effect */
    border-left: 3px solid var(--accent-color);
}

.navbar-custom .dropdown-divider {
    border-top-color: rgba(0,0,0,0.05);
}

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

/* Hover dropdown for Desktop */
@media (min-width: 992px) {
    .navbar-custom .dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* Hero Section */
.hero-slider .carousel-item {
    position: relative;
    background-color: var(--primary-color);
}

.hero-slider .carousel-item img {
    width: 100%;
    height: auto;
}

.carousel-control-next {
    right: 50px; /* Prevent overlap with sticky social bar */
}
.carousel-control-prev {
    left: 20px;
}

.hero-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 80%;
    z-index: 2;
}

.hero-caption h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-caption p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
}

/* Cards & Glassmorphism */
.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
    border-top: 4px solid var(--secondary-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(139, 14, 20, 0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Achievement Counters */
.counter-section {
    background: var(--primary-color);
    color: white;
    padding: 60px 0;
    background-image: linear-gradient(135deg, var(--primary-color) 0%, #4a070a 100%);
}

.counter-item h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
}

/* Course Cards */
.course-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.course-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

.course-content {
    background: white;
    padding: 25px;
    position: relative;
    z-index: 10;
    border-top: 5px solid var(--primary-color);
}

/* Section Padding */
.section-padding {
    padding: 80px 0;
}

/* Utilities */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    color: var(--primary-color);
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

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

/* =========================================
   PREMIUM FOOTER REDESIGN
   ========================================= */

.premium-footer-wrapper {
    position: relative;
    font-family: var(--font-secondary);
}

/* 1. Admissions CTA Banner */
.admissions-cta-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 20px;
    padding: 35px 40px;
    position: relative;
    overflow: hidden;
}

.admissions-cta-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    pointer-events: none;
}
.admissions-cta-banner > * {
    position: relative;
    z-index: 1;
}

.btn-accent-custom {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    transition: var(--transition);
}

.btn-accent-custom:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* 2. Achievement Counters (Footer Version) */
.footer-counters-section {
    border-top: 5px solid var(--accent-color);
}
.counter-item-footer .icon-circle {
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.counter-item-footer h3 {
    font-family: var(--font-heading);
}

/* 3. Main Footer */
.footer-main {
    position: relative;
}

.footer-heading {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.footer-links a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    font-size: 0.8rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
    color: var(--accent-color);
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-links.with-icons a::before {
    display: none; /* Hide standard chevron if using custom icons */
}
.footer-links.with-icons a {
    padding-left: 0;
}
.footer-links.with-icons a:hover {
    transform: translateX(5px);
}
.footer-links.with-icons i {
    width: 25px;
}

/* Social Links */
.social-links-list li {
    margin-bottom: 12px;
}
.social-links-list a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: var(--transition);
}
.social-links-list i {
    width: 35px; height: 35px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-right: 15px;
    transition: var(--transition);
}
.social-links-list a:hover {
    color: white;
}
.social-links-list a:hover i {
    transform: scale(1.1);
}

/* Quick Actions */
.quick-action-btns .action-btn {
    background: rgba(255,255,255,0.05);
}
.quick-action-btns .action-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-color) !important;
}

/* 4. Newsletter */
.newsletter-card {
    border-top: 4px solid var(--accent-color);
}
.newsletter-card .form-control {
    border-radius: 30px 0 0 30px;
    padding-left: 20px;
}
.newsletter-card .btn {
    border-radius: 0 30px 30px 0;
}

/* Utilities */
.hover-accent:hover {
    color: var(--accent-color) !important;
}

/* 5. Floating Elements */
.floating-elements-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.floating-btn {
    width: 55px; height: 55px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none !important;
    transition: var(--transition);
    cursor: pointer;
}

.floating-btn:hover {
    transform: scale(1.1);
    color: white;
}

.floating-btn.whatsapp-btn { background-color: #25d366; }
.floating-btn.whatsapp-btn:hover { background-color: #128C7E; }

.floating-btn.chat-btn { background-color: var(--primary-color); }
.floating-btn.chat-btn:hover { background-color: var(--secondary-color); }

.floating-btn.admission-btn { background-color: var(--accent-color); color: var(--primary-color); }
.floating-btn.admission-btn:hover { background-color: #f1c40f; color: var(--primary-color); }

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 991px) {
    .border-end-lg { border: none !important; }
    .admissions-cta-banner { text-align: center; }
}

@media (max-width: 768px) {
    .footer-accordion-col .footer-heading {
        cursor: pointer;
        margin-bottom: 10px;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .footer-accordion-col .collapse:not(.show) {
        display: none;
    }
    
    .footer-accordion-col .footer-heading[aria-expanded="true"] i {
        transform: rotate(180deg);
    }
    .footer-accordion-col .footer-heading i {
        transition: transform 0.3s ease;
    }

    .carousel-control-next { right: 10px; }
    .carousel-control-prev { left: 10px; }
    
    .text-center-mobile { text-align: center !important; }
    .counter-item-footer { flex-direction: column !important; text-align: center; }
    
    .floating-elements-wrapper {
        bottom: 20px;
        right: 20px;
    }
    .floating-btn {
        width: 45px; height: 45px;
        font-size: 20px;
    }
}

/* =========================================
   STICKY SOCIAL BAR (RESTORED)
   ========================================= */
.sticky-social-bar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sticky-social-bar.collapsed {
    transform: translateY(-50%) translateX(45px);
}

.sticky-social-bar .item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: width 0.3s ease, background 0.3s ease;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
}

.sticky-social-bar .item.toggle-btn {
    position: absolute;
    left: -25px;
    top: 0;
    width: 25px;
    height: 40px;
    background: #111;
    color: white;
    border-radius: 5px 0 0 5px;
    font-size: 12px;
}

.sticky-social-bar .item.quick-contact {
    background: #e74c3c;
    height: 160px; /* Increased from 140px to ensure text fits on single line */
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    padding: 15px 0;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap; /* Forces text to stay on one line */
}

.sticky-social-bar .item.quick-contact i {
    transform: rotate(90deg);
    margin-bottom: 10px;
    font-size: 16px;
}

.sticky-social-bar .item.facebook { background: #3b5998; }
.sticky-social-bar .item.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.sticky-social-bar .item.youtube { background: #c4302b; border-radius: 0 0 0 5px; }

.sticky-social-bar .item:not(.toggle-btn):not(.quick-contact):hover {
    width: 55px;
}
.sticky-social-bar .item.quick-contact:hover {
    background: #c0392b;
}

@media (max-width: 768px) {
    /* Sticky social bar is now visible on mobile per user request */
    .sticky-social-bar {
        transform: translateY(-50%) scale(0.85); /* Slightly scale down on mobile to save space */
        transform-origin: right center;
    }
    .sticky-social-bar.collapsed {
        transform: translateY(-50%) translateX(45px) scale(0.85);
    }
}
/* =========================================
   ACADEMY SHOWCASE (SWIPER)
   ========================================= */
.academy-showcase-section {
    min-height: 750px;
    background-color: var(--primary-color);
    padding-bottom: 40px;
}
@media (max-width: 991px) {
    .academy-showcase-section {
        height: auto;
    }
    .academy-visual-wrapper {
        margin-bottom: 40px;
    }
}

.academy-swiper {
    width: 100%;
    height: 100%;
}

.slide-iitjee {
    background: linear-gradient(135deg, #6b0a0f 0%, var(--primary-color) 100%);
}

.slide-neet {
    background: linear-gradient(135deg, #001f3f 0%, #003366 100%); /* Medical Blue Theme */
}

.academy-main-img {
    border: 5px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.academy-visual-wrapper {
    position: relative;
    padding: 20px;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    z-index: 10;
    padding: 15px;
    text-align: center;
    border-radius: 15px;
    min-width: 110px;
    animation: float 4s ease-in-out infinite;
}

.floating-badge.badge-1 { top: -15px; right: -10px; animation-delay: 0s; }
.floating-badge.badge-2 { bottom: 15px; right: -35px; animation-delay: 1s; }
.floating-badge.badge-3 { bottom: -25px; left: 20px; animation-delay: 2s; }

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

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.feature-card-glass {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--accent-color);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.feature-card-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}
.feature-card-glass.border-info-glass {
    border-left: 3px solid var(--bs-info);
}

/* Stats Ribbon */
.stats-ribbon {
    background: rgba(0, 0, 0, 0.2);
}

/* Swiper Controls overrides */
.academy-pagination .swiper-pagination-bullet {
    background: rgba(255,255,255,0.5);
    opacity: 1;
    width: 10px; height: 10px;
}
.academy-pagination .swiper-pagination-bullet-active {
    background: var(--accent-color);
    width: 25px;
    border-radius: 5px;
}
.slide-neet .academy-pagination .swiper-pagination-bullet-active {
    background: var(--bs-info);
}

.academy-button-next, .academy-button-prev {
    color: rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.3);
    width: 50px; height: 50px;
    border-radius: 50%;
    transition: 0.3s;
}
.academy-button-next:hover, .academy-button-prev:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}
.slide-neet .academy-button-next:hover, .slide-neet .academy-button-prev:hover {
    background: var(--bs-info);
    color: #fff;
}
.academy-button-next::after, .academy-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}
