
:root {
    --primary: #8B4513;
    --secondary: #D4AF37;
    --accent: #5D4037;
    --light: #F5F5F5;
    --dark: #2C2C2C;
    --transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles - FIXED FOR MOBILE */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover:after {
    width: 100%;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.cta-button: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.7s;
}

.cta-button:hover:before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

/* Mobile Menu - FIXED FOR MOBILE */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 25px;
    justify-content: space-between;
    position: relative;
    z-index: 1002;
    flex-shrink: 0;
    margin-right: 25px;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section with Slider - UPDATED */
.hero {
    height: 80vh;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.slide-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: -1;
}

.hero-content {
    max-width: 1250px;
    padding: 0 20px;
    z-index: 2;
    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.hero-slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transition: opacity 1s ease 0.5s;
}

.hero-slide.active p {
    opacity: 1;
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 20px;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: white;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: white;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease, transform 1s ease;
    position: relative;
    overflow: hidden;
}

.about.visible {
    opacity: 1;
    transform: translateX(0);
}

.flame {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--secondary);
    border-radius: 50%;
    opacity: 0.7;
    filter: blur(5px);
    animation: floatFlame 15s infinite linear;
}

.flame:nth-child(odd) {
    animation-direction: reverse;
    animation-duration: 20s;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease, transform 1s ease;
}

.about.visible .about-text {
    opacity: 1;
    transform: translateX(0);
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.about.visible .about-image {
    opacity: 1;
    transform: translateX(0);
}

.round-image-container {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 0 10px rgba(212, 175, 55, 0.3);
}

.round-image-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
    animation: wipe 4s infinite linear;
    z-index: 2;
}

.round-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.round-image-container:hover .round-image {
    transform: scale(1.05);
}

/* Counters Section - FIXED HEIGHT */
.counters {
    padding: 60px 0; /* Reduced padding */
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px; /* Reduced gap */
}

.counter-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 15px; /* Reduced padding */
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
}

.counter-item:nth-child(1), .counter-item:nth-child(2) {
    transform: translateX(-100px);
}

.counter-item:nth-child(3), .counter-item:nth-child(4) {
    transform: translateX(100px);
}

.counter-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.counter-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.counter-icon {
    font-size: 2.5rem; /* Reduced size */
    margin-bottom: 15px; /* Reduced margin */
    color: var(--secondary);
    transition: var(--transition);
}

.counter-item:hover .counter-icon {
    transform: rotate(360deg);
}

.counter-number {
    font-size: 2.5rem; /* Reduced size */
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.counter-text {
    font-size: 1rem; /* Reduced size */
    opacity: 0.9;
}

/* Values Section - FIXED BACKGROUND */
.values {
    padding: 80px 0;
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.values-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1519677100203-a0e668c92439?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.values-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.values .container {
    position: relative;
    z-index: 2;
}

.values .section-title h2 {
    color: white;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(100px);
}

.value-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.value-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.value-card:hover:before {
    transform: scaleX(1);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 1.5rem;
    color: var(--primary);
}

/* Why Choose Us Section - FIXED TIMELINE ICONS */
.why-choose-us {
    padding: 100px 0;
    background-color: white;
    position: relative;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--secondary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 10px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(139, 69, 19, 0.1);
    text-align: center; /* Center content for mobile */
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.timeline-content:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    animation: wipe 5s infinite linear;
}

.timeline-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 0 5px rgba(139, 69, 19, 0.2);
    z-index: 1;
    animation: spin 8s infinite linear;
    top: 20px; /* Adjusted positioning */
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -30px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -30px;
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

/* Programs Section */
.programs {
    padding: 100px 0;
    background-color: var(--light);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.program-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.program-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.program-icon {
    font-size: 4rem;
    z-index: 2;
    position: relative;
}

.program-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: wipe 3s infinite linear;
}

.program-content {
    padding: 30px;
    text-align: center;
}

.program-content h3 {
    color: var(--primary);
    font-size: 1.5rem;
}

.program-button {
    display: inline-block;
    margin-top: 20px;
    background: var(--primary);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(139, 69, 19, 0.3);
    position: relative;
    overflow: hidden;
}

.program-button: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.7s;
}

.program-button:hover:before {
    left: 100%;
}

.program-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(139, 69, 19, 0.4);
}

/* Blog Section */
.blog {
    padding: 60px 0;
    background-color: white;
    opacity: 0;
    transition: opacity 1s ease;
}

.blog.visible {
    opacity: 1;
}

.blog-container {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 20px;
}

.blog-slider {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    width: 380px;
    flex-shrink: 0;
    opacity: 0;
}

.blog-card:nth-child(1) {
    transform: translateX(-100px);
}

.blog-card:nth-child(2) {
    transform: translateY(100px);
}

.blog-card:nth-child(3) {
    transform: translateX(100px);
}

.blog-card.visible {
    opacity: 1;
    transform: translate(0, 0);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.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;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.blog-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(139, 69, 19, 0.3);
}

.blog-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(139, 69, 19, 0.4);
}

.blog-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
    z-index: 10;
    left: 0;
}

.blog-btn {
    background: rgba(139, 69, 19, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.blog-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.blog-more {
    text-align: center;
    margin-top: 40px;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background-color: var(--light);
}

.faq-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.faq-info {
    flex: 1;
}

.faq-info h2 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.faq-info p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.faq-container {
    flex: 1;
    max-width: 600px;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(139, 69, 19, 0.05);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary);
}

.faq-icon {
    transition: var(--transition);
    font-size: 1.2rem;
    color: var(--primary);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    background: white;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-more {
    margin-top: 30px;
}

/* Modal Styles - FIXED HEADER SCROLLING */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 95%; /* Increased width */
    max-width: 1000px; /* Increased max-width */
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 25px 30px 0;
    /* Removed sticky positioning */
    background: white;
    z-index: 10;
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    color: var(--primary);
    margin: 0;
    font-size: 1.8rem; /* Reduced size */
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem; /* Increased size */
    cursor: pointer;
    color: var(--accent);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(139, 69, 19, 0.1); /* Added background */
}

.close-modal:hover {
    color: var(--primary);
    background: rgba(139, 69, 19, 0.2); /* Darker background on hover */
    transform: rotate(90deg);
}

/* Join Academy Modal Styles */
.join-academy-form {
    padding: 30px;
}

.join-academy-form h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

/* FIXED FORM STYLES */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    background: white;
    color: var(--dark);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    background: white;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.loading {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(139, 69, 19, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

/* Blog Modal Styles */
.blog-modal-image {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.blog-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-modal-image:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
}

.blog-modal-content {
    padding: 30px;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.blog-modal-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.blog-modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    color: var(--accent);
    font-size: 0.9rem;
}

.blog-modal-body {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.blog-modal-body p {
    margin-bottom: 20px;
}

.blog-modal-image-middle {
    width: 100%;
    height: 300px;
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
}

.blog-modal-image-middle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
}

.keyword {
    background: var(--light);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary);
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.blog-modal-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.review-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--secondary);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.review-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

/* FAQ Modal Styles */
.modal-faqs {
    padding: 0 30px 30px;
}

.modal-faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-faq-question {
    padding: 20px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.modal-faq-question:hover {
    background: rgba(139, 69, 19, 0.05);
}

.modal-faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary);
}

.modal-faq-icon {
    transition: var(--transition);
    font-size: 1.2rem;
    color: var(--primary);
}

.modal-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    background: white;
}

.modal-faq-item.active .modal-faq-answer {
    padding: 20px;
    max-height: 500px;
}

.modal-faq-item.active .modal-faq-icon {
    transform: rotate(45deg);
}

/* Program Modal Styles */
.program-modal-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.program-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-modal-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: wipe 4s infinite linear;
}

.program-modal-content {
    padding: 30px;
}

.program-modal-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.program-modal-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.program-features {
    margin: 30px 0;
}

.program-features h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.program-features ul {
    list-style-type: none;
    padding-left: 0;
}

.program-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.program-features li:before {
    content: '✓';
    color: var(--secondary);
    font-weight: bold;
    margin-right: 10px;
}

.program-registration {
    background: var(--light);
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
}

.program-registration h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Partners Section */
.partners {
    padding: 80px 0;
    background-color: var(--light);
    overflow: hidden;
    position: relative;
}

.partners-container {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    overflow: hidden;
}

.partners-slider {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
    padding: 0 20px;
}

.partner-card {
    background: white;
    border-radius: 50%;
    padding: 40px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.partner-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0.1;
}

.partner-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border: 2px solid var(--secondary);
}

.partner-logo i {
    font-size: 2rem;
    color: var(--primary);
}

.partner-card h3 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 10px;
}

.partners-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
    z-index: 10;
    left: 0;
}

.partners-btn {
    background: rgba(139, 69, 19, 0.8);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.partners-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: white;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial-slide {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    margin: 0 20px;
    opacity: 0;
    transform: translateX(100px);
    transition: var(--transition);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.testimonial-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
}

.testimonial-role {
    color: var(--accent);
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--primary);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.contact .container {
    position: relative;
    z-index: 2;
     max-width: 1300px;
}

.contact .section-title h2 {
    color: white;
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    color: var(--secondary);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.contact-detail {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.contact-detail i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
    display: block;
    animation: spin 8s infinite linear;
}

.contact-detail h4 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.contact-detail p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.contact-form {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: white;
}

/* FIXED CONTACT FORM STYLES */
.contact-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* WhatsApp Button - FIXED */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 100;
    animation: pulse-whatsapp 2s infinite;
    transition: var(--transition);
    cursor: pointer;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatFlame {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) translateX(20px);
        opacity: 0;
    }
}

@keyframes wipe {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .blog-card {
        width: 350px;
    }
}

@media (max-width: 992px) {
    .hero {
        height: 70vh;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 30px;
    }

    .about-text {
        padding: 0 20px;
    }

    .round-image-container {
        width: 300px;
        height: 300px;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        z-index: 999;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    /* FIXED TIMELINE ICONS FOR MOBILE */
    .timeline-item:nth-child(odd) .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: -50px;
        right: auto;
        transform: translateX(-50%);
        top: -30px;

    }

    .contact-content {
        flex-direction: column;
    }

    .blog-card {
        width: 300px;
    }

    .faq-content {
        flex-direction: column;
    }

    /* FIXED NAVBAR FOR MOBILE */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 30px;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        padding: 80px 30px 30px;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
        z-index: 1002;
        margin-left: 15px; /* Moved toggle to the left */
    }

    .nav-container {
        gap: 15px;
        width: auto;
        flex-shrink: 0;
    }

    /* FIXED NAVBAR BUTTON AND TOGGLE */
    .navbar {
        padding: 15px 0;
        position: relative;
    }
    
    .logo {
        flex-shrink: 0;
        min-width: auto;
    }
    
    .nav-container {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: auto;
        flex-shrink: 0;
    }
    
    .desktop-join-btn {
        display: none; /* Hide desktop join button on mobile */
    }
    
    .menu-toggle {
        display: flex;
        flex-shrink: 0;
        width: 30px;
        height: 25px;
    }

    .contact-details {
        grid-template-columns: 1fr;
    }

    .blog-container {
        padding: 0 50px;
    }

    .counters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .counter-item {
        padding: 30px 15px;
    }

    .counter-number {
        font-size: 2.5rem;
    }

    .testimonials-slider {
        max-width: 90%;
    }

    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partner-card {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
    }
    
    .nav-container {
        margin-top: 0;
        justify-content: flex-end;
        width: 100%;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }

    .counter-number {
        font-size: 2.5rem;
    }

    .hero {
        height: 60vh;
    }

    .blog-card {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-details {
        grid-template-columns: 1fr;
    }

    .blog-container {
        padding: 0 40px;
    }

    .counters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .timeline-content {
        padding: 15px 20px;
    }

    .faq-info, .faq-container {
        padding: 0 15px;
    }

    .testimonial-slide {
        padding: 30px 20px;
    }

    .partner-card {
        width: 140px;
        height: 140px;
        padding: 30px;
    }

    .partner-logo {
        width: 60px;
        height: 60px;
    }

    .partner-logo i {
        font-size: 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.8rem;
    }

    .join-academy-form h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 50vh;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .programs-grid, .values-grid {
        grid-template-columns: 1fr;
    }

    .counters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .round-image-container {
        width: 250px;
        height: 250px;
    }

    .modal-content {
        width: 95%;
        padding: 15px;
    }

    .blog-modal-title {
        font-size: 1.8rem;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }

    .blog-container {
        padding: 0 20px;
    }

    .contact-details {
        grid-template-columns: 1fr;
    }

    .about-text {
        padding: 0 15px;
    }

    .timeline-content {
        padding: 15px;
    }

    .faq-info, .faq-container {
        padding: 0 10px;
    }

    .testimonial-slide {
        padding: 20px 15px;
    }

    .partner-card {
        width: 120px;
        height: 120px;
        padding: 20px;
    }

    .partner-logo {
        width: 50px;
        height: 50px;
    }

    .partner-logo i {
        font-size: 1.2rem;
    }

    .partner-card h3 {
        font-size: 0.9rem;
    }

    .modal-header h2 {
        font-size: 1.6rem;
    }

    .join-academy-form h3 {
        font-size: 1.4rem;
    }

    .program-modal-title {
        font-size: 1.6rem;
    }

    .blog-modal-title {
        font-size: 1.5rem;
    }

    .navbar {
        padding: 10px 0;
    }
    
    .nav-container {
        gap: 10px;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
