/*
Theme Name: DataConfo Academy
Theme URI: https://dataconfo.com
Author: DataConfo
Author URI: https://dataconfo.com
Description: Professional educational platform theme for DataConfo Academy - PECB authorized training partner.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dataconfo-academy
Tags: education, learning, courses, responsive, blue
*/

/* =========================================================
   DATACONFO ACADEMY - DESIGN SYSTEM
   ========================================================= */

:root {
    /* Primary Colors */
    --primary: #0040a1;
    --primary-container: #0056d2;
    --on-primary: #ffffff;

    /* Surface Colors */
    --surface: #f9f9fd;
    --surface-container-low: #f3f3f7;
    --surface-container: #eeedf2;
    --surface-container-high: #e8e8ec;
    --surface-container-lowest: #ffffff;
    --surface-bright: #f9f9fd;

    /* Text Colors */
    --on-surface: #1a1c1f;
    --on-surface-variant: #424654;
    --outline: #737785;
    --outline-variant: #c3c6d6;

    /* Other Colors */
    --secondary: #5b5f63;
    --secondary-container: #dfe3e8;
    --background: #f9f9fd;
    --inverse-surface: #2f3034;
    --error: #ba1a1a;
    --tertiary: #822800;
    --tertiary-container: #a93802;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 12px;
    --space-base: 8px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 80px;
    --space-gutter: 24px;
    --space-margin: 32px;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
}

/* =========================================================
   BASE RESET & TYPOGRAPHY
   ========================================================= */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--on-surface);
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
}

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}

/* =========================================================
   LAYOUT
   ========================================================= */

.dc-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.dc-container-wide {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

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

#dc-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#dc-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.dc-logo {
    font-size: 20px;
    font-weight: 900;
    color: #1d4ed8;
    letter-spacing: -0.05em;
    text-decoration: none;
}

.dc-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.dc-nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    transition: color 0.2s;
}

.dc-nav-links a:hover,
.dc-nav-links a.active {
    color: #1d4ed8;
}

.dc-nav-links a.active {
    border-bottom: 2px solid #1d4ed8;
    padding-bottom: 4px;
}

.dc-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Hamburger menu */
.dc-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1100;
}

.dc-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1e293b;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.dc-menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.dc-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.dc-menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.dc-mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: 24px;
    z-index: 999;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid #e2e8f0;
    overflow-y: auto;
}

.dc-mobile-nav.is-open {
    display: flex;
}

.dc-mobile-nav a {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    display: block;
}

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

.dc-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0056d2;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
    min-height: 48px;
}

.dc-btn-primary:hover {
    opacity: 0.9;
    color: #ffffff;
}

.dc-btn-primary:active {
    transform: scale(0.97);
}

.dc-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #1d4ed8;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #1d4ed8;
    cursor: pointer;
    min-height: 48px;
    transition: background 0.2s;
}

.dc-btn-secondary:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.dc-btn-ghost {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #1d4ed8;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
}

.dc-btn-ghost:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

/* =========================================================
   CARDS
   ========================================================= */

.dc-card {
    background: #ffffff;
    border: 1px solid #c3c6d6;
    border-radius: 12px;
    padding: 24px;
    transition: box-shadow 0.2s;
}

.dc-card:hover {
    box-shadow: 0 4px 20px rgba(15, 17, 20, 0.08);
}

.dc-course-card {
    background: #ffffff;
    border: 1px solid #c3c6d6;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s, transform 0.2s;
}

.dc-course-card:hover {
    box-shadow: 0 8px 30px rgba(0, 64, 161, 0.12);
    transform: translateY(-2px);
}

.dc-course-card__image {
    position: relative;
    height: 192px;
    overflow: hidden;
}

.dc-course-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dc-course-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
}

.dc-course-card__body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.dc-course-card__category {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.dc-course-card__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--on-surface);
    margin-bottom: 12px;
    transition: color 0.2s;
}

.dc-course-card:hover .dc-course-card__title {
    color: var(--primary);
}

.dc-course-card__desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--on-surface-variant);
    margin-bottom: 16px;
    flex-grow: 1;
}

.dc-course-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

/* =========================================================
   CHIP / TAG
   ========================================================= */

.dc-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dfe3e8;
    color: #43474b;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

.dc-chip--blue {
    background: #eff6ff;
    color: #1d4ed8;
}

/* =========================================================
   PROGRESS BAR
   ========================================================= */

.dc-progress {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.dc-progress__fill {
    height: 100%;
    background: var(--primary-container);
    border-radius: 9999px;
    transition: width 0.5s ease;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.dc-section {
    padding: 80px 0;
}

.dc-section--alt {
    background: var(--surface-container-low);
}

.dc-section-header {
    margin-bottom: 48px;
}

.dc-section-header h2 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--on-surface);
    margin: 0 0 8px;
}

.dc-section-header p {
    font-size: 16px;
    color: var(--outline);
    margin: 0;
}

/* Grid systems */
.dc-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dc-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

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

.dc-hero {
    padding: 80px 0;
    background: #ffffff;
    overflow: hidden;
}

.dc-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.dc-hero__badge {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 9999px;
    margin-bottom: 24px;
}

.dc-hero__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--on-surface);
    margin: 0 0 24px;
}

.dc-hero__subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--outline);
    margin: 0 0 48px;
    max-width: 480px;
}

.dc-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.dc-hero__image-wrap {
    position: relative;
}

.dc-hero__image-wrap img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #c3c6d6;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

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

#dc-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.dc-footer__inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 48px 24px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 24px;
    flex-wrap: wrap;
}

.dc-footer__brand {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.dc-footer__copy {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.dc-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.dc-footer__links a {
    font-size: 12px;
    color: #64748b;
    transition: color 0.2s;
}

.dc-footer__links a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* =========================================================
   FORMS & AUTH
   ========================================================= */

.dc-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--on-surface);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.dc-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #c3c6d6;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: var(--on-surface);
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.dc-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 64, 161, 0.12);
}

.dc-input::placeholder {
    color: #94a3b8;
}

/* =========================================================
   PAGINATION
   ========================================================= */

.dc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 80px;
}

.dc-page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c3c6d6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--on-surface);
    background: #ffffff;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.dc-page-btn:hover {
    background: var(--surface-container-low);
}

.dc-page-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* =========================================================
   ACCORDION
   ========================================================= */

.dc-accordion {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.dc-accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    background: #ffffff;
    transition: background 0.15s;
    border: none;
    font-family: inherit;
    text-align: left;
}

.dc-accordion__trigger:hover {
    background: #f8fafc;
}

.dc-accordion__icon {
    transition: transform 0.3s ease;
    color: #94a3b8;
}

.dc-accordion.is-open .dc-accordion__icon {
    transform: rotate(180deg);
}

.dc-accordion__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.dc-accordion.is-open .dc-accordion__body {
    max-height: 500px;
}

.dc-accordion__content {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--on-surface-variant);
    line-height: 1.7;
}

/* =========================================================
   SEARCH BAR (catalog)
   ========================================================= */

.dc-search-wrap {
    position: relative;
    display: inline-block;
}

.dc-search-wrap .material-symbols-outlined {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--outline);
    font-size: 20px;
    pointer-events: none;
}

.dc-search-wrap input {
    padding-left: 40px;
}

/* =========================================================
   COURSE DETAIL PAGE
   ========================================================= */

.dc-detail-hero {
    background: #ffffff;
    padding: 80px 0;
    border-bottom: 1px solid #f1f5f9;
}

.dc-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.dc-detail-main {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    padding: 80px 0;
}

.dc-sidebar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.dc-sidebar-dark {
    background: #0f172a;
    color: #ffffff;
    border-radius: 12px;
    padding: 24px;
}

/* =========================================================
   AUTH PAGE
   ========================================================= */

.dc-auth-wrap {
    display: flex;
    min-height: calc(100vh - 64px);
}

.dc-auth-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 24px;
    background: #ffffff;
}

.dc-auth-form-inner {
    width: 100%;
    max-width: 440px;
}

.dc-auth-visual-side {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.dc-auth-visual-side img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    mix-blend-mode: overlay;
}

.dc-auth-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,64,161,0.4), transparent);
}

.dc-auth-visual-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 80px;
    color: #ffffff;
}

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

.dc-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 24px 0;
}

.dc-text-primary { color: var(--primary) !important; }
.dc-text-muted { color: var(--outline) !important; }
.dc-text-center { text-align: center; }
.dc-font-bold { font-weight: 700; }
.dc-font-semibold { font-weight: 600; }

/* Stats */
.dc-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #1d4ed8;
    line-height: 1;
}

.dc-stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--outline);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* =========================================================
   RESPONSIVE — TABLET (max-width: 1024px)
   ========================================================= */

@media (max-width: 1024px) {
    .dc-hero__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .dc-hero__title {
        font-size: 38px;
    }

    .dc-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .dc-detail-main {
        grid-template-columns: 1fr;
    }

    .dc-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .dc-auth-visual-side {
        display: none;
    }
}

/* =========================================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ========================================================= */

@media (max-width: 768px) {
    .dc-nav-links,
    .dc-nav-actions .dc-btn-ghost {
        display: none;
    }

    .dc-menu-toggle {
        display: flex;
    }

    .dc-hero {
        padding: 48px 0;
    }

    .dc-hero__title {
        font-size: 30px;
    }

    .dc-hero__subtitle {
        font-size: 16px;
    }

    .dc-section {
        padding: 48px 0;
    }

    .dc-section-header {
        text-align: center;
    }

    .dc-section-header h2 {
        font-size: 24px;
    }

    .dc-grid-3,
    .dc-grid-2 {
        grid-template-columns: 1fr;
    }

    .dc-footer__inner {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .dc-footer__links {
        justify-content: center;
    }

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

    .dc-hero__image-wrap img {
        height: 280px;
    }

    .dc-auth-form-side {
        padding: 48px 24px;
    }

    .dc-pagination {
        gap: 6px;
    }
}

/* =========================================================
   WORDPRESS DEFAULT OVERRIDES
   ========================================================= */

.wp-block-group { margin: 0; }
.entry-content img { max-width: 100%; }
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
