/* ========================================
   SIKAREDUCATIONINFO.COM - STYLES
   Clean, modern education theme
   Blue and white color scheme
   ======================================== */

/* ----------------------------------------
   CSS Variables
   ---------------------------------------- */
:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #3b82f6;
    --color-secondary: #64748b;
    --color-bg: #e8f4fa;
    --color-bg-card: #ffffff;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.3s ease;
    
    --navbar-height: 70px;
}

/* ----------------------------------------
   Reset & Base
   ---------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

/* ----------------------------------------
   Layout Container
   ---------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   HEADER / NAVBAR
   ======================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-bg-card);
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition);
}

.navbar.navbar--scrolled {
    box-shadow: var(--shadow-lg);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--navbar-height);
}

.navbar-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
}

.navbar-logo:hover {
    color: var(--color-primary-dark);
}

/* Hamburger Toggle - Hidden on desktop */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: transform var(--transition);
}

.navbar-toggle:hover {
    opacity: 0.8;
}

.navbar-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.navbar-menu {
    display: flex;
    align-items: center;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
}

.nav-link:hover {
    color: var(--color-primary);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(37, 99, 235, 0.15) 0%,
        rgba(37, 99, 235, 0.5) 70%,
        rgba(30, 41, 59, 0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
}

/* ========================================
   CARDS - Shared Styles
   ======================================== */
.cards-grid {
    display: grid;
    gap: 1.5rem;
}

.cards-grid--featured {
    grid-template-columns: repeat(3, 1fr);
    padding: 3rem 0;
}

.cards-grid--coming-soon {
    grid-template-columns: repeat(3, 1fr);
    padding-bottom: 3rem;
}

.card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-image-wrapper {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.card-description {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition);
}

.btn--primary {
    background-color: var(--color-secondary);
    color: #ffffff;
}

.btn--primary:hover {
    background-color: var(--color-text);
}

.btn--secondary {
    background-color: var(--color-border);
    color: var(--color-text);
}

.btn--secondary:hover {
    background-color: var(--color-secondary);
    color: #ffffff;
}

/* ========================================
   SECTION TITLES
   ======================================== */
.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 2rem;
}

/* ========================================
   FEATURED SECTION
   ======================================== */
.featured-section {
    background: var(--color-bg);
}

/* ========================================
   COMING SOON SECTION
   ======================================== */
.coming-soon-section {
    background: var(--color-bg);
}

/* ========================================
   BLOG PAGE STYLES
   ======================================== */
.blog-article {
    background: var(--color-bg);
    padding: 3rem 0 4rem;
}

.blog-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.blog-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.blog-date {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.blog-image-wrapper {
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.blog-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    object-fit: cover;
}

.blog-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 2.5rem;
}

.blog-section {
    margin-top: 2rem;
}

.blog-section--coming-soon {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.blog-section--coming-soon h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.blog-coming-soon-message {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* More Blogs Coming Soon - Blog page */
.more-blogs-section {
    padding: 2rem 0 1rem;
}

.more-blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.more-blog-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: default;
}

.more-blog-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.more-blog-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    padding: 1rem 1.25rem;
    margin: 0;
}

@media (max-width: 768px) {
    .more-blogs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-article {
        padding: 2rem 0 3rem;
    }

    .blog-container {
        padding: 0 1rem;
    }
}

/* ========================================
   FOOTER - Full Width at Bottom
   ======================================== */
.footer {
    background-color: var(--color-text);
    color: rgba(255, 255, 255, 0.9);
    margin-top: auto;
    padding: 3rem 0 1.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #ffffff;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-icon {
    font-size: 1rem;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

/* ----------------------------------------
   Body layout for sticky footer
   ---------------------------------------- */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* ========================================
   RESPONSIVE - Tablet
   ======================================== */
@media (max-width: 992px) {
    .cards-grid--featured,
    .cards-grid--coming-soon {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   RESPONSIVE - Mobile
   ======================================== */
@media (max-width: 768px) {
    /* Navbar - Mobile Menu */
    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg-card);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition);
    }

    .navbar-menu.is-open {
        max-height: 300px;
    }

    .navbar-links {
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
    }

    .navbar-links li {
        border-bottom: 1px solid var(--color-border);
    }

    .navbar-links li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
    }

    /* Hero */
    .hero {
        min-height: 350px;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    /* Cards - Single column */
    .cards-grid--featured,
    .cards-grid--coming-soon {
        grid-template-columns: 1fr;
        padding: 2rem 0;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-heading {
        margin-bottom: 0.75rem;
    }
}

/* ========================================
   RESPONSIVE - Small Mobile
   ======================================== */
@media (max-width: 480px) {
    .navbar-logo {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .card-content {
        padding: 1.25rem;
    }
}
