/*
Theme Name: Hippocrates Academy Theme
Theme URI: https://hippocratesacademy.nl
Author: Hippocrates Academy
Author URI: https://hippocratesacademy.nl
Description: A modern, flexible WordPress theme built for Elementor page builder. Features full Elementor support, WooCommerce compatibility, and responsive design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
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: hippocrates-academy
Tags: elementor, page-builder, responsive, custom-layout, education, academy, woocommerce

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

/* ============================================
   Global Styles
   ============================================ */

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

:root {
    --primary-color: #E30613;
    --secondary-color: #F5F1F2;
    --accent-color: #E30613;
    --text-color: #F5F1F2;
    --text-light: rgba(245, 241, 242, 0.6);
    --background-color: #1D1C1C;
    --background-secondary: #2B2A2A;
    --border-color: rgba(245, 241, 242, 0.12);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.12);
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* ============================================
   Layout
   ============================================ */

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

.site-content {
    padding: 40px 0;
}

/* ============================================
   Header - Light Design
   ============================================ */

/* Sticky header offset, used by every sticky element and anchor jump below it.
   --hipp-header-h = rendered height of .site-header (83px; 79px at ≤768px).
   The WP admin bar (logged-in users) is fixed above it, except at ≤600px where WP makes it scroll away. */
html {
    --hipp-header-h: 83px;
    --hipp-adminbar: var(--wp-admin--admin-bar--height, 0px);
    --hipp-sticky-top: calc(var(--hipp-adminbar) + var(--hipp-header-h));
    scroll-padding-top: calc(var(--hipp-sticky-top) + 16px);
}
@media (max-width: 768px) { html { --hipp-header-h: 79px; } }
@media (max-width: 600px) { html { --hipp-adminbar: 0px; } }

.site-header {
    background-color: #EFE8EA;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky; /* also the anchor for the mobile menu panel */
    top: var(--hipp-adminbar);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    gap: 40px;
}

/* Logo Styling */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.site-logo:hover {
    opacity: 0.8;
}

.logo-icon {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-weight: 600;
}

.logo-hippocrates {
    color: #E30613;
    font-size: 20px;
}

.logo-academy {
    color: #2C2C2C;
    font-size: 20px;
    font-weight: 400;
}

/* ============================================
   Navigation
   ============================================ */

.main-navigation {
    flex: 1;
    min-width: 0;
}

.site-branding,
.header-actions {
    flex-shrink: 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    color: #2C2C2C;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: #E30613;
}

/* Dropdowns: the live "hoofd" menu has child items (e.g. Online nascholing › Mijn account) */
.main-navigation .primary-menu > li {
    position: relative;
    white-space: nowrap;
}

.main-navigation .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
}

.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: -14px;
    z-index: 50;
    display: none;
    flex-direction: column;
    gap: 0;
    min-width: 200px;
    padding: 8px 0;
    background: #F6F0F2;
    border: 1px solid #D5CBCE;
    border-radius: 6px;
    box-shadow: 0 12px 32px -12px rgba(29, 28, 28, .25);
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
    display: flex;
}

.main-navigation .sub-menu a {
    display: block;
    text-align: left;
    padding: 8px 14px;
    font-size: 14px;
}

/* Header Call-to-Action Buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login {
    color: #2C2C2C;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-login:hover {
    color: #2C2C2C; /* keep: global a:hover would turn it red */
    border-color: rgba(0, 0, 0, 0.25);
    background: #F9F9F9;
}

.btn-signup {
    white-space: nowrap;
    color: #FFFFFF;
    background: #E30613;
    border: 1px solid #E30613;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-signup:hover {
    color: #FFFFFF; /* keep: global a:hover would turn it red on red */
    background: #C60511;
    border-color: #C60511;
}

/* Header Responsive */
@media (max-width: 992px) {
    .header-inner {
        gap: 20px;
    }
    
    .main-navigation ul {
        gap: 20px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .btn-login,
    .btn-signup {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* ---- Mobile menu (js/hipp-nav.js): hamburger + fold-out panel below the bar ---- */
.menu-toggle,
.mobile-menu-actions {
    display: none;
}

@media (max-width: 1100px) {
    .header-inner { gap: 12px; }
    .site-branding { margin-right: auto; }
    .header-actions { order: 2; }

    .menu-toggle {
        order: 3;
        display: inline-flex; align-items: center; justify-content: center;
        flex-shrink: 0; width: 42px; height: 42px; margin: 0; padding: 0;
        background: #fff; border: 1px solid rgba(0, 0, 0, .15); border-radius: 6px; cursor: pointer;
    }
    .menu-toggle:hover { border-color: rgba(0, 0, 0, .3); }
    .menu-toggle-bars,
    .menu-toggle-bars::before,
    .menu-toggle-bars::after {
        display: block; width: 18px; height: 2px; border-radius: 2px; background: #1D1C1C;
        transition: transform .2s ease, background .2s ease;
    }
    .menu-toggle-bars { position: relative; }
    .menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
    .menu-toggle-bars::before { top: -6px; }
    .menu-toggle-bars::after { top: 6px; }
    .site-header.is-open .menu-toggle-bars { background: transparent; }
    .site-header.is-open .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
    .site-header.is-open .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

    /* The panel */
    .main-navigation {
        display: none;
        position: absolute; left: 0; right: 0; top: 100%;
        max-height: calc(100vh - var(--hipp-sticky-top, 77px)); overflow-y: auto;
        padding: 8px 24px 24px; background: #EFE8EA;
        border-bottom: 1px solid rgba(0, 0, 0, .08); box-shadow: 0 18px 36px -18px rgba(29, 28, 28, .3);
    }
    .site-header.is-open .main-navigation { display: block; }
    .main-navigation ul,
    .main-navigation .primary-menu { display: block; }
    .main-navigation .primary-menu > li { white-space: normal; border-bottom: 1px solid rgba(0, 0, 0, .07); }
    .main-navigation a { display: block; padding: 14px 0; font-size: 16px; }
    .main-navigation .menu-item-has-children > a::after { display: none; }
    .main-navigation .current-menu-item > a, .main-navigation .current_page_item > a { color: #E30613; }
    /* Sub-items always visible, indented */
    .main-navigation .sub-menu {
        position: static; display: block; min-width: 0; margin: -6px 0 10px; padding: 0 0 0 14px;
        background: none; border: 0; border-left: 2px solid #E30613; border-radius: 0; box-shadow: none;
    }
    .main-navigation .sub-menu a { padding: 8px 0; font-size: 15px; color: #3E3D3D; }
    .main-navigation, .main-navigation ul, .main-navigation a { text-align: left; }
    .main-navigation .primary-menu { justify-content: flex-start; }
    /* Buttons in the panel keep their own look (the menu link colour/padding would override them) */
    .main-navigation .mobile-menu-actions a { padding: 12px 16px; font-size: 15px; text-align: center; border-radius: 6px; }
    .main-navigation .mobile-menu-actions .btn-signup { color: #FFFFFF; }
    .main-navigation .mobile-menu-actions .btn-login { color: #2C2C2C; }
    .main-navigation li:hover > .sub-menu, .main-navigation li:focus-within > .sub-menu { display: block; }
}

@media (max-width: 768px) {
    .logo-hippocrates,
    .logo-academy {
        font-size: 18px;
    }
}

/* Phones: only logo + Inschrijven + menu button in the bar; Inloggen moves into the panel */
@media (max-width: 600px) {
    .header-container { padding: 0 16px; }
    .header-actions .btn-login { display: none; }
    .header-actions .btn-signup { padding: 9px 14px; font-size: 14px; }
    .mobile-menu-actions { display: flex; gap: 10px; margin-top: 18px; }
    .mobile-menu-actions a { flex: 1; text-align: center; padding: 12px 16px; }
    .main-navigation { padding: 8px 16px 20px; }
}

@media (max-width: 480px) {
    .header-inner { gap: 8px; }
    .logo-icon { width: 30px; height: 30px; }
    .site-logo { gap: 8px; }
    .logo-hippocrates, .logo-academy { font-size: 16px; }
    .logo-text { gap: 4px; }
    .header-actions .btn-signup { padding: 9px 12px; font-size: 13px; }
}

/* Narrow phones (≤400px, e.g. iPhone 390/393): logo + Inschrijven + menu button don't fit side by side,
   so Inschrijven lives in the fold-out menu only (prominent at its bottom) */
@media (max-width: 400px) {
    .header-actions { display: none; }
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    background-color: var(--background-secondary);
    color: var(--text-color);
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}

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

.site-footer a {
    color: var(--secondary-color);
}

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

/* ============================================
   Elementor Compatibility
   ============================================ */

.elementor-page .site-content {
    padding: 0;
}

/* Elementor content pages (elementor/build-*.php) sit on the light "paper" colour, not the dark body */
body.elementor-page:not(.home) {
    background-color: #F6F0F2;
}

.elementor-page .container {
    max-width: 100%;
    padding: 0;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .header-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* ============================================
   WordPress Core
   ============================================ */

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

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

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ============================================
   Hippocrates Academy Custom Styles
   ============================================ */

/* Buttons */
.btn,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background-color: #B8050E;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
}

.btn-secondary {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Cards */
.card,
.wp-block-group {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 24px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Red accent bar */
.accent-bar {
    width: 3px;
    height: 36px;
    background-color: var(--primary-color);
    border-radius: 2px;
    margin-right: 14px;
}

/* Hero section */
.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    opacity: 0.9;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    padding: 10px 16px;
    border-radius: 4px;
    width: 100%;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

/* Blog posts */
.post-thumbnail {
    margin-bottom: 1.5rem;
    border-radius: 6px;
    overflow: hidden;
}

.entry-meta {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.entry-meta span {
    margin-right: 1rem;
}

/* Pagination */
.pagination,
.nav-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 40px 0;
}

.page-numbers,
.nav-links a {
    padding: 8px 16px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--secondary-color);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.nav-links a:hover,
.page-numbers.current {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

/* Responsive adjustments for dark theme */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* ===============================================
   Footer Styles - Hippocrates Design
   =============================================== */

.hippocrates-footer {
    background: var(--background-dark);
    color: var(--text-primary);
}

/* Footer Main Section */
.footer-main {
    background: #161515;
    padding: 60px 20px 40px;
}

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

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column {
    min-width: 0; /* Prevent grid blowout */
}

/* Footer Logo & Tagline */
.footer-logo {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.4;
}

.footer-tagline {
    color: var(--text-primary);
    opacity: 0.5;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Footer Headings */
.footer-heading {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 16px 0;
    text-transform: none;
}

/* Footer Menu */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu a {
    color: var(--text-primary);
    opacity: 0.7;
    text-decoration: none;
    font-size: 14px;
    line-height: 2;
    transition: opacity 0.2s ease;
}

.footer-menu a:hover {
    opacity: 1;
}

/* Footer Contact */
.footer-contact {
    color: var(--text-primary);
    opacity: 0.7;
    font-size: 14px;
    line-height: 1.8;
}

.footer-contact p {
    margin: 0 0 12px 0;
}

.footer-contact a {
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-contact a:hover {
    opacity: 1;
}

/* Footer Bottom Section */
.footer-bottom {
    background: #111010;
    padding: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright p {
    color: var(--text-primary);
    opacity: 0.4;
    font-size: 13px;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--text-primary);
    opacity: 0.4;
    text-decoration: none;
    font-size: 13px;
    transition: opacity 0.2s ease;
}

.footer-legal a:hover {
    opacity: 0.7;
}

/* Footer Responsive */
@media (max-width: 992px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
}

@media (max-width: 576px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-main {
        padding: 40px 20px 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

/* Elementor footer template (hipp_elementor_footer_html()): its link lists are plain <ul>s in a
   text widget, which would otherwise get bullets. */
.hipp-elementor-footer ul { list-style: none; }
/* One typeface in the footer, also for text pasted in from elsewhere (Word, mail, "Vooraf
   opgemaakt"/<pre> paragraphs, which would otherwise show in a typewriter font). */
.hipp-elementor-footer,
.hipp-elementor-footer :is(p, li, a, span, div, pre, strong, em, b, i, h1, h2, h3, h4, h5, h6) {
    font-family: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
}
.hipp-elementor-footer pre { margin: 0; padding: 0; border: 0; background: none; white-space: normal; overflow: visible; }
