* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f4f7fc;
    color: #1e293b;
    line-height: 1.6;
}

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

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #facc15;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links a {
    color: #e2e8f0;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: 0.3s;
    padding: 5px 10px;
    border-radius: 8px;
}

.nav-links a:hover, .nav-links a.active {
    background: #facc15;
    color: #0f172a;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    padding: 60px 0 40px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 30px;
}

.search-box {
    max-width: 600px;
    margin: 0 auto 20px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    background: #fff;
    color: #1e293b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.2rem;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.filter-btn {
    padding: 10px 22px;
    border: 2px solid #facc15;
    background: transparent;
    color: #facc15;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: #facc15;
    color: #0f172a;
}

/* Guru Section */
.guru-section {
    padding: 50px 0;
    background: #fff;
}

.guru-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #0f172a;
}

.guru-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fef9c3, #fde047);
    border-radius: 20px;
    padding: 30px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    max-width: 700px;
    margin: 0 auto;
    gap: 30px;
}

.guru-icon i {
    font-size: 4rem;
    color: #b45309;
}

.guru-info h3 {
    font-size: 1.6rem;
    color: #1e293b;
}

.guru-info p {
    margin: 10px 0;
    color: #475569;
}

.btn-guru {
    display: inline-block;
    background: #0f172a;
    color: #facc15;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-guru:hover {
    background: #1e293b;
    transform: scale(1.05);
}

/* Tools Grid */
.tools-grid {
    padding: 50px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.card-icon i {
    font-size: 2.5rem;
    color: #facc15;
    background: #fef9c3;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 15px;
    display: inline-block;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #0f172a;
}

.card p {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 12px;
    flex-grow: 1;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.tag {
    background: #e2e8f0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #1e293b;
    font-weight: 500;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.stars i {
    color: #facc15;
    font-size: 1rem;
}

.rating-num {
    font-weight: 600;
    color: #1e293b;
}

.card-btn {
    background: #0f172a;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.card-btn:hover {
    background: #facc15;
    color: #0f172a;
}

/* Footer */
.footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

.footer a {
    color: #facc15;
    text-decoration: none;
}

/* Admin */
.admin-container {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.login-box h2 {
    margin-bottom: 20px;
}

.login-box input {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: #0f172a;
    color: #facc15;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.login-hint {
    margin-top: 15px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.admin-panel {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 900px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-logout {
    background: #dc2626;
    color: #fff;
    padding: 8px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

.msg {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: 500;
}

.msg.success {
    background: #d1fae5;
    color: #065f46;
}

.msg.error {
    background: #fee2e2;
    color: #991b1b;
}

.tool-form {
    background: #f8fafc;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.tool-form h3 {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.form-row input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    min-width: 150px;
}

.tool-form button {
    padding: 10px 25px;
    background: #0f172a;
    color: #facc15;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.tool-item {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 15px;
}

.tool-edit-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.tool-edit-row input {
    flex: 1;
    padding: 8px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    min-width: 120px;
}

.btn-update {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.btn-delete {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #1e293b;
        position: absolute;
        top: 70px;
        left: 0;
        padding: 20px;
        border-radius: 0 0 20px 20px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        margin: 10px 0;
    }

    .hamburger {
        display: block;
    }

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

    .guru-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
    }

    .tool-edit-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.4rem;
    }

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