/*
Theme Name: Portal SMK Inanam
Theme URI: https://smkinanam.com
Author: Zan
Author URI: https://smkinanam.com
Description: Modern custom theme for Portal SMK Inanam website.
Version: 1.0
Requires at least: 5.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smk-inanam
*/

:root {
    --navy: #0b1f3a;
    --navy-dark: #071527;
    --gold: #d4a537;
    --gold-light: #f0c96a;
    --bg: #f4f6f9;
    --text: #26313f;
    --muted: #6b7787;
    --white: #ffffff;
    --radius: 10px;
    --shadow: 0 4px 16px rgba(11, 31, 58, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* ---------- HEADER ---------- */
.site-header {
    background-color: var(--white);
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e8ebee;
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.site-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.site-title {
    color: var(--navy);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--navy);
    border-radius: 2px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav > ul > li > a {
    display: block;
    color: var(--text);
    padding: 12px 14px;
    font-size: 14.5px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.main-nav > ul > li > a:hover {
    color: var(--navy);
    border-bottom: 2px solid var(--gold);
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 240px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 8px;
    list-style: none;
    margin: 6px 0 0;
    z-index: 200;
    border: 1px solid #eee;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown li a {
    display: block;
    padding: 9px 12px;
    color: var(--text);
    font-size: 14px;
    border-radius: 6px;
}

.dropdown li a:hover {
    background-color: var(--bg);
    color: var(--navy);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    background:
        linear-gradient(90deg, rgba(80,100,140,0.85) 0%, rgba(80,100,140,0.55) 45%, rgba(80,100,140,0.15) 70%),
        url('https://lh3.googleusercontent.com/sitesv/AG8ngQXCeWuymVnvRQqhdAiVTbI5XwJb24A8qb0fd-hufMlWjPwFu64awIVq96mrnyPGSgNiaUw3deZVdU0t-xGBc0u1xrdzncRxVGM9S1SmuRJCAeaTNrsWd7JAZZ7ys6AoBtdszTzvy4XWN7Ow7sOThe0iWv0-AjDj7f1vy18C0cbrWmb03qsMU2-l3HZ9-64Q_FgHoEMwRR6LOTMD01ZKuHbhQBeYJaZDCvBkMggD=w1600');
    background-size: cover;
    background-position: center;
    padding: 60px 24px;
    min-height: 320px;
    display: flex;
    align-items: center;
}

.hero-inner {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 30px;
}

.hero-badge {
    width: 130px;
    height: 130px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
}

.hero-text {
    display: flex;
    flex-direction: column;
    line-height: 0.95;
}

.hero-line1 {
    font-size: 46px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.hero-line2 {
    font-size: 64px;
    font-weight: 900;
    color: var(--gold-light);
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

/* ---------- SECTIONS ---------- */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 24px;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 30px;
    text-align: center;
}

/* ---------- HIGHLIGHTS ---------- */
.highlights {
    background: var(--white);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.highlight-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 24px;
    border-left: 4px solid var(--gold);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.highlight-date {
    display: inline-block;
    background: var(--navy);
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.highlight-card h3 {
    font-size: 17px;
    margin: 0 0 8px;
    color: var(--navy);
}

.highlight-card p {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 14px;
}

.highlight-link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy);
}

.highlight-link:hover {
    color: var(--gold);
}

/* ---------- QUICK LINKS ---------- */
.quick-links {
    background: var(--bg);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.quick-link-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 26px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.2s ease;
}

.quick-link-card:hover {
    transform: translateY(-4px);
}

.quick-link-title {
    font-weight: 700;
    color: var(--navy);
    font-size: 16px;
}

.quick-link-sub {
    font-size: 13px;
    color: var(--muted);
}

/* ---------- BLOG / ARTICLES (index.php) ---------- */
main {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}

article {
    background: var(--white);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

article h2 {
    margin-top: 0;
    color: var(--navy);
}

.entry-meta {
    font-size: 0.85em;
    color: var(--muted);
    margin-bottom: 10px;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background-color: var(--navy-dark);
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    padding: 30px 20px;
    margin-top: 0;
}

.footer-inner p {
    margin: 4px 0;
}

.footer-school-name {
    color: var(--white);
    font-weight: 600;
}

.footer-copyright {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 12px !important;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .dropdown {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: 12px;
    }

    .has-dropdown.open .dropdown {
        display: block;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-line1 {
        font-size: 30px;
    }

    .hero-line2 {
        font-size: 38px;
    }
}