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

:root {
    --primary-red: #E04349;
    --primary-red-hover: #c9343a;
    --primary-red-light: rgba(224, 67, 73, 0.1);
    --primary-green: #84C064;
    --primary-green-hover: #72aa51;
    --primary-green-light: rgba(132, 192, 100, 0.1);
    --dark-blue: #0F172A;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Resets */
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-red-hover);
}

/* Typography Helper */
.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-red);
    border-radius: 2px;
}

.section-title.text-start::after {
    left: 0;
    transform: none;
}

.section-subtitle {
    color: var(--primary-green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Custom Buttons */
.btn-red {
    background-color: var(--primary-red);
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    border: 2px solid var(--primary-red);
    transition: var(--transition);
}

.btn-red:hover, .btn-red:focus {
    background-color: var(--primary-red-hover);
    border-color: var(--primary-red-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-green {
    background-color: var(--primary-green);
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    border: 2px solid var(--primary-green);
    transition: var(--transition);
}

.btn-green:hover, .btn-green:focus {
    background-color: var(--primary-green-hover);
    border-color: var(--primary-green-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-red {
    background-color: transparent;
    color: var(--primary-red);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    border: 2px solid var(--primary-red);
    transition: var(--transition);
}

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

.btn-outline-green {
    background-color: transparent;
    color: var(--primary-green);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    border: 2px solid var(--primary-green);
    transition: var(--transition);
}

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

/* Header & Top Bar */
.top-bar {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.8);
}

.top-bar a:hover {
    color: var(--primary-green);
}

.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 15px 0;
}

.navbar.navbar-shrink {
    padding: 8px 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand img {
    height: 60px;
    transition: var(--transition);
}

.navbar.navbar-shrink .navbar-brand img {
    height: 50px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark-blue) !important;
    font-size: 0.95rem;
    padding: 10px 12px !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 12px;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 24px);
}

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

/* Hero Section */
.hero-slider .item {
    height: 80vh;
    min-height: 500px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero-slider .item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.4));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 700px;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--primary-green);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Owl Carousel Customizations */
.owl-theme .owl-nav [class*="owl-"] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    line-height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2) !important;
    color: var(--white) !important;
    font-size: 1.5rem !important;
    margin: 0;
    padding: 0;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.owl-theme .owl-nav [class*="owl-"]:hover {
    background: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
    color: var(--white) !important;
}

.owl-theme .owl-nav .owl-prev {
    left: 30px;
}

.owl-theme .owl-nav .owl-next {
    right: 30px;
}

.owl-theme .owl-dots {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
}

.owl-theme .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    margin: 5px 7px;
    background: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: var(--primary-red);
    width: 25px;
}

/* Card Styling */
.custom-card {
    background-color: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    height:auto;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background-color: var(--bg-light);
}

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

.custom-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

/* Course Categories and Badge */
.course-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-red);
    color: var(--white);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 50px;
    z-index: 1;
}

/* Why Choose Us & Statistics */
.counter-box {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--primary-green);
    transition: var(--transition);
    height: 100%;
}

.counter-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.counter-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 5px;
}

.counter-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Faculty Carousel Card */
.faculty-card {
    text-align: center;
    background: var(--white);
    border-radius: 12px;
    padding: 30px 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    /* height: 100%; */
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.faculty-img-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-green-light);
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.faculty-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faculty-img-container i {
    font-size: 3rem;
    color: var(--text-muted);
}

.faculty-name {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.faculty-role {
    font-size: 0.9rem;
    color: var(--primary-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.faculty-qual {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Testimonial Items */
.testimonial-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
}

.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    color: rgba(132, 192, 100, 0.1);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    font-size: 1.05rem;
    margin-bottom: 25px;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1.25rem;
}

/* Info Section (Hostel Highlight) */
.highlight-banner {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #1e293b 100%);
    color: var(--white);
    border-radius: 16px;
    padding: 50px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.highlight-banner::after {
    content: '';
    position: absolute;
    right: -100px;
    bottom: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(132, 192, 100, 0.05);
    z-index: 1;
}

.highlight-banner h2 {
    color: var(--white);
}

/* Enquiry Form Card */
.enquiry-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--primary-red);
}

.form-control, .form-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 4px var(--primary-red-light);
    border-color: var(--primary-red);
}

/* Footer Section */
.footer {
    background-color: var(--dark-blue);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

.footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-green);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: inline-block;
}

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

.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-btn:hover {
    background-color: var(--primary-red);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: 50px;
}

/* Floating WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    color: var(--white);
    font-size: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    animation: pulse-green 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: var(--white);
    background-color: #20ba5a;
}

.whatsapp-tooltip {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
    pointer-events: none;
    white-space: nowrap;
}

.whatsapp-widget:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Scroll to Top */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    border: none;
    font-size: 1.25rem;
    transition: var(--transition);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-3px);
}

/* Gallery Styling */
.gallery-filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

.gallery-filter-btn.active, .gallery-filter-btn:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
}

.gallery-item {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4/3;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay i {
    transform: translateY(0);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #1e293b 100%);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.breadcrumb-item a {
    color: var(--primary-green);
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Blog Sidebar Items */
.notice-item {
    border-left: 3px solid var(--primary-red);
    padding-left: 15px;
    margin-bottom: 20px;
}

.notice-date {
    font-size: 0.85rem;
    color: var(--primary-green);
    font-weight: 600;
}

.notice-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1rem;
}

.notice-title a {
    color: var(--dark-blue);
}

.notice-title a:hover {
    color: var(--primary-red);
}

/* Timeline Admission Process */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--primary-green);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary-green-light);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-number {
    font-weight: 800;
    color: var(--primary-red);
    font-size: 1.25rem;
    margin-bottom: 5px;
}

/* Media Queries for Responsiveness */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-lg);
        border-radius: 12px;
        margin-top: 15px;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .hero-slider .item {
        height: 70vh;
    }
    
    .hero-content h1 {
        font-size: 2.75rem;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.85rem;
    }
    
    .hero-slider .item {
        height: 60vh;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-content p {
        font-size: 1.05rem;
    }
    
    .highlight-banner {
        padding: 30px 20px;
    }
    
    .owl-theme .owl-nav {
        display: none;
    }
}
