/* ===== Variables ===== */
:root {
    --primary: #0f172a;
    --secondary: #1e293b;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --text: #334155;
    --text-light: #94a3b8;
    --white: #ffffff;
    --bg: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* ===== Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Header ===== */
header {
    background: var(--primary);
    padding: 0 60px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links a {
    color: #cbd5e1;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}

.nav-links a.active {
    color: var(--white);
    background: var(--accent);
}

/* ===== Main ===== */
main {
    min-height: calc(100vh - 140px);
    background: linear-gradient(135deg, var(--primary) 0%, #1e1b4b 100%);
}

/* ===== Hero ===== */
.hero {
    color: var(--white);
    padding: 354px 60px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 40px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99,102,241,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
    margin-left: 15px;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

/* ===== Section ===== */
.section {
    padding: 80px 60px;
    max-width: 1300px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    background: rgba(99,102,241,0.1);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== Cards Grid ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #818cf8);
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: var(--accent);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 55px;
    height: 55px;
    background: rgba(99,102,241,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== Badge ===== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 15px;
}

.badge-active {
    background: rgba(34,197,94,0.1);
    color: #16a34a;
}

.badge-completed {
    background: rgba(99,102,241,0.1);
    color: var(--accent);
}

.badge-pending {
    background: rgba(234,179,8,0.1);
    color: #ca8a04;
}

/* ===== Team Card ===== */
.team-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--white);
    font-weight: 700;
}

.team-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.team-position {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.team-department {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ===== Blog Card ===== */
.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.blog-card-body {
    padding: 25px;
}

.blog-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.blog-date {
    color: var(--text-light);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== Footer ===== */
footer {
    background: var(--primary);
    color: #94a3b8;
    text-align: center;
    padding: 30px 60px;
    font-size: 0.9rem;
}

footer span {
    color: var(--accent);
}

/* ===== Contact ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-icon {
    font-size: 1.8rem;
    width: 55px;
    height: 55px;
    background: rgba(99,102,241,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-item p {
    font-weight: 600;
    color: var(--primary);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text);
    transition: var(--transition);
    font-family: inherit;
    background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
}

/* ===== Card Image ===== */
.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.team-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    font-weight: 600;
    border: 2px solid var(--border);
    transition: var(--transition);
}

.page-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.page-btn.active {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* ===== Post Detail ===== */
.post-detail {
    max-width: 800px;
    margin: 0 auto;
}

.post-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.post-header {
    margin-bottom: 30px;
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text);
}

.blog-card {
    display: block;
    text-decoration: none;
    color: inherit;
}


/* ===== Responsive ===== */

/* Tablet - 1024px */
@media (max-width: 1024px) {
    header {
        padding: 0 30px;
    }

    .section {
        padding: 60px 30px;
    }

    .hero {
        padding: 80px 30px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Mobile - 768px */
@media (max-width: 768px) {
    /* Header */
    header {
        padding: 0 20px;
    }

    nav {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    /* Hero */
    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 10px;
    }

    /* Section */
    .section {
        padding: 50px 20px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    /* Cards */
    .cards {
        grid-template-columns: 1fr;
    }

    /* Post Detail */
    .post-detail {
        padding: 0;
    }

    .post-image {
        height: 250px;
    }

    .post-header h1 {
        font-size: 1.8rem;
    }

    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form {
        padding: 25px;
    }

    /* Footer */
    footer {
        padding: 20px;
    }
}

/* Small Mobile - 480px */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .card {
        padding: 20px;
    }

    .team-card {
        padding: 20px;
    }

    .contact-item {
        padding: 15px;
    }

    .pagination {
        gap: 6px;
    }

    .page-btn {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
}
