/* Physics with Shyan - Custom Styles */

:root {
    --primary-color: #3b82f6;
    /* Modern Blue */
    --primary-glow: rgba(59, 130, 246, 0.4);
    --secondary-color: #1a102b;
    --dark-purple: #2d1a3a;
    --accent-orange: #ffb347;
    --text-dark: #1f1f1f;
    --text-light: #6b7280;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.4);
    --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
    --premium-gradient: linear-gradient(135deg, #1a102b 0%, #2d1a3a 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
    color: var(--text-dark);
    font-size: 17px;
    line-height: 1.65;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

p {
    font-size: 1rem;
    color: var(--text-light);
}

/* Navbar Styles */
.navbar {
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.7) !important;
    /* More transparent */
    backdrop-filter: blur(20px);
    /* Stronger blur */
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    position: fixed !important;
    top: 0;
    width: 100%;
    z-index: 1030;
    /* Ensure navbar stays on top */
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: #4b5563 !important;
    padding: 8px 16px !important;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(59, 130, 246, 0.05);
}

.nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Carousel */
.hero-carousel {
    margin-top: 0;
}

.carousel-item img {
    width: 100%;
    height: 600px;
    /* Slightly increased height */
    object-fit: cover;
}

/* Dark Overlay for Carousel */
/* Dark Overlay removed */
.carousel-item::after {
    display: none;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.carousel-caption {
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.carousel-caption h1 {
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.carousel-caption p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 30px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 20px;
}

/* Course Card Styles */
.course-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.course-image {
    position: relative;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-logo {
    position: absolute;
    bottom: -25px;
    right: 15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.course-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.course-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 52px;
}

.enrolled {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.enrolled i {
    color: var(--primary-color);
}

.price-section {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.regular-price {
    color: var(--text-dark);
    font-size: 1.2rem;
}

.discounted-price {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.course-card .btn {
    margin-top: 15px;
    border-radius: 8px;
    font-weight: 600;
    padding: 10px;
}

/* Review Card Styles */
.reviews-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-purple));
    padding: 40px 0;
}

.review-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    color: white;
    text-align: center;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.review-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    margin-bottom: 15px;
}

.student-name {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.university {
    color: var(--warning-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.review-text {
    color: #ddd;
    font-style: italic;
    line-height: 1.8;
}

/* Counter Section */
.counter-section {
    background: linear-gradient(135deg, var(--primary-color), #ff8a80);
    padding: 40px 0;
    color: white;
}

.counter-item {
    text-align: center;
}

.counter-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.counter-item h3 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.counter-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Home Stats Counter */
.icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(255, 105, 95, 0.1);
    /* Light version of primary color */
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.counter-box {
    padding: 30px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.counter-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.1);
}

.counter-box:hover .icon-circle {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 10px 20px var(--primary-glow);
}

/* Active Counter Style (Blue Circle) */
.counter-box.active-counter .icon-circle {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.counter-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Mobile Optimization for Counter */
@media (max-width: 768px) {
    .counter-box {
        padding: 15px 5px;
        /* Reduced padding */
        border-radius: 10px;
    }

    .icon-circle {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .counter-box h4 {
        font-size: 1.4rem;
    }

    .counter-box small {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }
}

.shadow-custom {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.counter-box h4 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 10px 0 5px;
}

.counter-box small {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Why Us Section */
.why-us {
    padding: 80px 0;
    background: #fdfdfd;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.feature-item {
    text-align: center;
    padding: 35px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    /* Remove stock border */
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.1);
    background: white;
}

@media (max-width: 991px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
        /* Tighter gap */
        padding: 5px 0;
    }

    .feature-item {
        padding: 10px 5px;
        /* Minimal padding */
    }

    .feature-item .feature-icon {
        width: 40px;
        /* Small icon container */
        height: 40px;
        font-size: 16px;
        /* Small icon */
        margin-bottom: 5px;
    }

    .feature-item p {
        font-size: 0.75rem;
        /* Small text */
        line-height: 1.1;
    }
}

.feature-item {
    text-align: center;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    color: var(--primary-color);
}

.feature-item .feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: #fff0f0;
    /* Light reddish background */
    color: var(--primary-color);
    /* Blue icon */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.feature-item.active-card {
    background: white;
    /* Keep white bg as per image */
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.2);
}

.feature-item.active-card p {
    color: var(--text-dark);
    /* Keep text dark in active card unless user wants it colored */
    font-weight: 600;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    background: var(--primary-color);
    color: white;
}

.feature-item p {
    margin: 0;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

/* Video Wrapper */
.video-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
    z-index: 10;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 105, 95, 0.7);
    }

    70% {
        box-shadow: 0 0 0 25px rgba(255, 105, 95, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 105, 95, 0);
    }
}

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 24px;
    transition: all 0.3s ease;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Section Headings */
.section-heading {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 15px;
}

/* Underline removed as per request */
.section-heading::after {
    content: none;
}

.section-heading span {
    color: var(--primary-color);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: initial;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
}

footer .social-links a {
    transition: transform 0.3s ease;
    display: inline-block;
}

footer .social-links a:hover {
    transform: translateY(-5px);
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

/* Common Section Padding */
.hover-white:hover {
    color: white !important;
}

.section-padding {
    padding: 20px 0;
}

/* Utilities */
.text-primary-custom {
    color: var(--primary-color);
}

.bg-primary-custom {
    background-color: var(--primary-color);
}

.shadow-custom {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    z-index: 1000;
    display: flex;
    /* Changed from none to flex to let mobile view handle it */
    box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.05);
}

.mobile-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    width: 100%;
    /* Force full width to spread items */
    max-width: 100%;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #8e8e8e;
    transition: all 0.2s ease;
    flex: 1;
}

.mobile-nav-item i {
    font-size: 18px;
    /* Slightly smaller for better fit */
    margin-bottom: 2px;
}

.mobile-nav-item span {
    font-size: 10px;
    /* Thinner/smaller font as requested */
    font-weight: 500;
    white-space: nowrap;
    /* Prevent wrapping */
}

.mobile-nav-item.active {
    color: var(--primary-color);
}

.mobile-nav-item.active i {
    font-weight: 900;
    transform: scale(1.1);
}

.mobile-nav-item i {
    font-size: 19px;
    /* Slightly larger for better detail */
    margin-bottom: 2px;
    transition: transform 0.2s ease;
}