/* ============================================
   TUTOR BAZAAR - ENHANCED STYLESHEET
   Modern, Responsive, Beautiful Design
   ============================================ */

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #0b6fb6;
    --accent: #f3b430;
    --green: #34c37a;
    --secondary: #2c3e50;
    --muted: #666;
    --bg: #f8f9fa;
    --white: #fff;
    --radius: 12px;
    --shadow: 0 8px 24px rgba(2, 6, 23, 0.1);
    --shadow-lg: 0 16px 48px rgba(2, 6, 23, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #0b6fb6 0%, #0a5a9a 100%);
    --gradient-accent: linear-gradient(135deg, #f3b430 0%, #e09d1f 100%);
    --gradient-hero: linear-gradient(135deg, #eaf4ff 0%, #f7fbff 50%, #e8f2ff 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding-top: 90px;
    color: #222;
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary);
}

p {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVBAR & HEADER
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1200;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.main-logo {
    height: 55px;
    width: auto;
    max-width: 200px;
    min-width: 80px;
    object-fit: contain;
    display: block;
    transition: var(--transition);
    flex-shrink: 0;
}

.main-logo[src=""],
.main-logo:not([src]) {
    display: none;
}

.logo:hover .main-logo {
    transform: scale(1.05);
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-weight: 800;
    color: var(--secondary);
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.stacked-logo {
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stacked-logo .logo-text-container {
    align-items: center;
    text-align: center;
}

.small-logo {
    height: 40px;
}

/* Navigation Links */
nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-links a {
    color: #222;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a i {
    font-size: 0.85rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: rgba(11, 111, 182, 0.08);
    transform: translateY(-1px);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    position: relative;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 4px;
    transition: var(--transition);
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: dropdownFadeIn 0.3s ease forwards;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
    border-radius: 0;
    font-weight: 500;
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background: rgba(11, 111, 182, 0.08);
    color: var(--primary);
    transform: translateX(4px);
}

.dropdown-menu a i {
    color: var(--primary);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

    .nav-actions {
        display: flex;
        gap: 12px;
        align-items: center;
        flex-shrink: 0;
    }

    .btn-outline {
        white-space: nowrap;
        font-size: 0.9rem;
        padding: 8px 16px;
    }

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 4px;
    z-index: 1300;
}

.mobile-menu span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #333;
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: var(--gradient-hero);
    color: #222;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(11, 111, 182, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(135deg, #222 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
    position: relative;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(11, 111, 182, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 111, 182, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid rgba(11, 111, 182, 0.2);
}

.btn-secondary:hover {
    background: rgba(11, 111, 182, 0.05);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(44, 62, 80, 0.15);
    padding: 10px 20px;
    color: var(--secondary);
}

.btn-outline:hover {
    background: rgba(44, 62, 80, 0.05);
    border-color: var(--secondary);
}

.btn-accent {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(243, 180, 48, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 180, 48, 0.4);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat {
    text-align: left;
}

.stat h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Hero Image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 250, 255, 0.95) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 3rem;
    border: 2px solid rgba(11, 111, 182, 0.1);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(11, 111, 182, 0.05), transparent);
    animation: rotate 20s linear infinite;
}

.image-placeholder i {
    position: relative;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

.image-placeholder p {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 16px;
    color: var(--secondary);
}

.image-placeholder small {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 8px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-title h2 i {
    color: var(--primary);
    font-size: 2rem;
}

/* Search CTA */
.search-cta {
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.search-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
}

.search-left h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.search-right form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.search-right input,
.search-right select {
    padding: 14px 18px;
    border: 2px solid #e6e9ee;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.search-right input:focus,
.search-right select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 111, 182, 0.1);
}

/* About Highlights */
.about-highlights {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-weight: 600;
    color: var(--secondary);
}

.highlight-item i {
    color: var(--green);
    font-size: 1.2rem;
}

/* ============================================
   FEATURES & CARDS
   ============================================ */
.features-grid,
.subjects-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature-card,
.subject-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before,
.subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover::before,
.subject-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover,
.subject-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon,
.subject-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(11, 111, 182, 0.3);
    transition: var(--transition);
}

.feature-card:hover .feature-icon,
.subject-card:hover .subject-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3,
.subject-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--secondary);
}

.feature-card p,
.subject-card p {
    color: var(--muted);
    line-height: 1.6;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.testimonials-carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-carousel-wrapper::before,
.testimonials-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    z-index: 10;
    pointer-events: none;
}

.testimonials-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(248, 249, 250, 1), transparent);
}

.testimonials-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(248, 249, 250, 1), transparent);
}

.testimonials-carousel {
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
    gap: 24px;
    width: 100%;
    position: relative;
    will-change: transform;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    padding: 0 20px;
}

.testimonials-carousel:not(:has(.testimonial)) {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial {
    min-width: calc(33.333% - 16px);
    width: calc(33.333% - 16px);
    flex-shrink: 0;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: transform 0.5s ease, opacity 0.5s ease;
    display: block;
    height: auto;
}

.testimonial-quote-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(11, 111, 182, 0.3);
}

.testimonial-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary);
    margin: 20px 0 30px;
    padding-left: 70px;
    padding-top: 10px;
    font-style: italic;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--secondary);
}

.author-info p {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
}

.rating {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.rating i {
    color: #ffc107;
    font-size: 0.9rem;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--white);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.quick-action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.action-btn-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.action-btn:hover .action-btn-icon {
    transform: scale(1.1) rotate(5deg);
}

.action-btn-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.action-btn-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.action-btn-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.action-btn-arrow {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.action-btn:hover .action-btn-arrow {
    transform: translateX(5px);
}

.call-btn {
    background: linear-gradient(135deg, #0b6fb6 0%, #0a5a9a 100%);
    color: #fff;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
    color: #fff;
}

.email-btn {
    background: linear-gradient(135deg, #ea4335 0%, #c5221f 100%);
    color: #fff;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-full {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.info-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.info-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.info-header h3 i {
    color: var(--primary);
}

.info-subtitle {
    color: var(--muted);
    font-size: 1rem;
}

.contact-cards {
    display: grid;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 2px solid transparent;
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
}

.card-content h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--secondary);
}

.card-text {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.card-link:hover {
    gap: 10px;
}

.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phone-link-btn,
.email-link-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--white);
    border: 2px solid #e6e9ee;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.phone-link-btn:hover,
.email-link-btn:hover {
    border-color: var(--primary);
    background: rgba(11, 111, 182, 0.05);
    transform: translateX(5px);
}

.phone-link-btn i,
.email-link-btn i {
    color: var(--primary);
    font-size: 1.2rem;
}

.phone-link-btn span,
.email-link-btn span {
    flex: 1;
}

.phone-action,
.email-action {
    color: var(--primary);
    transition: var(--transition);
}

.phone-link-btn:hover .phone-action,
.email-link-btn:hover .email-action {
    transform: scale(1.2);
}

.whatsapp-phone-btn:hover {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.05);
}

.whatsapp-phone-btn i {
    color: #25d366;
}

.call-timing,
.response-time {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

.social-section {
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.social-header {
    text-align: center;
    margin-bottom: 24px;
}

.social-header h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-header h4 i {
    color: var(--primary);
}

.social-header p {
    color: var(--muted);
    font-size: 0.95rem;
}

.social-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--secondary);
    transition: var(--transition);
    border: 2px solid transparent;
}

.social-icon:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.social-icon i {
    font-size: 2rem;
    transition: var(--transition);
}

.social-icon span {
    font-size: 0.9rem;
    font-weight: 600;
}

.social-icon.facebook:hover {
    border-color: #1877f2;
    background: rgba(24, 119, 242, 0.05);
}

.social-icon.facebook i {
    color: #1877f2;
}

.social-icon.twitter:hover {
    border-color: #1da1f2;
    background: rgba(29, 161, 242, 0.05);
}

.social-icon.twitter i {
    color: #1da1f2;
}

/* Fix Twitter/X icon visibility */
.fab.fa-x-twitter,
.fa-x-twitter {
    color: #1da1f2 !important;
    font-size: 1.5rem !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.social-icon.twitter .fab.fa-x-twitter,
.social-icon.twitter .fa-x-twitter {
    color: #1da1f2 !important;
    font-size: 2rem !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-social .fa-x-twitter {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.05rem !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-social a:hover .fa-x-twitter {
    color: #1da1f2 !important;
}

/* Fallback: If x-twitter icon doesn't load, show regular twitter icon */
.social-icon.twitter i.fa-x-twitter:empty::before,
.footer-social .fa-x-twitter:empty::before {
    content: "\f099";
    font-family: "Font Awesome 6 Brands";
    color: #1da1f2;
}

.social-icon.instagram:hover {
    border-color: #e4405f;
    background: rgba(228, 64, 95, 0.05);
}

.social-icon.instagram i {
    color: #e4405f;
}

.social-icon.youtube:hover {
    border-color: #ff0000;
    background: rgba(255, 0, 0, 0.05);
}

.social-icon.youtube i {
    color: #ff0000;
}

.social-icon.whatsapp:hover {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.05);
}

.social-icon.whatsapp i {
    color: #25d366;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    background: var(--gradient-primary);
    color: #fff;
    text-align: center;
}

.cta h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.95);
}

.cta-subtext {
    margin-top: 24px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-subtext i {
    margin-right: 6px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--secondary);
    color: #fff;
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-section a i {
    font-size: 0.8rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    transform: translateY(-4px);
}

.footer-bottom {
    text-align: center;
    padding: 24px 0 0;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    font-size: 0.95rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition);
    z-index: 1000;
}

.scroll-to-top:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 30px rgba(11, 111, 182, 0.4);
}

.scroll-to-top.show {
    display: flex;
}

/* ============================================
   MEMBERSHIP PLANS (for membership.html)
   ============================================ */
.membership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    align-items: start;
}

.membership-card {
    border-radius: var(--radius);
    padding: 32px 24px;
    position: relative;
    color: #fff;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition);
}

.membership-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.membership-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.membership-card .plan-header {
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.membership-card h3 {
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.plan-tagline {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 1;
    flex: 1;
}

.plan-features li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
}

.plan-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.price-box {
    background: var(--white);
    color: var(--secondary);
    padding: 16px 24px;
    border-radius: var(--radius);
    font-weight: 900;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.price-duration {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-per-month {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
}

.savings-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 4px;
}

.plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    width: 100%;
}

.plan-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.membership-card.silver {
    background: linear-gradient(135deg, #c0a080 0%, #a08860 100%);
}

.membership-card.silver .plan-btn {
    background: #fff;
    color: #8b6f47;
}

.membership-card.gold {
    background: linear-gradient(135deg, #f08a23 0%, #d46b08 100%);
}

.membership-card.gold .plan-btn {
    background: #fff;
    color: #d46b08;
}

.membership-card.platinum {
    background: linear-gradient(135deg, #1e73b9 0%, #0a5a9a 100%);
}

.membership-card.platinum .plan-btn {
    background: #fff;
    color: #054a91;
}

.membership-card.diamond {
    background: linear-gradient(135deg, #0c3b63 0%, #082a47 100%);
}

.membership-card.diamond .plan-btn {
    background: #fff;
    color: #002c4d;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(243, 180, 48, 0.4);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.membership-card.featured {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.membership-note {
    margin-top: 40px;
    padding: 20px;
    background: rgba(11, 111, 182, 0.05);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: start;
    gap: 16px;
}

.membership-note i {
    color: var(--primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.membership-note p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .search-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .membership-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial {
        min-width: calc(50% - 12px);
        width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: var(--transition);
        z-index: 1100;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    /* Improved navigation spacing on mobile */
    .nav-links li {
        margin-bottom: 4px;
    }

    .nav-links a {
        border-radius: 8px;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        padding: 14px;
        justify-content: flex-start;
    }

    /* Mobile Dropdown */
    .nav-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(11, 111, 182, 0.03);
        margin-top: 8px;
        margin-left: 20px;
        border-radius: 8px;
        padding: 8px 0;
        min-width: auto;
        width: calc(100% - 40px);
        animation: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .nav-dropdown.active .dropdown-menu {
        max-height: 300px;
        padding: 8px 0;
    }

    .dropdown-menu a {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .mobile-menu {
        display: flex;
    }

    .logo-wrapper {
        flex-direction: row;
        gap: 8px;
        align-items: center;
        flex-wrap: nowrap;
    }

    .main-logo {
        height: 45px;
        max-width: 150px;
        min-width: 80px;
    }

    .logo {
        min-width: 0;
        flex-shrink: 1;
    }

    .logo-text-container {
        align-items: flex-start;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-tagline {
        font-size: 0.6rem;
        display: none;
    }

    .hero {
        padding: 60px 0 50px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat h3 {
        font-size: 1.8rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .features-grid,
    .subjects-grid {
        grid-template-columns: 1fr;
    }

    .search-right form {
        grid-template-columns: 1fr;
    }

    .quick-action-buttons {
        grid-template-columns: 1fr;
    }

    .contact-info-full {
        padding: 24px;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
    }

    .card-icon {
        margin: 0 auto;
    }

    .social-icons-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .membership-grid {
        grid-template-columns: 1fr;
    }

    .testimonial {
        padding: 30px 20px;
        min-width: calc(100% - 20px);
        width: calc(100% - 20px);
    }

    .testimonial-content {
        font-size: 1rem;
        padding-left: 60px;
        margin-top: 10px;
        padding-top: 0;
    }

    .testimonial-quote-icon {
        top: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .testimonials-carousel-wrapper {
        padding: 0 10px;
        max-width: 100%;
    }

    .testimonials-carousel {
        padding: 0 10px;
        gap: 16px;
    }

    .testimonials-carousel-wrapper::before,
    .testimonials-carousel-wrapper::after {
        display: none;
    }

    .carousel-controls {
        margin-top: 20px;
        gap: 15px;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .scroll-to-top {
        right: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }

    .navbar {
        padding: 10px 0;
    }

    .nav-container {
        padding: 10px 0;
    }

    .main-logo {
        height: 40px;
        max-width: 120px;
        min-width: 70px;
    }

    .logo-wrapper {
        gap: 6px;
    }

    .logo-text {
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .btn-outline {
        display: none;
    }

    .nav-actions {
        gap: 8px;
    }

    /* Better touch targets for mobile */
    .dropdown-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Improved testimonial carousel on mobile */
    .testimonials-carousel-wrapper {
        padding: 0 5px;
    }

    .carousel-controls {
        flex-wrap: wrap;
        gap: 10px;
    }

    .carousel-dots {
        order: 2;
        width: 100%;
        justify-content: center;
        margin: 10px 0;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .hero {
        padding: 40px 0 30px;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        margin-bottom: 30px;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .section-title h2 i {
        font-size: 1.5rem;
    }

    .cta h2 {
        font-size: 1.75rem;
    }

    .action-btn {
        padding: 18px;
        gap: 12px;
        flex-direction: column;
        text-align: center;
    }

    .action-btn-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .action-btn-title {
        font-size: 1.1rem;
    }

    .action-btn-subtitle {
        font-size: 0.85rem;
    }

    .action-btn-arrow {
        display: none;
    }

    .cta-subtext {
        flex-direction: column;
        gap: 10px;
        font-size: 0.85rem;
    }

    .contact-info-full {
        padding: 20px;
    }

    .contact-card {
        padding: 20px;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .testimonial {
        padding: 25px 15px;
    }

    .testimonial-content {
        font-size: 0.95rem;
        padding-left: 50px;
        margin-top: 10px;
        padding-top: 0;
    }

    .testimonial-quote-icon {
        top: 10px;
        left: 10px;
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    /* Enhanced Mobile Dropdown */
    .nav-dropdown .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .dropdown-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    .nav-dropdown.active .dropdown-menu {
        max-height: 300px;
    }

    .author-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .author-info h4 {
        font-size: 1rem;
    }

    .author-info p {
        font-size: 0.85rem;
    }

    .hero-stats {
        gap: 15px;
        flex-wrap: wrap;
    }

    .stat h3 {
        font-size: 1.5rem;
    }

    .stat p {
        font-size: 0.85rem;
    }

    .features-grid,
    .subjects-grid {
        gap: 16px;
    }

    .feature-card,
    .subject-card {
        padding: 24px 20px;
    }

    .feature-icon,
    .subject-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .mobile-menu,
    .scroll-to-top,
    .btn,
    .carousel-controls {
        display: none;
    }

    body {
        padding-top: 0;
    }
}
