* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* ========== NAVIGATION ========== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 80px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: bold;
    white-space: nowrap;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
}

nav a:hover {
    color: #ff9a56;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ========== HERO ========== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 8%;
    background: linear-gradient(135deg, #fff5e6, #ffe6f0);
    gap: 2rem;
}

.hero-content {
    flex: 1 1 360px;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.2;
}

.hero h1 span {
    color: #ff9a56;
}

.hero p {
    max-width: 650px;
    line-height: 1.8;
    margin: 1.5rem 0;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.cta-button {
    display: inline-block;
    text-decoration: none;
    color: #333;
    padding: 0.85rem 2rem;
    border: 3px solid #333;
    background: #ffd700;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #ffc800;
}

.hero-image {
    flex: 0 0 auto;
    width: clamp(220px, 35vw, 420px);
    height: clamp(220px, 35vw, 420px);
    padding: 12px;
}

.hero-image img {
        width: 100%;
        max-width: 520px;
        height: auto;
        object-fit: cover;
        border-radius: 50px;
        margin-left: 0;
        box-shadow: 0 4px 24px rgba(0,0,0,0.08);
        transition: width 0.3s, max-width 0.3s, margin 0.3s;
}

@media (min-width: 900px) {
    .hero-image img {
        width: 150%;
        max-width: none;
        height: 100%;
        margin-left: -120px;
    }
}

@media (max-width: 768px) {
    .hero-image img {
        width: 100%;
        max-width: 320px;
        margin-left: 0;
        height: auto;
    }
}

@media (max-width: 420px) {
    .hero-image img {
        width: 180%;
        max-width: 250px;
        margin-left: -40px;
        height: 150px;
        border-radius: 18px;
    }
}
wh

/* ========== ABOUT ========== */
.about {
    padding: 5rem 8%;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
}

.section-title span {
    color: #ff9a56;
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.about-illustration {
    flex: 1 1 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.about-illustration img {
    width: 100%;
    max-width: 480px;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1 1 280px;
}

.about-text h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.about-text p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    margin-top: 20px;
    color: #555;
}

/* ========== MISSION / VISION ========== */
.home {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    padding: 4rem 8%;
    background: #fff;
}

.home .content {
    flex: 1 1 300px;
}

.home .content h3 {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.home .content h3 span {
    color: #ff9a56;
}

.home .content p {
    line-height: 1.8;
    color: #555;
}

.home .image {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
}

.home .image img {
    width: 100%;
    max-width: 520px;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    object-fit: cover;
}

.vision-section {
    background: #fff5e6;
}

/* ========== SLIDER ========== */
.teacher {
    padding: 3rem 8%;
    background: #fff;
    overflow: hidden;
}

.teacher .container {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.teacher .wrapper {
    display: flex;
    width: 100%;
    animation: slide 16s infinite;
}

.teacher .wrapper img {
    width: 100%;
    flex: 0 0 100%;
    object-fit: contain;
    height: 800px;
    display: block;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    45% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-100%);
    }

    95% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

/* ========== GALLERY ========== */
.gallery {
    padding: 5rem 8%;
    background: linear-gradient(135deg, #fff5e6, #f0f9ff);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    height: 260px;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ========== CONTACT ========== */
.contact {
    padding: 5rem 8%;
    background: #fff;
}

.contact-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.contact-info p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    color: #333;
    line-height: 2;
}

.contact-info ul a {
    text-decoration: none;
    color: #333;
    transition: text-decoration 0.2s ease;
}

.contact-info ul a:hover {
    text-decoration: underline;
}

.contact-form {
    background: #fff;
    padding: 1.75rem;
    border-radius: 18px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.contact-form .form-title {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 1.25rem;
}

.contact-form .form-field {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-form label span {
    color: #ff9a56;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form .cta-button {
    width: 100%;
    border-radius: 12px;
}

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(135deg, #ff9a56, #ffb86b);
    color: #fff;
    padding: 3rem 8%;
}

.footer .box-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer .box h3 {
    font-size: 1.2rem;
    color: #111;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.footer .box p {
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer .box a {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer .box a:hover {
    transform: translateX(5px);
    opacity: 0.9;
}

.footer .box a img {
    filter: invert(1);
    transition: transform 0.2s ease, opacity 0.2s ease;
    margin-right: 0.5rem;
}

.footer .box a:hover img {
    transform: translateY(-2px);
    opacity: 0.9;
}

.footer .certificates {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

.footer .certificates img {
    height: 30px;
}

.powered-by img {
    max-width: 150px;
    display: block;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Powered-by bottom strip */
.footer-credit {
    background: #ff9a56;
    text-align: center;
    padding: 0.5rem 1rem;
    border-top: none;
}

.footer-credit a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.footer-credit img {
    height: 20px;
    display: block;
}

.footer-credit span {
    font-size: 0.8rem;
    opacity: 0.9;
    color: #fff;
    font-weight: 500;
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
    position: fixed;
    right: 50px;
    bottom: 50px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    transition: transform 0.2s ease;
}

.whatsapp-float img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 900px) {
    .hero {
        padding: 3rem 6%;
    }

    .about {
        padding: 4rem 6%;
    }

    .home {
        padding: 3rem 6%;
    }

    .gallery {
        padding: 4rem 6%;
    }

    .contact {
        padding: 4rem 6%;
    }

    .footer {
        padding: 2.5rem 6%;
    }

    .teacher {
        padding: 2.5rem 6%;
    }

    .logo-text {
        font-size: 0.95rem;
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    nav {
        height: 64px;
        padding: 0 4%;
    }

    .logo-image {
        width: 52px;
        height: 52px;
    }

    .logo-text {
        font-size: 0.85rem;
        max-width: 160px;
    }

    .hamburger {
        display: flex;
    }

    nav ul {
        display: none;
        position: fixed;
        top: 64px;
        right: 0;
        width: 220px;
        height: calc(100vh - 64px);
        background: #fff;
        flex-direction: column;
        gap: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        padding: 1rem 0;
        overflow-y: auto;
    }

    nav ul.open {
        display: flex;
    }

    nav ul li a {
        display: block;
        padding: 0.9rem 1.5rem;
        font-size: 1.05rem;
        border-bottom: 1px solid #f0f0f0;
    }

    nav ul li:last-child a {
        border-bottom: none;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 5%;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        width: 240px;
        height: 240px;
        padding: 8px;
        margin-top: 1rem;
    }

    .about {
        padding: 3rem 5%;
    }

    .about-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .about-text {
        text-align: center;
    }

    .home {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 5%;
    }

    .vision-section {
        flex-direction: column-reverse;
    }

    .teacher {
        padding: 2rem 4%;
    }

    .teacher .wrapper img {
        max-height: 220px;
    }

    .gallery {
        padding: 3rem 5%;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .gallery-item {
        height: 190px;
        border-radius: 12px;
    }

    .contact {
        padding: 3rem 5%;
    }

    .footer {
        padding: 2rem 5%;
    }

    .footer .box-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer .certificates {
        justify-content: flex-start;
    }
}

@media (max-width: 420px) {
    .logo-text {
        display: none;
    }

    .logo-image {
        width: 46px;
        height: 46px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-image {
        width: 190px;
        height: 190px;
    }

    .gallery-grid {
        gap: 0.75rem;
    }

    .gallery-item {
        height: 150px;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 1.75rem;
    }

    .footer .box h3 {
        font-size: 1rem;
    }

    .footer .box-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .whatsapp-float {
        right: 12px;
        bottom: 12px;
        width: 48px;
        height: 48px;
    }
}

/* ========== VIDEOS & EVENTS PAGE ========== */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.video-embed-wrap {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
}

.video-embed-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    color: #444;
}

.events-section-title {
    font-size: 1.6rem;
    color: #333;
    border-bottom: 2px solid #ff9a56;
    display: inline-block;
    padding-bottom: 0.3rem;
    margin-bottom: 1.5rem;
}

.events-ui-grid {
    display: grid;
    /* Use auto-fill instead of auto-fit so it doesn't stretch, and limit max width */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.event-ui-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    height: 480px;
    /* Aspect ratio vertical orientation */
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.event-ui-card:hover {
    transform: translateY(-5px);
}

.event-ui-img-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.event-ui-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-ui-img-placeholder {
    width: 100%;
    height: 100%;
    background: #dcdde1;
}

.event-ui-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    z-index: 2;
}

.event-ui-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: #ffaa1d;
    color: #111;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-ui-badge.latest {
    background: #2f3640;
    color: #fff;
}

.event-ui-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    z-index: 3;
    display: flex;
    flex-direction: column;
}

.event-ui-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.event-ui-meta-row {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.event-ui-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* Event Details */
.event-details-hero {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.event-details-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.event-meta {
    font-size: 1rem;
    color: #555;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.event-content-section {
    margin-bottom: 2rem;
}

.event-content-section h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: #ff9a56;
}

.event-content-section p {
    line-height: 1.8;
    color: #444;
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    font-size: 1.05rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    color: #555;
}

.admin-tab.active {
    color: #ff9a56;
    border-bottom-color: #ff9a56;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}