/* ============================================
   CIKGU SUHAIMIN - Main Stylesheet
   ============================================ */

:root {
    --primary-color: #ff3d00;
    --primary-dark: #e53700;
    --bg-light: #f7f7f7;
    --bg-dark: #000000;
    --text-dark: #000000;
    --text-light: #ffffff;
    --border-color: #e0e0e0;
    --accent-green: #4caf50;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 20px;
    font-weight: 700;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    color: var(--primary-color);
    font-weight: 700;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

nav a:hover {
    color: var(--primary-color);
}

nav a[rel="nofollow"] {
    color: #aaa;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

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

main {
    min-height: 60vh;
    padding: 40px 0;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a1a 100%);
    color: var(--text-light);
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================
   BLOG POSTS
   ============================================ */

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-post {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.post-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    margin: 15px 15px 0 15px;
    border-radius: 20px;
    text-transform: uppercase;
}

.post-content {
    padding: 20px;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.post-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.sidebar h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar li:last-child {
    border-bottom: none;
}

.sidebar a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: var(--primary-color);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ============================================
   PAGES & CONTENT
   ============================================ */

.page-header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a1a 100%);
    color: var(--text-light);
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
}

.page-content h2 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.page-content h3 {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.page-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.page-content ul,
.page-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.page-content li {
    margin-bottom: 8px;
}

.page-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-content a:hover {
    color: var(--primary-dark);
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 5px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #666;
    margin: 0 5px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: #666;
}

.btn-secondary:hover {
    background-color: #555;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 15px;
        justify-content: center;
    }

    nav a {
        font-size: 12px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

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

    .page-header h1 {
        font-size: 28px;
    }

    .page-content {
        padding: 20px;
    }

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

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        padding: 20px;
        position: absolute;
        top: 100%;
        left: 0;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

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

    .page-header h1 {
        font-size: 22px;
    }

    .post-title {
        font-size: 16px;
    }

    nav a {
        font-size: 11px;
        padding: 3px 5px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

.hidden {
    display: none;
}

.no-follow {
    color: #aaa;
}
