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

body {
    font-family: 'Poppins', sans-serif !important;
    /* background: linear-gradient(135deg, #1565C0 0%, #4A6B2A 30%, #6B4423 70%, #8B4513 100%); */
    background-image: url('../background.png');
    background-size: auto;
    background-repeat: repeat;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(245, 222, 179, 0.1);
    border-radius: 50%;
    animation: floatParticles 12s infinite ease-in-out;
}

.particle:nth-child(1) { width: 4px; height: 4px; top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 6px; height: 6px; top: 60%; left: 80%; animation-delay: 3s; }
.particle:nth-child(3) { width: 3px; height: 3px; top: 40%; left: 30%; animation-delay: 6s; }
.particle:nth-child(4) { width: 5px; height: 5px; top: 80%; left: 60%; animation-delay: 9s; }
.particle:nth-child(5) { width: 4px; height: 4px; top: 10%; left: 70%; animation-delay: 2s; }

/* Header */
.header {
    display: flex;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 10;
    animation: slideDown 1s ease-out;
}

.nav-container {
    background: #42A5F5;
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1000px;
    box-shadow: 0 8px 32px rgba(19, 95, 139, 0.3);
    border: 1px solid rgba(218, 165, 32, 0.3);
    transition: transform 0.3s ease;
    position: relative;
}

.nav-container:hover {
    transform: translateY(-2px);
}

.logo {
    font-weight: 700;
    font-size: 18px;
    color: #fffaf3;
    animation: pulse 3s infinite;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0 20px;
}

.nav-links a {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-links a.active,
.nav-links a:hover {
    color: #8B2635;
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: #8B2635;
    transition: all 0.3s ease;
}

.nav-links a.active::after,
.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
}

.search-btn {
    background: #0D47A1;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #fffaf3;
}

.search-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.5);
}

.login-btn {
    background: #0D47A1;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    color: #fffaf3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: #0D47A1;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.4);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: #1565C0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(245, 222, 179, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    margin-top: 10px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(139, 69, 19, 0.4);
    border: 1px solid rgba(218, 165, 32, 0.3);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.mobile-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-links {
    list-style: none;
    margin-bottom: 20px;
}

.mobile-nav-links li {
    margin-bottom: 15px;
}

.mobile-nav-links a {
    display: block;
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-nav-links a.active,
.mobile-nav-links a:hover {
    background: rgba(139, 38, 53, 0.1);
    color: #8B2635;
    transform: translateX(10px);
}

.mobile-auth-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding-top: 15px;
    border-top: 1px solid rgba(218, 165, 32, 0.2);
}

/* Main Content */
.main-content {
    /* padding: 60px 20px 100px; */
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

/* Page Header */
.page-header {
    text-align: center;
    /* margin-bottom: 60px; */
    animation: fadeInUp 1s ease-out 0.3s both;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 15px;
}

.page-header .subtitle {
    font-size: 1.2rem;
    color: #161615e6;
    margin-bottom: 30px;
}

.page-header .highlight {
    color: #000000;
}

/* Filter Section */
.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.filter-tabs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-tab {
    background: rgba(245, 222, 179, 0.1);
    border: 1px solid rgba(218, 165, 32, 0.3);
    color: #000000;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-tab.active,
.filter-tab:hover {
    background: #0D47A1;
    color: #fffaf3;
    transform: translateY(-2px);
}

.search-filter {
    display: flex;
    gap: 10px;
}

.search-input {
    background: #64B5F6;
    border: 1px solid #42A5F5;
    color: #000000;
    padding: 10px 15px;
    border-radius: 25px;
    outline: none;
    width: 200px;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(245, 222, 179, 0.6);
}

.search-input:focus {
    border-color: #000000;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 60px;
    margin-bottom: 50px;
}

.module-card {
    background: #64B5F6;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(218, 165, 32, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    animation: fadeInUp 1s ease-out both;
}

.module-card:nth-child(1) { animation-delay: 0.9s; }
.module-card:nth-child(2) { animation-delay: 1.2s; }
.module-card:nth-child(3) { animation-delay: 1.5s; }
.module-card:nth-child(4) { animation-delay: 1.8s; }

.module-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(139, 69, 19, 0.3);
    border-color: #000000;
}

.card-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(139, 38, 53, 0.3), rgba(218, 165, 32, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 222, 179, 0.3), transparent);
    transition: left 0.5s;
}

.module-card:hover .card-image::before {
    left: 100%;
}

.card-content {
    padding: 25px;
}

.card-badge {
    background: #0D47A1;
    color: #fffaf3;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
}

.card-title {
    color: #000000;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-description {
    color: #161615e6;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #161615e6;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.btn-primary {
    background: #0D47A1;
    color: #fffaf3;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(218, 165, 32, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #000000;
    border: 1px solid #DAA520;
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(218, 165, 32, 0.1);
    transform: translateY(-2px);
}

/* See More Section */
.see-more-section {
    text-align: center;
    animation: fadeInUp 1s ease-out 2.1s both;
}

.see-more-btn {
    background: rgba(245, 222, 179, 0.1);
    color: #000000;
    border: 2px solid #DAA520;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.see-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #0D47A1;
    transition: left 0.5s ease;
    z-index: -1;
}

.see-more-btn:hover::before {
    left: 0;
}

.see-more-btn:hover {
    color: #fffaf3;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(218, 165, 32, 0.4);
}

/* Footer */
.footer {
    background: rgb(198 222 254);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(218, 165, 32, 0.3);
    padding: 30px 20px;
    position: relative;
    bottom: 0;
    width: 100%;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: #000000;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: #161615e6;
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #000000;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(139, 38, 53, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(218, 165, 32, 0.3);
}

.social-link:hover {
    background: #DAA520;
    color: #fffaf3;
    transform: translateY(-3px) scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(218, 165, 32, 0.3);
    color: #161615e6;
    font-size: 0.9rem;
}

/* Animations */
@keyframes floatParticles {
    0%, 100% { transform: translateY(0px) translateX(0px); opacity: 0.3; }
    25% { transform: translateY(-30px) translateX(20px); opacity: 0.7; }
    50% { transform: translateY(-15px) translateX(-15px); opacity: 0.4; }
    75% { transform: translateY(-45px) translateX(10px); opacity: 0.8; }
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-links {
        gap: 20px;
    }

    .page-header h1 {
        font-size: 2.8rem;
    }

    .filter-tabs {
        gap: 10px;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-container {
        border-radius: 25px;
        padding: 15px 25px;
    }

    .main-content {
        padding: 40px 20px 80px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px;
    }

    .nav-container {
        padding: 12px 20px;
        border-radius: 20px;
    }

    .logo {
        font-size: 16px;
    }

    .main-content {
        padding: 40px 15px 80px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-tabs {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .filter-tab {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .search-input {
        width: 100%;
    }

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

    .card-actions {
        flex-direction: column;
    }

    .card-meta {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }

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

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

@media (max-width: 480px) {
    .nav-container {
        margin: 0 10px;
        padding: 10px 15px;
    }

    .auth-buttons {
        gap: 10px;
    }

    .search-btn,
    .mobile-menu-toggle {
        width: 35px;
        height: 35px;
    }

    .login-btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    .page-header h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .page-header .subtitle {
        font-size: 1rem;
    }

    .filter-tabs {
        gap: 6px;
    }

    .filter-tab {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .card-content {
        padding: 20px;
    }

    .card-title {
        font-size: 1.1rem;
    }

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

    .see-more-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}
