/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6f61;
    --secondary-color: #ff9a8c;
    --accent-color: #4a90e2;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --text-color: #333;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --gradient: linear-gradient(135deg, #ff6f61 0%, #ff9a8c 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

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

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-label {
    display: inline-block;
    background: rgba(255, 111, 97, 0.1);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header Styles */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-wrapper {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.logo-icon {
    font-size: 1.5rem;
    color: white;
}

.brand-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.tagline {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin: 0;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: var(--dark-color);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
}

.nav-links li a:hover::after {
    width: 100%;
}

.donate-btn {
    background: var(--gradient);
    color: white !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(255, 111, 97, 0.3);
    transition: var(--transition);
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 111, 97, 0.4);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
    border: none;
    background: none;
    padding: 5px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 3px;
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #fff5f3 0%, #ffe8e3 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image:
        radial-gradient(circle at 1px 1px, var(--primary-color) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 5px 20px rgba(255, 111, 97, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 111, 97, 0.4);
}

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

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

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin: 0;
}

.hero-image {
    flex: 1;
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.floating-badge {
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.badge-1 {
    top: -20px;
    right: 20px;
    animation: float 3s ease-in-out infinite;
}

.badge-2 {
    bottom: 50px;
    left: -20px;
    animation: float 3s ease-in-out infinite 0.5s;
}

.badge-3 {
    top: 50%;
    right: -20px;
    animation: float 3s ease-in-out infinite 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: white;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: 30px;
    background: var(--gradient);
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 111, 97, 0.3);
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.experience-badge .text {
    font-size: 0.9rem;
}

.about-content {
    flex: 1;
}

.about-text p.highlight {
    font-size: 1.2rem;
    color: var(--dark-color);
    font-weight: 500;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--gray-color);
    margin-bottom: 30px;
    line-height: 1.8;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.mission,
.vision {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    text-align: center;
}

.mission i,
.vision i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.mission h4,
.vision h4 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.mission p,
.vision p {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin: 0;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 111, 97, 0.05);
    border-radius: 10px;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.feature-item span {
    font-weight: 500;
    color: var(--dark-color);
}

/* Courses Section */
.courses-section {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.course-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.course-card.featured {
    border: 2px solid var(--primary-color);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.course-icon {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: rgba(255, 111, 97, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.course-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

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

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-duration {
    position: absolute;
    bottom: 15px;
    left: 20px;
    background: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.course-content {
    padding: 30px;
}

.course-content h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.course-content p {
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.course-features {
    list-style: none;
    margin-bottom: 25px;
}

.course-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--gray-color);
    font-size: 0.95rem;
}

.course-features li i {
    color: var(--success-color);
    font-size: 0.9rem;
}

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

.course-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.course-rating i {
    color: #ffc107;
}

.btn-enroll {
    background: var(--gradient);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-enroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 111, 97, 0.3);
}

/* Impact Section */
.impact-section {
    padding: 80px 0;
    background: var(--gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.impact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    opacity: 0.3;
}

.impact-section .section-title {
    color: white;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.impact-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.impact-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.impact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.impact-icon i {
    font-size: 2rem;
    color: white;
}

.impact-card h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.impact-card p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: white;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8));
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    transition: var(--transition);
}

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

.overlay-content h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.overlay-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.gallery-link {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.gallery-link:hover {
    background: var(--primary-color);
}

.gallery-cta {
    text-align: center;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: #f8f9fa;
    position: relative;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: none;
}

.testimonial-card.active {
    display: block;
    animation: fadeInUp 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-avatar i {
    font-size: 2.5rem;
    color: white;
}

.testimonial-info h4 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.testimonial-info p {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.rating {
    display: flex;
    gap: 3px;
}

.rating i {
    color: #ffc107;
    font-size: 0.9rem;
}

.testimonial-content {
    position: relative;
    margin-bottom: 20px;
}

.quote-icon {
    font-size: 3rem;
    color: rgba(255, 111, 97, 0.1);
    position: absolute;
    top: -20px;
    left: -10px;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-color);
    font-style: italic;
    padding-left: 30px;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 111, 97, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(255, 111, 97, 0.95), rgba(255, 154, 140, 0.95)), url('pattern.png');
    background-size: cover;
    background-attachment: fixed;
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 20px;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon i {
    font-size: 1.5rem;
    color: white;
}

.info-card h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.info-card p {
    color: var(--gray-color);
    line-height: 1.6;
}

.social-connect {
    text-align: center;
}

.social-connect h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

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

.social-links a:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-5px);
}

/* Contact Form */
.contact-form-wrapper {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    padding-right: 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition);
    background: white;
    padding: 0 5px;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -10px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.form-group i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
}

.form-group textarea~i {
    top: 20px;
    transform: none;
}

.btn-submit {
    background: var(--gradient);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 111, 97, 0.3);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

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

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

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.btn-donate {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 20px;
}

.btn-donate:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 111, 97, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom i {
    color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    display: flex;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .about-container {
        flex-direction: column-reverse;
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Navigation */
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        padding: 30px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .donate-btn {
        width: 100%;
        text-align: center;
    }

    /* Hero Section */
    .hero-section {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
    }

    .stat-item {
        flex: 1 1 100px;
    }

    .hero-image {
        margin-top: 40px;
    }

    .floating-badge {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    /* Sections */
    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
    }

    /* About Section */
    .about-features {
        grid-template-columns: 1fr;
    }

    .mission-vision {
        grid-template-columns: 1fr;
    }

    /* Courses */
    .courses-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Impact */
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Form */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .impact-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    .cta-content h2 {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {

    header,
    footer,
    .back-to-top,
    .hero-buttons,
    .btn-primary,
    .btn-secondary,
    .donate-btn,
    .social-links {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
    }

    .hero-section,
    .about-section,
    .courses-section {
        page-break-after: always;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}
/* ===========================
   RESPONSIVE DESIGN CSS ONLY
   =========================== */

/* Large Desktop (1200px and above) - Base styles already defined */

/* Medium Desktop/Laptop (1024px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 30px;
    }
}

/* Tablet Landscape (769px - 1024px) */
@media (max-width: 1024px) {

    /* Hero Section */
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image {
        margin-top: 40px;
        max-width: 600px;
    }

    /* About Section */
    .about-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .about-image {
        margin-bottom: 40px;
    }

    .mission-vision {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px;
        margin: 40px auto;
    }

    /* Courses */
    .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .social-connect {
        grid-column: 1 / -1;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Impact Section */
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait & Large Mobile (481px - 768px) */
@media (max-width: 768px) {

    /* Container */
    .container {
        width: 95%;
        padding: 0 15px;
    }

    /* Header & Navigation */
    header {
        padding: 15px 0;
    }

    .header-container {
        padding: 0.5rem 0;
    }

    .brand-text h1 {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 0.75rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
        gap: 20px;
    }

    .nav-links.active {
        right: 0;
    }

    .donate-btn {
        width: 100%;
        text-align: center;
    }

    /* Hero Section */
    .hero-section {
        padding: 90px 0 50px;
    }

    .hero-badge {
        font-size: 0.85rem;
        padding: 6px 16px;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .hero-stats {
        gap: 30px;
        margin-bottom: 30px;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .stat-item p {
        font-size: 0.85rem;
    }

    .floating-badge {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 40px;
    }

    .section-label {
        font-size: 0.85rem;
        padding: 6px 16px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .section-description {
        font-size: 0.95rem;
    }

    /* About Section */
    .about-section {
        padding: 60px 0;
    }

    .about-text p.highlight {
        font-size: 1.1rem;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .experience-badge {
        bottom: -20px;
        right: 20px;
        padding: 15px 20px;
    }

    .experience-badge .years {
        font-size: 2rem;
    }

    /* Courses Section */
    .courses-section {
        padding: 60px 0;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .course-card {
        max-width: 400px;
        margin: 0 auto;
    }

    /* Gallery Section */
    .gallery-section {
        padding: 60px 0;
    }

    .gallery-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-item {
        height: 250px;
    }

    /* Impact Section */
    .impact-section {
        padding: 60px 0;
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .impact-card {
        padding: 30px 15px;
    }

    .impact-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .impact-icon i {
        font-size: 1.5rem;
    }

    .impact-card h3 {
        font-size: 2.5rem;
    }

    .impact-card p {
        font-size: 0.95rem;
    }

    /* Testimonials */
    .testimonials-section {
        padding: 60px 0;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    .testimonial-header {
        flex-direction: column;
        text-align: center;
    }

    .testimonial-content p {
        font-size: 1rem;
        padding-left: 0;
        text-align: center;
    }

    .quote-icon {
        display: none;
    }

    /* CTA Section */
    .cta-section {
        padding: 60px 0;
    }

    .cta-content h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .cta-content p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    /* Contact Section */
    .contact-section {
        padding: 60px 0;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .info-card {
        padding: 25px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

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

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-social {
        justify-content: center;
        margin-top: 20px;
    }

    .footer-section ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .footer-section ul li {
        margin-bottom: 5px;
    }

    /* Back to Top Button */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* Mobile Landscape & Small Tablet (481px - 600px) */
@media (max-width: 600px) and (orientation: landscape) {
    .hero-section {
        padding: 70px 0 40px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-stats {
        margin-bottom: 20px;
    }

    .hero-image {
        max-width: 400px;
    }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {

    /* Container */
    .container {
        width: 100%;
        padding: 0 10px;
    }

    /* Header */
    .logo-wrapper {
        width: 40px;
        height: 40px;
    }

    .logo-icon {
        font-size: 1.2rem;
    }

    .brand-text h1 {
        font-size: 1.3rem;
    }

    .tagline {
        display: none;
    }

    /* Hero Section */
    .hero-section {
        padding: 80px 0 40px;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .hero-buttons {
        margin-bottom: 40px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-item h3 {
        font-size: 1.8rem;
    }

    .stat-item p {
        font-size: 0.8rem;
    }

    /* Sections */
    .section-title {
        font-size: 1.5rem;
    }

    .section-description {
        font-size: 0.9rem;
    }

    /* About */
    .about-text p {
        font-size: 0.95rem;
    }

    .mission,
    .vision {
        padding: 20px;
    }

    .mission h4,
    .vision h4 {
        font-size: 1.1rem;
    }

    .experience-badge {
        position: static;
        margin: 20px auto 0;
        max-width: 200px;
    }

    /* Courses */
    .course-content {
        padding: 25px 20px;
    }

    .course-content h3 {
        font-size: 1.3rem;
    }

    .course-content p {
        font-size: 0.9rem;
    }

    /* Gallery */
    .gallery-item {
        height: 200px;
    }

    /* Impact */
    .impact-grid {
        grid-template-columns: 1fr;
    }

    .impact-card h3 {
        font-size: 2rem;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 25px 15px;
    }

    .testimonial-avatar {
        width: 60px;
        height: 60px;
    }

    .testimonial-content p {
        font-size: 0.95rem;
    }

    /* CTA */
    .cta-content h2 {
        font-size: 1.6rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    /* Contact */
    .info-card {
        padding: 20px;
    }

    .info-icon {
        width: 50px;
        height: 50px;
    }

    .info-card h3 {
        font-size: 1.2rem;
    }

    .info-card p {
        font-size: 0.9rem;
    }

    .contact-form-wrapper {
        padding: 25px 15px;
    }

    /* Footer */
    .footer {
        padding: 30px 0 15px;
    }
}