/* Variables */
:root {
    --primary-color: #6B9E5F;
    --secondary-color: #10B981;
    --accent-color: #F59E0B;
    --dark-color: #1a1f2e;
    --light-color: #ECF0F1;
    --text-color: #333;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    margin: 0 auto;
    padding: 10px 20px;
    min-height: 60px;
}

.admin-container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
.navbar {
    background: var(--dark-color);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
    border-bottom: 2px solid var(--secondary-color);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    margin-right: 15px;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    text-decoration: none;
}

.logo-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    letter-spacing: 0.5px;
    line-height: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

/* Hide all nav items by default - only show those filtered by backend */
.nav-item {
    display: none;
    align-items: center;
    justify-content: center;
}

/* Show nav item only when it has the 'show' class from backend filter */
.nav-item.show {
    display: flex;
}

.nav-item a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 500;
}

.nav-item a:hover {
    opacity: 0.8;
}

.btn-register {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: 2px solid white;
}

.portal-btn {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: 2px solid white;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    white-space: nowrap;
}

.portal-nav-item {
    display: none !important;
}

.portal-nav-item.show {
    display: flex !important;
}

.portal-mobile-btn {
    display: none;
}

.portal-btn:hover {
    opacity: 0.8;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
    padding: 8px;
    gap: 6px;
    transition: all 0.3s ease;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-icon {
    display: block !important;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hamburger-close {
    display: none !important;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hamburger.active .hamburger-icon {
    display: none !important;
}

.hamburger.active .hamburger-close {
    display: block !important;
}

/* Navigation Carousel Styles */
.nav-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-carousel {
    display: flex !important;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1rem;
    align-items: center;
    padding: 0 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar in Firefox */
}

.nav-carousel::-webkit-scrollbar {
    display: none; /* Hide scrollbar in Chrome/Safari */
}

.nav-carousel .nav-item {
    display: block !important;
    flex-shrink: 0;
}

.nav-scroll-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.nav-scroll-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.nav-scroll-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    width: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 25px;
    position: relative;
    overflow: hidden;
    text-align: left;
}

/* Desktop nav styles */
@media (min-width: 1025px) {
    .nav-menu {
        gap: 2rem;
        position: static;
        flex-direction: row;
        width: auto;
        overflow-x: visible;
        background: transparent;
        flex-direction: row;
        top: auto;
        left: auto;
    }

    .nav-item {
        display: none;
    }

    .nav-item.show {
        display: flex;
    }

    .hamburger {
        display: none !important;
    }

    .btn-register {
        padding: 0.5rem 1rem;
    }

    /* Hide carousel controls on desktop */
    .nav-carousel-wrapper {
        display: none;
    }

    .nav-scroll-btn {
        display: none;
    }
}

.hero-carousel {
    position: relative;
    height: 100%;
    min-height: 500px;
    border-radius: 20px;
    overflow: hidden;
    order: 2;
    perspective: 1000px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transform-style: preserve-3d;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    background: white;
    z-index: -10;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
}

/* Stacked card effect - show 3 cards with offset */
.carousel-slide:nth-child(1) {
    transform: translateY(0px) translateX(0px) scale(1) rotateZ(-1deg);
    z-index: 10;
}

.carousel-slide:nth-child(2) {
    transform: translateY(8px) translateX(8px) scale(0.97) rotateZ(0.5deg);
    z-index: 8;
    opacity: 0.7;
}

.carousel-slide:nth-child(3) {
    transform: translateY(16px) translateX(16px) scale(0.94) rotateZ(-0.5deg);
    z-index: 6;
    opacity: 0.4;
}

.carousel-slide:nth-child(4) {
    transform: translateY(24px) translateX(24px) scale(0.91) rotateZ(1deg);
    z-index: 4;
    opacity: 0.2;
}

.carousel-slide:nth-child(5) {
    transform: translateY(32px) translateX(32px) scale(0.88) rotateZ(-0.5deg);
    z-index: 2;
    opacity: 0.1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid white;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

.hero-content {
    order: 1;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(150px, -100px);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.hero .container {
    display: contents;
}

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

.hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: 0.9;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.hero-content h1 span {
    display: block;
    margin-bottom: 0;
}

.hero-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    opacity: 0.95;
    line-height: 1.5;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-image {
    display: none;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about {
    padding: 50px 15px;
    background: linear-gradient(135deg, rgba(107, 158, 95, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(107, 158, 95, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.about-content {
    display: grid;
    grid-template-columns: minmax(250px, 320px) 1fr;
    gap: 30px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-content > * {
    min-width: 0;
}

.about-image {
    max-width: 320px;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(107, 158, 95, 0.15);
    transition: transform 0.4s ease;
    overflow: hidden;
    display: block;
}

.about-image:hover {
    transform: translateY(-10px);
}

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: var(--dark-color);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.about-text p {
    margin-bottom: 35px;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #555;
    font-weight: 400;
}

.about-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-list li {
    margin: 0;
    font-size: 1.05rem;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: white;
    padding: 18px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.about-list li:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(107, 158, 95, 0.15);
}

.about-list i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* About Home Section */
.about-home h2 {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

/* Features Section */
.features {
    padding: 40px 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #ecf0f1 100%);
}

.features h2 {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.3px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 20px;
    max-width: 1500px;
    margin: 0 auto;
    justify-items: center;
    justify-content: center;
    width: 100%;
}

.feature-card {
    background: white;
    padding: 20px 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 100%;
    max-width: 280px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(107, 158, 95, 0.12);
    border-color: rgba(107, 158, 95, 0.2);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, rgba(107, 158, 95, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 50%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background: linear-gradient(135deg, rgba(107, 158, 95, 0.2), rgba(16, 185, 129, 0.2));
    transform: scale(1.1);
}

.feature-card:hover .feature-icon {
    color: var(--secondary-color);
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 700;
    letter-spacing: -0.2px;
}

.feature-card p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #555;
    font-weight: 400;
}

/* Testimonials Section */
.testimonials {
    padding: 35px 15px;
    background: white;
}

.testimonials h2 {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    justify-items: center;
    justify-content: center;
    width: 100%;
}

.testimonial-card {
    background: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--secondary-color);
    width: 100%;
    max-width: 350px;
}

.testimonial-text {
    font-size: 1rem;
    margin-bottom: 15px;
    font-style: italic;
    color: #555;
}

.stars {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
}

.testimonial-role {
    font-size: 0.9rem;
    color: #999;
}

/* Dates Section */
.dates {
    padding: 80px 20px;
    background: var(--light-color);
}

.dates h2 {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.dates-grid {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    justify-items: center;
    justify-content: center;
    width: 100%;
}

.date-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--secondary-color);
    width: 100%;
    max-width: 350px;
}

.date-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.date-card p {
    color: #666;
}

/* Contact Section */
.contact {
    padding: 35px 15px;
    background: var(--dark-color);
    color: white;
}

.contact h2 {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h2 {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    min-width: 30px;
}

.info-item h4 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.info-item a {
    color: #ccc;
    text-decoration: none;
}

.info-item a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: white;
    color: var(--primary-color);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--secondary-color);
}

/* Footer */
.footer {
    background: #1a252f;
    color: #aaa;
    padding: 30px 20px;
    text-align: center;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

/* At a Glance Section */
.glance {
    padding: 80px 20px;
    background: white;
}

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

.glance-item {
    text-align: center;
    padding: 30px 20px;
    background: #f9f9f9;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.glance-item:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.glance-icon {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 15px;
}

.glance-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.glance-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 10px;
}

.glance-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* Updates/News Section */
.updates {
    padding: 35px 15px;
    background: #f9f9f9;
}

.updates h2 {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 20px;
    width: 100%;
}

.update-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    width: 100%;
}

.update-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.update-date {
    font-size: 0.75rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 5px;
}

.update-card h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 0.95rem;
}

.update-card p {
    color: #666;
    margin: 8px 0;
    line-height: 1.4;
    font-size: 0.8rem;
}

.update-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.update-link:hover {
    color: #764ba2;
}

/* Gallery Section */
.gallery {
    padding: 35px 15px;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 20px;
    margin-top: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    width: 100%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 250px;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .container, .nav-container, .admin-container {
        width: 95% !important;
    }

    .hamburger {
        display: flex;
    }

    .portal-nav-item {
        display: none !important;
    }

    .portal-mobile-btn {
        display: block;
        margin-left: auto;
        margin-right: 20px;
        flex-shrink: 0;
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .nav-menu {
        gap: 0;
        position: fixed;
        flex-direction: column;
        width: 100%;
        top: 60px;
        left: -100%;
        background: var(--primary-color);
        padding: 20px;
        transition: left 0.3s ease;
        z-index: 99;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        display: none;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-item.show {
        display: flex;
    }
    
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 30px;
        min-height: auto;
    }
    
    .hero-carousel {
        min-height: 400px;
        order: 2;
    }
    
    .hero-content {
        order: 1;
        text-align: center;
    }
    
    /* Reduce stacked offset on tablet */
    .carousel-slide:nth-child(1) {
        transform: translateY(0px) translateX(0px) scale(1) rotateZ(-1deg);
    }
    
    .carousel-slide:nth-child(2) {
        transform: translateY(6px) translateX(6px) scale(0.97) rotateZ(0.5deg);
    }
    
    .carousel-slide:nth-child(3) {
        transform: translateY(12px) translateX(12px) scale(0.94) rotateZ(-0.5deg);
    }
    
    .carousel-slide:nth-child(4) {
        transform: translateY(18px) translateX(18px) scale(0.91) rotateZ(1deg);
    }
    
    .carousel-slide:nth-child(5) {
        transform: translateY(24px) translateX(24px) scale(0.88) rotateZ(-0.5deg);
    }
}

@media (max-width: 768px) {
    .container, .nav-container, .admin-container {
        width: 100%;
        padding: 0 15px;
    }
    
    .hero {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 20px;
        min-height: auto;
    }
    
    .hero-carousel {
        min-height: 300px;
        order: 2;
    }
    
    .hero-content {
        order: 1;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        padding: 0 15px;
    }

    .logo-text {
        display: none;
    }

    .nav-item {
        font-size: 0.85rem;
        display: none;
    }

    .nav-item.show {
        display: flex;
    }

    .hamburger {
        display: flex;
        z-index: 101;
    }

    .portal-nav-item {
        display: none !important;
    }

    .portal-mobile-btn {
        display: block;
        margin-left: auto;
        margin-right: 20px;
        flex-shrink: 0;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .nav-menu {
        gap: 0;
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        background: var(--primary-color);
        flex-direction: column;
        padding: 20px;
        transition: left 0.3s ease;
        z-index: 99;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-item {
        display: none;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu .nav-item.show {
        display: flex;
    }

    .nav-menu .nav-item a {
        display: flex;
        width: 100%;
    }

    .nav-menu .nav-item a.active,
    .nav-link.active {
        background-color: rgba(255, 255, 255, 0.2) !important;
        padding: 12px 15px !important;
        border-radius: 5px !important;
        font-weight: 600 !important;
        color: white !important;
    }

    .btn-register {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-home > .container > div[style*="grid"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .about-home h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .about-home #about-title {
        font-size: 18px !important;
    }

    .about-home #about-description {
        font-size: 14px !important;
        line-height: 1.5;
    }

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

    .contact-info {
        text-align: left;
    }

    .contact-info h2 {
        margin-bottom: 25px;
        font-size: 1.6rem;
    }

    .info-item {
        gap: 15px;
        margin-bottom: 20px;
    }

    .info-item h4 {
        font-size: 0.95rem;
    }

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

    .contact-form {
        margin-top: 20px;
    }

    .contact-form .form-group input,
    .contact-form .form-group textarea {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    /* Minimal stacked offset on mobile */
    .carousel-slide:nth-child(1) {
        transform: translateY(0px) translateX(0px) scale(1) rotateZ(-0.5deg);
    }
    
    .carousel-slide:nth-child(2) {
        transform: translateY(4px) translateX(4px) scale(0.98) rotateZ(0.25deg);
    }
    
    .carousel-slide:nth-child(3) {
        transform: translateY(8px) translateX(8px) scale(0.96) rotateZ(-0.25deg);
    }
    
    .carousel-slide:nth-child(4) {
        transform: translateY(12px) translateX(12px) scale(0.94) rotateZ(0.5deg);
    }
    
    .carousel-slide:nth-child(5) {
        transform: translateY(16px) translateX(16px) scale(0.92) rotateZ(-0.25deg);
    }
}

/* Admin Styles */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
}

.admin-header h1 {
    color: var(--primary-color);
}

.logout-btn {
    background: #e74c3c;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 20px;
    margin-bottom: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
    justify-content: center;
    width: 100%;
}

.admin-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    width: 100%;
    max-width: 300px;
}

.admin-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.admin-card .btn {
    width: 100%;
    margin-top: 10px;
}

.form-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.form-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 10px;
}

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

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

/* Label for checkboxes - display inline */
label:has(input[type="checkbox"]),
label:has(input[type="radio"]) {
    display: flex;
    align-items: center;
    font-weight: 400;
    margin-bottom: 12px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

/* Checkboxes and radios should be small, not full width */
input[type="checkbox"],
input[type="radio"] {
    width: auto !important;
    padding: 0 !important;
    margin-right: 8px;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
}

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

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th {
    background: var(--light-color);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--dark-color);
}

.table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.table tr:hover {
    background: #f9f9f9;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.9rem;
}

/* ===== PLAYFUL ANIMATIONS FOR EARLY LEARNING CENTER ===== */

/* Bouncing Animation for Buttons */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Wiggle Animation */
@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-2deg);
    }
    75% {
        transform: rotate(2deg);
    }
}

/* Rainbow Pulse Animation */
@keyframes rainbowPulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 100, 100, 0.5);
    }
    25% {
        box-shadow: 0 0 20px rgba(255, 200, 100, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(100, 200, 100, 0.5);
    }
    75% {
        box-shadow: 0 0 20px rgba(100, 100, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 20px rgba(200, 100, 255, 0.5);
    }
}

/* Heartbeat Animation */
@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.05);
    }
}

/* Spin Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Slide In from Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In from Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Rainbow Background */
@keyframes rainbowGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* === Apply Animations to Elements === */

/* Playful Button Effects */
.btn {
    transition: all 0.3s ease;
}

.hero .btn,
.admin-wrapper .btn {
    animation: none !important;
}

.btn:hover {
    animation: none;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn:active {
    animation: none;
    transform: scale(0.98);
}

/* Hero Content Float Effect */
.hero-content {
    animation: none;
}

.hero-content h1 {
    animation: slideInLeft 0.8s ease-out;
}

.hero-content p {
    animation: slideInLeft 1s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

/* Carousel Rainbow Pulse */
.hero-carousel {
    animation: rainbowPulse 6s ease-in-out infinite;
}

/* Nav Items Playful Hover */
.nav-item, .nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-item:hover a, .nav-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-3px);
    animation: wiggle 0.4s ease-in-out;
}

/* Testimonial Cards Playful Effect */
.testimonial-card {
    animation: slideInUp 0.6s ease-out;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 350px;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: heartbeat 0.4s ease-in-out;
}

/* Slide In Up Animation for Cards */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Date Cards Fun Hover */
.date-card {
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out;
}

.date-card:hover {
    transform: scale(1.05) rotateY(5deg);
    box-shadow: 0 15px 40px rgba(107, 158, 95, 0.2);
    border-top-color: var(--accent-color);
}

.date-card h3 {
    animation: pulse 2s ease-in-out infinite;
}

/* Section Headings with Rainbow Pulse */
h2 {
    animation: slideInLeft 0.8s ease-out;
}

/* Features Grid Items */
.feature-item {
    animation: slideInUp 0.6s ease-out;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(107, 158, 95, 0.15);
}

.feature-item:hover::before {
    animation: spin 1s linear infinite;
    content: "🎉";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
}

/* About Section */
.about {
    animation: slideInLeft 0.8s ease-out;
}

/* Contact Form Inputs */
input[type="text"],
input[type="email"],
textarea,
select {
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
    animation: pulse 0.6s ease-out;
}

/* Success Message Animation */
.message.success {
    animation: slideInRight 0.5s ease-out;
}

.message.error {
    animation: wiggle 0.4s ease-in-out;
}

/* Carousel Dots Playful */
.carousel-dot {
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    animation: heartbeat 0.4s ease-in-out;
    box-shadow: 0 0 15px rgba(107, 158, 95, 0.5);
}

/* ========== COMPREHENSIVE RESPONSIVE DESIGN ========== */

/* TABLET (1024px and below) */
@media (max-width: 1024px) {
    /* General */
    .container, .nav-container, .admin-container {
        width: 95% !important;
    }

    /* Forms */
    .form-group {
        margin-bottom: 15px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on mobile */
    }

    /* Tables */
    table {
        font-size: 0.9rem;
    }

    table th,
    table td {
        padding: 8px 10px;
    }

    /* Grids */
    .gallery-grid {
        grid-template-columns: repeat(3, auto) !important;
        gap: 15px !important;
        justify-content: center;
    }

    .features-grid,
    .admin-grid,
    .dates-grid,
    .testimonials-grid,
    .updates-grid {
        grid-template-columns: repeat(3, auto) !important;
        gap: 15px !important;
        justify-items: center;
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr 1fr !important;
        gap: 40px !important;
        align-items: center;
    }

    .about-image {
        max-width: 350px;
        width: 100%;
        aspect-ratio: 1 / 1;
    }

    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* About Section - Tablet */
    .about {
        padding: 80px 20px;
    }

    .about-text h2 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    .about-text p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .about-list li {
        padding: 16px 20px;
        font-size: 1rem;
        gap: 14px;
    }

    .about-list i {
        font-size: 1.3rem;
    }

    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.4rem; }
    p { font-size: 0.95rem; }

    /* Buttons */
    .btn {
        padding: 8px 16px;
        font-size: 0.95rem;
    }

    /* Cards */
    .feature-card,
    .testimonial-card,
    .date-card,
    .update-card,
    .gallery-item {
        padding: 15px;
    }

    /* Feature Card - Tablet */
    .feature-card {
        padding: 30px 20px;
        max-width: 280px;
    }

    .feature-icon-wrapper {
        width: 85px;
        height: 85px;
        margin: 0 auto 20px;
    }

    .feature-icon {
        font-size: 2rem;
    }

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

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

/* MOBILE (768px and below) */
@media (max-width: 768px) {
    /* General */
    .container, .nav-container, .admin-container {
        width: 100%;
        padding: 0 12px;
    }

    body {
        font-size: 14px;
    }

    /* Features Section */
    .features {
        padding: 60px 15px;
    }

    .features h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    /* About Section - Mobile */
    .about {
        padding: 60px 15px;
    }

    .about-content {
        gap: 25px !important;
    }

    .about-image {
        max-width: 280px;
        aspect-ratio: 1 / 1;
    }

    .about-text h2 {
        font-size: 1.8rem;
        margin-bottom: 18px;
    }

    .about-text p {
        font-size: 0.95rem;
        margin-bottom: 20px;
        line-height: 1.7;
    }

    .about-list {
        gap: 10px;
    }

    .about-list li {
        padding: 14px 16px;
        font-size: 0.95rem;
        gap: 12px;
        border-left: 3px solid var(--primary-color);
    }

    .about-list i {
        font-size: 1.2rem;
    }

    /* Navigation */
    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex !important;
    }

    /* Hero Section */
    .hero {
        min-height: 400px;
        padding: 40px 20px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    /* Sections */
    .section {
        padding: 40px 20px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }
    p { font-size: 0.9rem; }

    /* Forms */
    .form-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .form-section h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

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

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 8px 10px;
        font-size: 16px;
        width: 100%;
    }

    /* Tables */
    table {
        font-size: 0.85rem;
        width: 100%;
        overflow-x: auto;
    }

    table th,
    table td {
        padding: 6px 8px;
    }

    /* Grids - responsive to single column */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .features-grid,
    .admin-grid,
    .updates-grid,
    .dates-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, auto) !important;
        gap: 12px !important;
        max-width: 400px !important;
        justify-items: center !important;
        justify-content: center !important;
    }

    .about-content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .about-home > .container > div[style*="grid"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .contact-content {
        grid-template-columns: 1fr !important;
    }

    .about-image {
        max-width: 250px;
        aspect-ratio: 1 / 1;
        margin: 0 auto;
    }

    /* Cards */
    .feature-card,
    .testimonial-card,
    .date-card,
    .update-card,
    .gallery-item,
    .form-section {
        padding: 12px;
    }

    /* Feature Card - Mobile */
    .feature-card {
        padding: 20px 16px;
        max-width: 100%;
        border-radius: 12px;
    }

    .feature-icon-wrapper {
        width: 75px;
        height: 75px;
        margin: 0 auto 15px;
    }

    .feature-icon {
        font-size: 1.75rem;
    }

    .feature-card h3,
    .testimonial-card h3 {
        font-size: 1rem;
    }

    .feature-card h3 {
        margin: 0 0 10px 0;
    }

    .feature-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }

    .gallery-grid img {
        width: 100%;
    }

    /* Contact Info */

    .contact-info {
        text-align: left;
    }

    .info-item {
        margin: 10px 0;
        font-size: 0.9rem;
    }

    /* Social Links */
    .social-links {
        justify-content: flex-start;
        gap: 10px;
    }

    .social-links a {
        font-size: 1.5rem;
    }

    /* Testimonials */
    .testimonial-card {
        text-align: center;
    }

    .testimonial-card .stars {
        font-size: 1rem;
    }

    .testimonial-text {
        font-size: 0.85rem;
    }

    /* Carousel */
    .carousel-slide {
        transform: none !important;
    }

    .carousel-controls {
        gap: 8px;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }

    /* Buttons */
    .btn-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn-group .btn {
        width: 100%;
    }

    /* Footer */
    .footer {
        padding: 20px;
        text-align: center;
        font-size: 0.85rem;
    }

    .footer-links {
        display: block;
        margin-top: 10px;
        font-size: 0.8rem;
    }

    .footer-links a {
        display: inline-block;
        margin: 5px 3px;
    }

    /* Messages */
    .message {
        padding: 15px 12px;
        margin: 15px 0;
        font-size: 0.9rem;
    }

    /* Admin Specific */
    .admin-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .admin-header h1 {
        font-size: 1.3rem;
    }

    .user-info {
        width: 100%;
        font-size: 0.85rem;
    }

    .logout-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .admin-toggle {
        order: -1;
    }

    .tab-content {
        padding: 15px;
    }
}

/* SMALL MOBILE (480px and below) */
@media (max-width: 480px) {
    /* General */
    .container, .nav-container, .admin-container {
        padding: 0 10px;
    }

    .portal-mobile-btn {
        display: block;
        padding: 6px 10px;
        font-size: 11px;
        margin-right: 20px;
        margin-left: auto;
    }

    .hamburger {
        font-size: 1.2rem;
        padding: 5px;
    }

    body {
        font-size: 13px;
    }

    /* Typography */
    h1 { font-size: 1.3rem; }
    h2 { font-size: 1.1rem; }
    h3 { font-size: 1rem; }
    p { font-size: 0.85rem; }

    /* Features Section */
    .features {
        padding: 50px 10px;
    }

    .features h2 {
        font-size: 1.3rem;
        margin-bottom: 30px;
    }

    /* Hero */
    .hero {
        min-height: 300px;
        padding: 30px 15px;
    }

    .hero-content h1 {
        font-size: 1.4rem;
    }

    .hero-content p {
        font-size: 0.8rem;
    }

    /* Buttons */
    .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    /* Forms */
    .form-section {
        padding: 15px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 14px;
    }

    /* Tables - make scrollable */
    table {
        font-size: 0.75rem;
    }

    table th,
    table td {
        padding: 4px 6px;
    }

    /* Grids */
    .gallery-grid {
        grid-template-columns: repeat(2, auto) !important;
        gap: 8px !important;
    }

    .features-grid,
    .admin-grid,
    .updates-grid,
    .dates-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, auto) !important;
        gap: 8px !important;
    }

    /* Cards */
    .feature-card,
    .testimonial-card,
    .date-card,
    .update-card {
        padding: 10px;
    }

    /* Feature Card - Extra Small Mobile */
    .feature-card {
        padding: 15px 12px;
        max-width: 100%;
    }

    .feature-icon-wrapper {
        width: 65px;
        height: 65px;
        margin: 0 auto 12px;
    }

    .feature-icon {
        font-size: 1.5rem;
    }

    .feature-card h3 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .feature-card p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    /* About Section - Extra Small Mobile */
    .about {
        padding: 50px 10px;
    }

    .about-content {
        gap: 20px !important;
    }

    .about-image {
        max-width: 200px;
        aspect-ratio: 1 / 1;
        margin: 0 auto;
    }

    .about-text h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .about-text p {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }

    .about-list li {
        padding: 12px 14px;
        font-size: 0.9rem;
        gap: 10px;
        border-left: 3px solid var(--primary-color);
    }

    .about-list i {
        font-size: 1.1rem;
    }

    /* Footer */
    .footer {
        padding: 15px 10px;
        font-size: 0.8rem;
    }

    .footer-links a {
        margin: 3px 2px;
        font-size: 0.75rem;
    }

    /* Messages */
    .message {
        padding: 12px 10px;
        font-size: 0.8rem;
    }

    /* Admin */
    .admin-sidebar h2 {
        font-size: 0.95rem;
    }

    .admin-nav li a {
        padding: 5px 8px;
        font-size: 0.8rem;
    }

    .tab-content {
        padding: 12px;
    }

    .logout-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}

/* Custom Popup/Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideIn 0.3s ease;
}

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

.modal-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.modal-icon.success {
    color: #10B981;
}

.modal-icon.error {
    color: #EF4444;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.modal-message {
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.modal-button:hover {
    background: #5a8a52;
}
