/* =====================================================
   BOB BANDA - Personal Brand Platform
   Main Stylesheet
   ===================================================== */

/* =====================================================
   CSS Variables & Root Styles
   ===================================================== */
:root {
    /* Primary Colors - Yellow & Blue Theme */
    --primary: #1e3a5f;
    --primary-light: #2c5282;
    --accent: #f6c915;
    --accent-hover: #d4a90a;
    --gold: #f6c915;
    --gold-light: #fad02c;
    
    /* Neutral Colors */
    --white: #ffffff;
    --light: #f8f9fa;
    --light-gray: #e9ecef;
    --gray: #6c757d;
    --dark-gray: #495057;
    --dark: #212529;
    --black: #000000;
    
    /* Functional Colors */
    --success: #28a745;
    --warning: #ffc107;
    --danger: #ffc107;
    --info: #17a2b8;
    
    /* Typography */
    --font-heading: 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-padding: 100px;
    --container-padding: 20px;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;
}

/* =====================================================
   Reset & Base Styles
   ===================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* =====================================================
   Preloader
   ===================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary-light);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =====================================================
   Typography
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }
.text-primary { color: var(--primary); }
.text-center { text-align: center; }

/* =====================================================
   Layout & Container
   ===================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-sm { max-width: 800px; }
.container-lg { max-width: 1400px; }

section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header .subtitle {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}

.btn-whatsapp {
    background: #25d366;
    color: var(--white);
    border-color: #25d366;
}

.btn-whatsapp:hover {
    background: #20bd5a;
    border-color: #20bd5a;
}

/* =====================================================
   Navigation
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

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

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    height: 30px;
}

.logo-img {
    height: 30px;
    width: auto;
    transition: var(--transition);
    position: absolute;
    top: 0;
    left: 0;
}

@media (max-width: 576px) {
    .logo {
        height: 25px;
    }
    
    .logo-img {
        height: 25px;
    }
}

.logo-default {
    display: block;
}

.logo-scrolled {
    display: none;
}

.navbar.scrolled .logo-default {
    display: none;
}

.navbar.scrolled .logo-scrolled {
    display: block;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
    display: none; /* Hide text logo when using images */
}

.navbar.scrolled .logo-text {
    color: var(--primary);
}

.logo-text .accent {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    position: relative;
    padding: 5px 0;
}

.navbar.scrolled .nav-link {
    color: var(--dark);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--primary);
}

.nav-cta {
    display: flex;
    align-items: center;
}

/* Mobile Navigation */
@media (max-width: 991px) {
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: var(--transition-slow);
        box-shadow: var(--shadow-xl);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu .nav-link {
        color: var(--white);
        font-size: 1.25rem;
    }
    
    .nav-cta {
        display: none;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--primary);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-pattern.png') repeat;
    opacity: 0.05;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-subtitle {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero h1 .accent {
    color: var(--accent);
}

.hero-text {
    color: rgba(255,255,255,0.8);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.hero-stat-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    margin-top: 5px;
}

.hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 45%;
    height: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 50%);
    z-index: 1;
}

@media (max-width: 991px) {
    .hero {
        text-align: center;
        padding: 150px 0 100px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        display: none;
    }
}

/* =====================================================
   Banner Slider
   ===================================================== */
.banner-slider {
    padding: 0;
}

.banner-slide {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(26,26,46,0.9) 0%, rgba(26,26,46,0.5) 100%);
}

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

.banner-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.banner-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--accent);
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--white);
}

/* =====================================================
   Services Section
   ===================================================== */
.services {
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border-radius: var(--radius-full);
    font-size: 2rem;
    color: var(--primary);
}

.service-card h4 {
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.9375rem;
    margin-bottom: 20px;
}

.service-card .btn {
    padding: 10px 25px;
}

/* Services Page Grid */
.services-page .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.services-page .service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.services-page .service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border-radius: var(--radius-full);
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.services-page .service-image {
    margin: -30px -30px 20px -30px;
    height: 200px;
    overflow: hidden;
}

.services-page .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-page .service-content h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.services-page .service-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.services-page .service-details {
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.services-page .service-cta {
    margin-top: 20px;
}

@media (max-width: 576px) {
    .services-page .services-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   Books Section
   ===================================================== */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.book-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.book-cover {
    position: relative;
    height: 350px;
    overflow: hidden;
}

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

.book-card:hover .book-cover img {
    transform: scale(1.05);
}

.book-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: var(--white);
    padding: 5px 15px;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.book-info {
    padding: 25px;
}

.book-category {
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.book-info h4 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.book-info p {
    font-size: 0.9375rem;
    margin-bottom: 15px;
    color: var(--gray);
}

.book-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.book-price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.book-price.free {
    color: var(--success);
}

/* =====================================================
   Courses Section
   ===================================================== */
.courses {
    background: var(--light);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.course-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.course-level {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 5px 12px;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.course-info {
    padding: 25px;
}

.course-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.875rem;
    color: var(--gray);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-info h4 {
    margin-bottom: 10px;
}

.course-info p {
    font-size: 0.9375rem;
    margin-bottom: 20px;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.course-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

/* =====================================================
   Portfolio Section
   ===================================================== */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--dark);
    background: var(--light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 95, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: var(--transition);
}

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

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h4 {
    color: var(--white);
    margin-bottom: 5px;
}

.portfolio-overlay span {
    color: var(--accent);
    font-size: 0.875rem;
}

.portfolio-overlay .view-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* =====================================================
   Testimonials Section
   ===================================================== */
.testimonials {
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '"';
    position: absolute;
    top: 50px;
    left: 50px;
    font-size: 20rem;
    font-family: var(--font-heading);
    color: rgba(255,255,255,0.03);
    line-height: 1;
}

.testimonials .section-header .subtitle,
.testimonials .section-header h2 {
    color: var(--white);
}

.testimonials .section-header p {
    color: rgba(255,255,255,0.7);
}

.testimonial-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
}

.testimonial-rating {
    color: var(--gold);
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.testimonial-text {
    color: rgba(255,255,255,0.9);
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 3px solid var(--accent);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info h5 {
    color: var(--white);
    margin-bottom: 3px;
    font-size: 1rem;
}

.testimonial-info span {
    color: var(--accent);
    font-size: 0.875rem;
}

/* =====================================================
   Stats Section
   ===================================================== */
.stats {
    background: var(--primary);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================================================
   Blog Section
   ===================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--accent);
    color: var(--white);
    padding: 5px 15px;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.8125rem;
    color: var(--gray);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-content h4 {
    margin-bottom: 10px;
    transition: var(--transition);
}

.blog-card:hover .blog-content h4 {
    color: var(--accent);
}

.blog-content p {
    font-size: 0.9375rem;
    margin-bottom: 15px;
}

.read-more {
    color: var(--accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more i {
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* =====================================================
   About Section
   ===================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-content .subtitle {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-feature i {
    color: var(--accent);
    font-size: 1.25rem;
}

@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* =====================================================
   Contact Section
   ===================================================== */
.contact {
    background: var(--light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item-content h5 {
    margin-bottom: 3px;
    font-size: 1rem;
}

.contact-item-content p {
    margin: 0;
    font-size: 0.9375rem;
}

.contact-social {
    display: flex;
    gap: 10px;
}

.contact-social a {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.contact-social a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   Page Header
   ===================================================== */
.page-header {
    background: var(--primary);
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-pattern.png') repeat;
    opacity: 0.05;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 1rem;
    position: relative;
}

.page-header p {
    color: rgba(255,255,255,0.8);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    position: relative;
}

.breadcrumb a {
    color: rgba(255,255,255,0.7);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb span {
    color: var(--accent);
}

/* =====================================================
   Search & Filters
   ===================================================== */
.search-filter-bar {
    background: var(--white);
    padding: 20px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 18px 12px 45px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    font-size: 1rem;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.filter-select {
    min-width: 180px;
}

.filter-select select {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--white);
    cursor: pointer;
}

/* =====================================================
   Pagination
   ===================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
}

.pagination a {
    background: var(--light);
    color: var(--dark);
}

.pagination a:hover,
.pagination span.current {
    background: var(--accent);
    color: var(--white);
}

/* =====================================================
   Blog Single
   ===================================================== */
.blog-single {
    padding: 80px 0;
}

.blog-single-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-single-header .blog-category {
    position: static;
    display: inline-block;
    margin-bottom: 15px;
}

.blog-single-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.blog-single-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--gray);
}

.blog-featured-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
}

.blog-single-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-single-content p {
    font-size: 1.125rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.blog-single-content h2,
.blog-single-content h3 {
    margin-top: 2rem;
}

.blog-single-content img {
    border-radius: var(--radius);
    margin: 2rem 0;
}

.blog-single-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 25px;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--primary);
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
    background: var(--primary);
    color: var(--white);
}

.footer-top {
    padding: 80px 0 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-logo .logo-text {
    color: var(--white);
    font-size: 1.5rem;
}

.footer-about {
    color: rgba(255,255,255,0.7);
    margin: 20px 0;
    font-size: 0.9375rem;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9375rem;
    transition: var(--transition);
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9375rem;
}

.footer-contact i {
    color: var(--accent);
    margin-top: 3px;
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-col .btn-whatsapp {
    margin-top: 15px;
}

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

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    margin: 0;
    font-size: 0.875rem;
}

.footer-credit a {
    color: var(--accent);
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* =====================================================
   Back to Top & WhatsApp Float
   ===================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

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

/* =====================================================
   Mobile Bottom Navigation (App Style)
   ===================================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
    margin-bottom: 0;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.7rem;
    transition: var(--transition);
    min-width: 60px;
}

.bottom-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.bottom-nav-item span {
    font-weight: 500;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--primary);
}

.bottom-nav-item.active i {
    color: var(--accent);
}

/* Show bottom nav on mobile and tablet */
@media (max-width: 991px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* Hide hamburger menu items on mobile - use bottom nav instead */
    .nav-toggle {
        display: none !important;
    }
    
    .nav-menu {
        display: none !important;
    }
    
    /* Adjust footer padding for bottom nav */
    .footer {
        padding-bottom: 80px;
    }
    
    /* Hide WhatsApp float on mobile - contact is in bottom nav */
    .whatsapp-float {
        display: none;
    }
    
    /* Adjust back to top button position */
    .back-to-top {
        bottom: 90px;
    }
}

/* Desktop - hide bottom nav, show regular nav */
@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* =====================================================
   Utility Classes
   ===================================================== */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }
.d-block { display: block; }

.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* =====================================================
   Animations
   ===================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-fadeIn { animation: fadeIn 0.6s ease forwards; }
.animate-slideUp { animation: slideUp 0.6s ease forwards; }
.animate-slideDown { animation: slideDown 0.6s ease forwards; }

/* =====================================================
   Responsive Adjustments
   ===================================================== */
@media (max-width: 1200px) {
    :root {
        --section-padding: 80px;
    }
}

@media (max-width: 991px) {
    :root {
        --section-padding: 60px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 50px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Tablet overflow fixes */
    body {
        overflow-x: hidden;
    }
    
    .container {
        max-width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }
    
    /* Fix text overflow on tablets */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        hyphens: auto;
    }
    
    /* Fix grid layouts */
    .services-grid, .books-grid, .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    /* Fix cards */
    .card, .service-card, .book-card {
        max-width: 100%;
        word-wrap: break-word;
    }
    
    /* Fix navigation menu */
    .nav-menu {
        max-width: 100%;
        overflow-x: hidden;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    /* Fix forms */
    input, textarea, select {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Fix tables */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* =====================================================
   Mobile Responsive Styles (576px and below)
   ===================================================== */
@media (max-width: 576px) {
    :root {
        --section-padding: 40px;
        --container-padding: 15px;
    }
    
    /* Base fixes */
    html, body {
        overflow-x: hidden;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        hyphens: auto;
    }
    
    p {
        font-size: 0.9rem;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    .btn-lg {
        padding: 14px 24px;
    }
    
    .btn-sm {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .hero-stat {
        flex: 1 1 40%;
    }
    
    .hero-stat-number {
        font-size: 1.75rem;
    }
    
    .hero-stat-label {
        font-size: 0.75rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 120px 0 60px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-header p {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    /* Section Headers */
    .section-header {
        margin-bottom: 40px;
        padding: 0 10px;
    }
    
    .section-header .subtitle {
        font-size: 0.75rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .services-page .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Books Grid */
    .books-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .book-cover {
        height: 280px;
    }
    
    .book-info {
        padding: 20px;
    }
    
    .book-info h4 {
        font-size: 1.1rem;
    }
    
    .book-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .book-footer .btn {
        width: 100%;
    }
    
    /* Courses Grid */
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .course-thumbnail {
        height: 180px;
    }
    
    .course-info {
        padding: 20px;
    }
    
    .course-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .course-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .course-footer .btn {
        width: 100%;
    }
    
    /* Portfolio Grid */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .portfolio-filters {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    /* Blog Grid */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    /* Blog Single */
    .blog-single {
        padding: 60px 0;
    }
    
    .blog-single-header h1 {
        font-size: 1.5rem;
    }
    
    .blog-single-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .blog-single-content p {
        font-size: 1rem;
    }
    
    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image::before {
        display: none;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Contact Section */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-social {
        justify-content: center;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 25px 20px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Banner Slider */
    .banner-slide {
        height: 350px;
    }
    
    .banner-content {
        padding: 0 15px;
    }
    
    .banner-content h2 {
        font-size: 1.5rem;
    }
    
    .banner-content p {
        font-size: 0.9rem;
    }
    
    /* Search & Filter */
    .search-filter-bar {
        flex-direction: column;
        padding: 15px;
    }
    
    .search-box {
        width: 100%;
        min-width: auto;
    }
    
    .filter-select {
        width: 100%;
        min-width: auto;
    }
    
    /* Pagination */
    .pagination {
        flex-wrap: wrap;
    }
    
    .pagination a,
    .pagination span {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-top {
        padding: 50px 0 40px;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer {
        padding-bottom: 80px;
        margin-bottom: 0;
    }
    
    /* Back to top & WhatsApp */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 90px;
        right: 15px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 90px;
        right: 15px;
        font-size: 1.5rem;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 60px 0 !important;
    }
    
    .cta-section h2 {
        font-size: 1.5rem !important;
    }
    
    .cta-section p {
        font-size: 1rem !important;
    }
    
    .cta-section .d-flex {
        flex-direction: column;
        gap: 15px !important;
    }
    
    .cta-section .btn {
        width: 100%;
    }
    
    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Tables */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Forms */
    input, textarea, select {
        max-width: 100%;
        box-sizing: border-box;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Cards */
    .card, .service-card, .book-card, .course-card, .blog-card {
        max-width: 100%;
        word-wrap: break-word;
    }
}

/* =====================================================
   Tablet Responsive Styles (768px and below)
   ===================================================== */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    /* Hero adjustments */
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    /* Grids - 2 columns on tablet */
    .services-grid,
    .books-grid,
    .courses-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
