:root {
    --black: #000000;
    --gray-900: #111827;
    --gray-800: #1F2937;
    --green-400: #4ADE80;
    --red-500: #EF4444;
    --red-600: #DC2626;
    --red-700: #B91C1C;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: linear-gradient(to bottom, var(--black), var(--gray-900));
    color: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    padding: 1rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden; /* Prevent overflow from animations */
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    color: var(--green-400);
    font-size: 1.5rem;
    font-weight: bold;
}

.register-btn {
    background-color: var(--red-600);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
    height: 40px;
    display: flex;
    align-items: center;
    animation: breathing 4s ease-in-out infinite;
    text-decoration: none;
}

.register-btn:hover {
    background-color: var(--red-700);
}

/* Breathing animation (can be used by multiple elements) */
@keyframes breathing {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Typing Text */
.typing-text {
    text-align: center;
    margin-bottom: 2rem;
    min-height: 1.5em;
}

/* Main Banner */
.main-banner {
    border-radius: 0.5rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: rgba(0, 0, 0, 0.2);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-banner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    animation: breathing 4s ease-in-out infinite;
    border-radius: 20px;
}

/* Menu Button */
.menu-btn {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    background-color: var(--red-500);
    border: none;
    border-radius: 0.375rem;
    padding: 0.75rem;
    cursor: pointer;
}

.menu-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

/* Carousel */
.carousel {
    position: relative;
    margin-bottom: 2rem;
    overflow-x: auto;
    max-width: 600px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
}

.carousel::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.carousel-container {
    display: flex;
    gap: 0.05rem;
    width: fit-content;
    min-width: 100%;
    padding: 0.5rem 0;
}

.carousel-container img {
    flex: 0 0 auto;
    width: calc(25% - 0.375rem);
    height: 104px;
    object-fit: contain;
    border-radius: 20px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.2);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.25rem;
    z-index: 2;
}

.carousel-btn.prev {
    left: 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.carousel-btn.next {
    right: 0;
    border-radius: 0.5rem 0 0 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .carousel-container img {
        min-width: calc(33.333% - 0.333rem);
        height: 104px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
        overflow: hidden;
    }

    /* Header */
    header {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .logo img {
        height: 80px;
    }

    .register-btn {
        width: calc(100% - 20px); /* Account for margins */
        margin-right: 10px;
        margin-left: 10px;
        padding: 0.75rem;
        font-size: 1.1rem;
        justify-content: center;
    }

    /* Smaller breathing effect on mobile */
    @keyframes breathing {
        0% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.03);
        }
        100% {
            transform: scale(1);
        }
    }

    /* Typing Text */
    .typing-text {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    /* Carousel */
    .carousel {
        padding: 0 0.5rem;
        margin-bottom: 1.5rem;
    }

    .carousel-container {
        gap: 0.05rem;
    }

    .carousel-container img {
        width: 150px;
        height: 80px;
    }

    /* Main Banner */
    .main-banner {
        min-height: 200px;
        margin: 0 0.5rem;
    }

    /* Menu Button */
    .menu-btn {
        bottom: 0.5rem;
        left: 0.5rem;
        padding: 0.5rem;
    }

    .menu-btn svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 50px;
    }

    .carousel-container img {
        width: 120px; /* Smaller fixed width for very small screens */
        height: 60px;
    }

    .main-banner {
        min-height: 150px;
    }

    .typing-text {
        font-size: 0.8rem;
    }

    /* Even smaller breathing effect on very small screens */
    @keyframes breathing {
        0% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.02);
        }
        100% {
            transform: scale(1);
        }
    }
}

/* Ensure the site doesn't get too wide on large screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    color: #fff;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    margin: 0;
    opacity: 0.8;
} 

/* Blog list */
.blog-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.blog-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blog-card img {
    width: 140px;
    height: 100px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.blog-title {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    color: #fff;
}

.blog-excerpt {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.blog-meta {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.blog-read {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    background-color: var(--red-600);
    padding: 0.4rem 0.75rem;
    border-radius: 0.375rem;
}

.blog-read:hover {
    background-color: var(--red-700);
}

@media (max-width: 640px) {
    .blog-card {
        grid-template-columns: 1fr;
    }

    .blog-card img {
        width: 100%;
        height: 160px;
    }
}

/* Full article styles */
.blog-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blog-article h1 {
    font-size: 1.6rem;
    margin: 0.25rem 0 0.75rem 0;
}

.blog-article h2 {
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem 0;
}

.blog-article p {
    line-height: 1.7;
    opacity: 0.95;
    margin: 0.5rem 0;
}

.blog-article ul {
    padding-left: 1.25rem;
    margin: 0.5rem 0 0.5rem 0;
}

.blog-article li {
    margin: 0.25rem 0;
}

.blog-article blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--green-400);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.25rem;
}

.blog-hero {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}