/* --- Global Variables & Reset --- */
:root {
    --primary-color: #086485; /* Teal Blue */
    --secondary-color: #FF7043; /* Bright Orange */
    --accent-color: #6A1B9A; /* Purple for achievements */
    --text-color: #333;
    --bg-light: #f4f4f9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 50px;
    font-size: 2.2em;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* --- Ticker Section (Dynamic Scrolling Ticker) --- */
.top-ticker-wrapper {
    background-color: var(--primary-color);
    color: white;
    overflow: hidden;
    height: 40px;
    line-height: 40px;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-move 30s linear infinite; 
}

.ticker-content p {
    display: inline;
    margin-right: 60px; 
    font-size: 0.9em;
    font-weight: 500;
}

@keyframes ticker-move {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* --- Navbar (Responsive) --- */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 15px;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-links a:hover {
    color: white;
    background-color: var(--secondary-color);
}

.join-us-link { background-color: var(--secondary-color); color: white; }
.join-us-link:hover { background-color: var(--primary-color); }
.login-btn { background-color: var(--primary-color); color: white; }
.login-btn:hover { background-color: var(--secondary-color); }

.menu-toggle {
    font-size: 1.8em;
    cursor: pointer;
    color: var(--primary-color);
    display: none; /* Hide on desktop */
}

/* --- Hero Section (Swiper Customization) --- */
.hero-section.swiper-container {
    width: 100%;
    height: 550px; 
    background: var(--bg-light);
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Overlay for text visibility */
}

.hero-content {
    z-index: 10;
    color: white;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.4em;
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-button {
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #e65c2b;
    transform: translateY(-2px);
}

/* --- Achievements/Stats Section --- */
.achievements-section {
    background-color: var(--bg-light);
    padding: 50px 0;
}
.achievement-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.achievement-circle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: white;
    min-height: 180px;
    transition: transform 0.3s;
}

.achievement-circle:hover {
    transform: translateY(-5px);
}

.purple { background: linear-gradient(45deg, #6a1b9a, #9c27b0); }
.teal { background: linear-gradient(45deg, #00796b, #00bcd4); }
.pink { background: linear-gradient(45deg, #d81b60, #f48fb1); }
.orange { background: linear-gradient(45deg, #f57f17, #ff9800); }

.icon-large { font-size: 2.5em; margin-bottom: 10px; }
.count {
    font-size: 3em;
    font-weight: 700;
    line-height: 1;
}

.achievement-circle p {
    font-size: 1em;
    font-weight: 600;
    margin-top: 5px;
}

/* --- Courses Section --- */
.course-section {
    padding-top: 50px;
}

.course-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.course-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3em;
}

.description {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9em;
    font-weight: 600;
}

.fee { color: #28a745; }
.duration { color: #6c757d; }
.details i { margin-right: 5px; }

.enroll-button {
    text-align: center;
    padding: 10px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 5px;
    font-weight: 600;
    margin-top: auto;
}

.enroll-button:hover {
    background-color: #e65c2b;
}

/* --- Events Section --- */
.events-section {
    background-color: var(--bg-light);
}

.events-section .cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.event-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.event-card .card-content {
    padding: 20px;
}

.event-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.date-time {
    color: var(--secondary-color);
    font-size: 0.9em;
    margin-bottom: 10px;
}

.event-booking-btn {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.event-booking-btn:hover {
    background-color: #054c64;
}

/* --- Gallery Section --- */
.gallery-section {
    padding-top: 50px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.gallery-item {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: scale(1.03);
}

/* --- Donate Section --- */
.donate-section {
    background-color: var(--bg-light);
}

.donate-card-container {
    display: flex;
    justify-content: center;
}

.donation-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    text-align: center;
}

.qr-image {
    width: 100%;
    max-width: 250px;
    margin: 20px auto;
    display: block;
    border: 5px solid var(--primary-color);
    border-radius: 5px;
}

.sadasyata-shulk {
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.donate-whatsapp-btn {
    background-color: #25D366; /* WhatsApp Green */
}
.donate-whatsapp-btn:hover {
    background-color: #128C7E;
}

/* --- Contact Section --- */
.contact-section {
    padding-bottom: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.contact-info-block {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
}

.contact-info-block h3 {
    color: var(--primary-color);
    font-size: 1.3em;
    margin-bottom: 10px;
}

.contact-info-block i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.whatsapp-btn {
    display: block;
    max-width: 400px;
    margin: 20px auto;
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: white;
    transition: background-color 0.3s;
}

.primary-contact-btn {
    background-color: #25D366; 
}
.primary-contact-btn:hover {
    background-color: #128C7E;
}


/* Social Icons */
.social-icons-section {
    margin-top: 50px;
    text-align: center;
}

.social-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.social-container {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-tile {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.5em;
    transition: transform 0.3s;
}

.social-tile:hover {
    transform: translateY(-3px);
}

.facebook { background-color: #3b5998; }
.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.youtube { background-color: #ff0000; }
.telegram { background-color: #0088cc; }
.whatsapp-channel { background-color: #25D366; }

/* --- Modals (Common Style) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: slide-down 0.3s ease-out;
}

@keyframes slide-down {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5em;
    text-align: center;
}

.modal-content p {
    text-align: center;
    margin-bottom: 15px;
}

/* Modal Form Styling (Used for Event Booking and Donation) */
#eventBookingForm, #donationForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.modal-content .cta-button {
    width: 100%;
    margin-top: 10px;
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover, .close-btn:focus {
    color: #333;
}


/* --- Footer --- */
.main-footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
}

/* ----------------------------------- */
/* --- MEDIA QUERIES (RESPONSIVE) --- */
/* ----------------------------------- */

@media (max-width: 1024px) {
    .nav-links a {
        margin-left: 10px;
        font-size: 0.9em;
    }
}

/* Mobile view (max 768px) */
@media (max-width: 768px) {
    
    section { padding: 40px 0; }
    .section-title { font-size: 1.8em; margin-bottom: 30px; }
    
    /* Navbar */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; 
        left: 0;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        margin: 0;
        padding: 12px 20px;
        border-bottom: 1px solid #eee;
        width: 100%;
        text-align: left;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* Hero Slider */
    .hero-section.swiper-container {
        height: 350px;
    }
    .hero-content h1 { font-size: 2em; }
    .hero-content p { font-size: 1.1em; }
    .cta-button { padding: 10px 20px; font-size: 1em; }

    /* Achievements */
    .achievement-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .count { font-size: 2.2em; }
    .icon-large { font-size: 2em; }
    
    /* Courses & Events */
    .course-cards-container, .events-section .cards-container, .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    .gallery-item { height: 150px; }
    
    /* Modals */
    .modal-content {
        margin: 20% auto;
    }
}