/**
 * Study Ranger - Frontend Styles
 * Modern educational website design
 */

/* ===== Global Styles ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Navigation ===== */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: all var(--transition-base);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    transition: all var(--transition-base);
}

.navbar-brand:hover {
    color: var(--primary-hover) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    padding: 0.5rem 1rem !important;
    transition: all var(--transition-base);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--primary-color);
}

.btn-student-login {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all var(--transition-base);
}

.btn-student-login:hover {
    background: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 38, 105, 0.3);
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* ===== Stats Section ===== */
.stats-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    padding: 80px 0;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.stats-section .container {
    position: relative;
    z-index: 1;
}

.stat-card-modern {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: 2.5rem 1.5rem;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
}

.stat-card-modern:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.stat-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(238, 198, 70, 0.4);
    transition: all var(--transition-base);
}

.stat-card-modern:hover .stat-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(238, 198, 70, 0.6);
}

.stat-icon-wrapper i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.stat-number-modern {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    line-height: 1;
}

.stat-label-modern {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .stat-card-modern {
        padding: 2rem 1rem;
    }
    
    .stat-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .stat-icon-wrapper i {
        font-size: 2rem;
    }
    
    .stat-number-modern {
        font-size: 2.5rem;
    }
    
    .stat-label-modern {
        font-size: 0.9rem;
    }
}

/* Old stat card styles - keeping for backward compatibility */
.stat-card {
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 500;
}

/* ===== Section Titles ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-label {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* ===== Feature Cards ===== */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
    height: 100%;
    border: 1px solid var(--border-light);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(238, 198, 70, 0.3);
}

.feature-card h4 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.3rem;
}

/* ===== About Section ===== */
.about-section {
    background: var(--bg-secondary);
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    font-weight: 700;
}

/* ===== Story Section ===== */
.story-image-wrapper {
    position: relative;
}

.story-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-2xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-slow);
}

.story-image-wrapper:hover img {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.story-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-base);
}

.story-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
    .story-badge {
        bottom: 20px;
        right: 20px;
        padding: 1rem 1.5rem;
    }
    
    .story-badge i {
        font-size: 1.5rem !important;
    }
    
    .story-badge > div > div:first-child {
        font-size: 1.5rem !important;
    }
    
    .story-badge > div > div:last-child {
        font-size: 0.8rem !important;
    }
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    border-top: 4px solid var(--secondary-color);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.testimonial-rating {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}

.testimonial-info h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.testimonial-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===== Topper Cards ===== */
.topper-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
    height: 100%;
}

.topper-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.topper-image-wrapper {
    position: relative;
    overflow: hidden;
}

.topper-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: var(--bg-tertiary);
    transition: all var(--transition-slow);
}

.topper-card:hover .topper-image {
    transform: scale(1.1);
}

.topper-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(238, 198, 70, 0.4);
    animation: pulse 2s infinite;
}

.topper-badge i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(238, 198, 70, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(238, 198, 70, 0.6);
    }
}

.topper-info {
    padding: 1.5rem;
    text-align: center;
}

.topper-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.topper-achievement {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.topper-year {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ===== Toppers Carousel ===== */
#toppersCarousel {
    position: relative;
    padding: 0 50px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    transition: all var(--transition-base);
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary-hover);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.carousel-control-icon i {
    font-size: 1.5rem;
    color: white;
}

.carousel-indicators {
    bottom: -50px;
    margin-bottom: 0;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: none;
    opacity: 1;
    transition: all var(--transition-base);
}

.carousel-indicators button.active {
    background-color: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

@media (max-width: 991px) {
    #toppersCarousel {
        padding: 0 40px;
    }
    
    .carousel-control-prev {
        left: -20px;
    }
    
    .carousel-control-next {
        right: -20px;
    }
}

@media (max-width: 767px) {
    #toppersCarousel {
        padding: 0;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    .carousel-control-icon i {
        font-size: 1.2rem;
    }
}

/* ===== Teacher Cards - Enhanced Design ===== */
.teacher-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.teacher-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.teacher-card:hover::before {
    transform: scaleX(1);
}

.teacher-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.teacher-card-clickable {
    cursor: pointer;
}

.teacher-card-clickable:hover .teacher-image {
    transform: scale(1.08);
}

.teacher-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    background: var(--bg-tertiary);
    transition: transform 0.5s ease;
    position: relative;
}

.teacher-card .teacher-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.teacher-card:hover .teacher-image::after {
    opacity: 1;
}

.teacher-info {
    padding: 1.75rem 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.teacher-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.teacher-card:hover .teacher-name {
    color: var(--secondary-color);
}

.teacher-role {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-link-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.teacher-card-clickable:hover .card-link-indicator {
    opacity: 1;
    transform: scale(1);
}

.card-link-indicator i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.teacher-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.teacher-social a {
    width: 38px;
    height: 38px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.teacher-social a:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Team Section Enhancements */
.team-member-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.teacher-card:hover .team-member-badge {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive adjustments for teacher cards */
@media (max-width: 991px) {
    .teacher-image {
        height: 280px;
    }
}

@media (max-width: 767px) {
    .teacher-image {
        height: 350px;
    }
    
    .teacher-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 575px) {
    .teacher-image {
        height: 300px;
    }
}

/* ===== Course Cards ===== */
.course-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
    height: 100%;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-tertiary);
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9rem;
}

.course-content {
    padding: 1.5rem;
}

.course-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.course-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.course-rating {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.2;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

/* ===== Footer ===== */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 0 30px;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.footer p {
    color: rgba(255, 255, 255, 0.85);
}

.footer ul {
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all var(--transition-base);
}

.footer ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ===== Buttons ===== */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 38, 105, 0.3);
}

.btn-secondary {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    border-color: var(--secondary-hover);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 198, 70, 0.3);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .stats-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* ===== Offcanvas Menu ===== */
.nav-link-offcanvas {
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    font-weight: 500;
}

.nav-link-offcanvas:hover,
.nav-link-offcanvas.active {
    background: var(--primary-light);
    color: white;
}


/* ===== Toppers Carousel ===== */
.toppers-carousel-wrapper {
    padding: 0 60px;
    margin: 0 auto;
    max-width: 1400px;
}

.toppers-carousel-container {
    overflow: hidden;
    position: relative;
}

.toppers-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 1.5rem;
}

.topper-carousel-item {
    flex: 0 0 calc(25% - 1.125rem);
    min-width: calc(25% - 1.125rem);
}

.toppers-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(31, 80, 146, 0.3);
}

.toppers-carousel-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(31, 80, 146, 0.4);
}

.toppers-carousel-prev {
    left: 0;
}

.toppers-carousel-next {
    right: 0;
}

@media (max-width: 1199px) {
    .topper-carousel-item {
        flex: 0 0 calc(33.333% - 1rem);
        min-width: calc(33.333% - 1rem);
    }
}

@media (max-width: 991px) {
    .toppers-carousel-wrapper {
        padding: 0 50px;
    }
    
    .topper-carousel-item {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: calc(50% - 0.75rem);
    }
    
    .toppers-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .toppers-carousel-wrapper {
        padding: 0 40px;
    }
    
    .topper-carousel-item {
        flex: 0 0 100%;
        min-width: 100%;
    }
}


/* ===== Testimonials Carousel ===== */
.testimonials-carousel-wrapper {
    padding: 0 60px;
    margin: 0 auto;
    max-width: 1400px;
}

.testimonials-carousel-container {
    overflow: hidden;
    position: relative;
}

.testimonials-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 1.5rem;
}

.testimonial-carousel-item {
    flex: 0 0 calc(25% - 1.125rem);
    min-width: calc(25% - 1.125rem);
}

.testimonials-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(31, 80, 146, 0.3);
}

.testimonials-carousel-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(31, 80, 146, 0.4);
}

.testimonials-carousel-prev {
    left: 0;
}

.testimonials-carousel-next {
    right: 0;
}

@media (max-width: 1199px) {
    .testimonial-carousel-item {
        flex: 0 0 calc(33.333% - 1rem);
        min-width: calc(33.333% - 1rem);
    }
}

@media (max-width: 991px) {
    .testimonials-carousel-wrapper {
        padding: 0 50px;
    }
    
    .testimonial-carousel-item {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: calc(50% - 0.75rem);
    }
    
    .testimonials-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .testimonials-carousel-wrapper {
        padding: 0 40px;
    }
    
    .testimonial-carousel-item {
        flex: 0 0 100%;
        min-width: 100%;
    }
}


/* ===== Page Title Section ===== */
.page-title-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.page-title-section .container {
    position: relative;
    z-index: 1;
}

.page-title-section .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.page-title-section .breadcrumb-item {
    font-size: 0.95rem;
}

.page-title-section .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all var(--transition-base);
}

.page-title-section .breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.page-title-section .breadcrumb-item.active {
    color: var(--secondary-color);
}

.page-title-section .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    max-width: 700px;
}

@media (max-width: 768px) {
    .page-title-section {
        padding: 60px 0 40px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
}


/* ===== Floating Buttons ===== */
.floating-whatsapp {
    position: fixed;
    bottom: 100px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp:hover {
    background: #128C7E;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.floating-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-scroll-top:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.floating-scroll-top.show {
    display: flex;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 80px;
        left: 15px;
    }
    
    .floating-scroll-top {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 20px;
        right: 15px;
    }
}
