:root {
    --primary: #1a237e;
    --secondary: #fbc02d;
    --accent: #d32f2f;
    --text-dark: #212121;
    --text-light: #757575;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    height: 80px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.logo i { color: var(--secondary); }

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.main-nav a:hover { color: var(--secondary); }

.nav-cta {
    background-color: var(--primary);
    color: #fff !important;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
}

/* Hero Section */
.hero {
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(26, 35, 126, 0.4), rgba(26, 35, 126, 0.8));
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.search-box {
    background: #fff;
    padding: 0.5rem;
    border-radius: 50px;
    display: flex;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 0 1.5rem;
    font-size: 1rem;
    outline: none;
}

.search-box button {
    background: var(--secondary);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover { transform: scale(1.05); }

/* Modules Section */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title .divider {
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 0 auto;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.module-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid #eee;
}

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.module-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.module-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.module-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Stats Section */
.stats {
    background: var(--primary);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
}

.stat-item p {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
}

/* Recent Items */
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.item-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.item-img {
    height: 200px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
}

.item-content {
    padding: 1.5rem;
}

.item-content h4 {
    margin-bottom: 0.5rem;
}

.item-content p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Footer */
footer {
    background: #111;
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-info p {
    opacity: 0.7;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.footer-links li {
    margin-bottom: 0.8rem;
    opacity: 0.8;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .main-nav { display: none; }
}
