/* ===================================================
   RESET & BASE STYLES (Normalize + Minimalist setup)
====================================================*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup,
main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    background: #fff;
    color: #1A3154;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img {
    display: block;
    max-width: 100%;
}
a {
    color: #17A390;
    text-decoration: none;
    transition: color 0.2s;
}
a:focus {
    outline: 2px dashed #1A3154;
}
a:hover, a:active {
    color: #1A3154;
}
ul, ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
}
strong, b {
    font-weight: bold;
}

/* ===========================================
   TYPOGRAPHY & HEADINGS
==============================================*/
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    color: #1A3154;
    font-weight: 700;
    line-height: 1.2;
}
h1 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}
h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}
h3 {
    font-size: 1.375rem;
    margin-bottom: 16px;
}
h4, h5, h6 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}
p, li {
    font-size: 1rem;
    color: #344C68;
}
p {
    margin-bottom: 16px;
}

.subheadline {
    color: #344C68;
    font-size: 1.125rem;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    margin-bottom: 28px;
}

/* =================================
   BASE LAYOUTS & CONTAINERS
===================================*/
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}
.text-section {
    align-items: center;
    text-align: center;
}

.section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: none;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F9FAFB;
    padding: 64px 0 52px 0;
    margin-bottom: 60px;
    box-shadow: 0 8px 32px rgba(26,49,84, 0.03);
}
.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #1A3154;
}

/* ====================================
   NAVIGATION & HEADER STYLES
======================================*/
header {
    background: #fff;
    position: relative;
    box-shadow: 0 2px 16px rgba(26,49,84,0.04);
    z-index: 90;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 24px;
}
.logo-link img {
    height: 44px;
    width: auto;
}
nav.main-nav {
    display: flex;
    gap: 32px;
    align-items: center;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 1rem;
}
nav.main-nav a {
    color: #344C68;
    font-weight: 500;
    padding: 7px 3px;
    border-radius: 3px;
    transition: background 0.18s, color 0.18s;
}
nav.main-nav a:hover {
    background: #F8D07A33;
    color: #1A3154;
}
.cta-button {
    display: inline-block;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 1rem;
    background: #17A390;
    color: #fff;
    padding: 12px 28px;
    border: none;
    border-radius: 28px;
    font-weight: 600;
    letter-spacing: .03em;
    box-shadow: 0 2px 8px rgba(26,49,84,0.07);
    transition: background 0.16s, box-shadow 0.16s, transform 0.13s;
    cursor: pointer;
    text-align: center;
    margin-left: 8px;
}
.cta-button:hover, .cta-button:focus {
    background: #1A3154;
    color: #fff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 20px rgba(26,49,84, 0.15);
    outline: none;
}

/* HAMBURGER/MOBILE MENU */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: #1A3154;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.15s;
    margin-left: 12px;
    z-index: 100;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
    background: #F8D07A40;
}
.mobile-menu {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    box-shadow: 0 10px 40px rgba(26,49,84,0.05);
    z-index: 200;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 32px 28px 16px 28px;
    transform: translateX(-100vw);
    pointer-events: none;
    opacity: 0;
    transition: transform 0.36s cubic-bezier(0.77,0,0.18,1), opacity 0.16s;
}
.mobile-menu.open {
    display: flex;
    transform: translateX(0);
    pointer-events: all;
    opacity: 1;
}
.mobile-menu-close {
    font-size: 2.1rem;
    color: #1A3154;
    background: none;
    border: none;
    align-self: flex-end;
    margin-bottom: 28px;
    cursor: pointer;
    transition: background 0.15s;
    padding: 2px 14px;
    border-radius: 6px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
    background: #F8D07A40;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 1.16rem;
}
.mobile-nav a {
    color: #1A3154;
    font-weight: 500;
    padding: 8px 0;
    border-radius: 4px;
    transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
    background: #F8D07A44;
    color: #17A390;
}

/* Hide nav/cta on mobile, show hamburger */
@media (max-width: 991px) {
    nav.main-nav, .cta-button {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
}


/* ============================================
   FLEX PATTERNS & CARD LAYOUTS
==============================================*/
.category-cards,
.feature-grid,
.instructor-cards,
.pricing-tables,
.course-listings,
.testimonials-row,
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
}
.category-cards {
    margin-bottom: 24px;
}
.category-card,
.feature-item,
.plan-card,
.course-card,
.instructor-card,
.stat-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2.5px 12px rgba(26,49,84,0.05);
    padding: 32px 22px 24px 22px;
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    min-width: 180px;
    max-width: 295px;
    transition: box-shadow 0.19s, transform 0.17s;
}
.category-card:hover, .feature-item:hover, .plan-card:hover, .course-card:hover, .instructor-card:hover, .stat-item:hover {
    box-shadow: 0 6px 25px rgba(26,49,84, 0.12);
    transform: translateY(-2px) scale(1.017);
}
.category-card img, .feature-item img, .instructor-card img, .plan-card img, .stat-item img {
    width: 38px;
    height: 38px;
    margin-bottom: 7px;
}
.category-card h3, .feature-item h3, .plan-card h3, .course-card h3, .instructor-card h3, .stat-item h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: #1A3154;
    font-weight: 600;
}
.category-card p, .feature-item p, .plan-card p, .course-card p, .instructor-card p, .stat-item p {
    font-size: 1rem;
    color: #344C68;
}

/* Info Card Container Patterns */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.card {
    margin-bottom: 20px;
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2.5px 12px rgba(26,49,84,0.05);
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: box-shadow 0.18s, transform 0.17s;
}
.card:hover {
    box-shadow: 0 8px 32px rgba(26,49,84, 0.08);
    transform: translateY(-2px) scale(1.025);
}

.content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.text-image-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

/* Testimonial Row & Card */
.testimonials-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.testimonial-card, .faq-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 22px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(26,49,84, 0.07);
    margin-bottom: 20px;
    min-width: 220px;
    flex: 1 1 270px;
    transition: box-shadow 0.18s, transform 0.12s;
}
.testimonial-card:hover {
    box-shadow: 0 8px 28px rgba(26,49,84, 0.10);
    transform: translateY(-2px) scale(1.016);
}
.testimonial-quote {
    font-size: 1.07rem;
    color: #1A3154;
    font-style: italic;
}
.testimonial-meta {
    font-size: 0.98rem;
    color: #344C68;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}
.testimonial-stars {
    color: #F8D07A;
    font-size: 1.13rem;
    letter-spacing: 1px;
}

/* Stats Grid */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: flex-start;
}
.stat-item {
    padding: 32px 26px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(26,49,84,0.04);
    border-radius: 16px;
    flex: 1 1 170px;
    min-width: 140px;
    align-items: center;
    text-align: center;
}
.stat-item h3 {
    font-size: 2rem;
    color: #17A390;
    margin-bottom: 8px;
}
.stat-item p {
    font-size: 1rem;
    color: #344C68;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #1A3154;
    font-weight: 600;
}

/************************
  PRICING TABLES & PLANS
************************/
.pricing-tables {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-evenly;
}
.plan-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 3px 18px rgba(26,49,84,0.07);
    min-width: 210px;
    max-width: 330px;
    padding: 38px 26px 30px 26px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    transition: box-shadow 0.18s, transform 0.13s;
}
.plan-card:hover {
    box-shadow: 0 9px 28px rgba(26,49,84, 0.13);
    transform: translateY(-2px) scale(1.018);
}
.plan-card h3 {
    color: #1A3154;
    margin-bottom: 3px;
    font-size: 1.28rem;
}
.plan-card p strong {
    font-size: 1.32rem;
    color: #17A390;
}
.plan-card ul {
    margin-bottom: 14px;
}
.plan-card ul li {
    margin-bottom: 7px;
}

/*************************
  BUTTONS, LINKS, INTERACTIVE
**************************/
button, .cta-button {
    font-family: inherit;
    box-sizing: border-box;
    cursor: pointer;
}
button:focus, .cta-button:focus {
    outline: 2px solid #F8D07A;
    outline-offset: 2px;
}

/***************************
  FOOTER
****************************/
footer {
    background: #F9FAFB;
    margin-top: 64px;
    border-top: 1px solid #E8EDF3;
    padding: 44px 0 12px 0;
}
.footer-nav {
    display: flex;
    gap: 46px;
    align-items: center;
    margin-bottom: 16px;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 1rem;
}
.footer-nav a {
    color: #1A3154;
    transition: color 0.15s;
}
.footer-nav a:hover {
    color: #17A390;
}
.footer-contact {
    color: #344C68;
    font-size: 0.98rem;
    margin-bottom: 8px;
}
.footer-logo img {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
}
footer p {
    font-size: 0.96rem;
    color: #B5BFCF;
}

/* MAP PLACEHOLDER */
.map-placeholder {
    min-height: 120px;
    background: #F8D07A22;
    border-radius: 12px;
    color: #1A3154;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 18px 0;
    font-style: italic;
    font-size: 1rem;
}

/***************************************
  COOKIE CONSENT BANNER & MODAL
****************************************/
.cookie-banner {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    background: #fff;
    color: #344C68;
    box-shadow: 0 -2px 16px rgba(26,49,84,.09);
    z-index: 500;
    padding: 23px 20px 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: transform 0.28s, opacity 0.18s;
}
.cookie-banner.hide {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}
.cookie-banner .cookie-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.cookie-banner button {
    background: #17A390;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 9px 22px;
    font-size: 1rem;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 500;
    transition: background 0.15s, box-shadow 0.13s, color 0.15s;
    box-shadow: 0 0.5px 7px rgba(26,49,84, .07);
}
.cookie-banner button.accept {
    background: #17A390;
}
.cookie-banner button.reject {
    background: #1A3154;
}
.cookie-banner button.settings {
    background: #F8D07A;
    color: #1A3154;
}
.cookie-banner button:hover, .cookie-banner button:focus {
    background: #1A3154;
    color: #fff;
}
.cookie-banner button.settings:hover, .cookie-banner button.settings:focus {
    background: #17A390;
    color: #fff;
}

/* COOKIE MODAL OVERLAY & MAIN */
.cookie-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(26,49,84,0.20);
    z-index: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.18s;
}
.cookie-modal-overlay.hide {
    opacity: 0;
    pointer-events: none;
}
.cookie-modal {
    background: #fff;
    box-shadow: 0 10px 44px rgba(26,49,84,0.14);
    border-radius: 24px;
    max-width: 420px;
    width: 90vw;
    padding: 34px 26px 26px 26px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: center;
    position: relative;
    animation: fadeInCookieModal 0.34s cubic-bezier(0.54,0.22,0.11,1);
}
@keyframes fadeInCookieModal {
    from { opacity: 0; transform: translateY(38px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal h3 {
    font-size: 1.31rem;
    color: #1A3154;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    margin-bottom: 11px;
}
.cookie-category-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 8px;
}
.cookie-cat {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
}
.cookie-cat label {
    font-weight: 500;
    font-size: 1rem;
    color: #344C68;
}
.cookie-cat input[type=checkbox] {
    accent-color: #17A390;
    width: 18px;
    height: 18px;
}
.cookie-cat.essential label {
    color: #B5BFCF;
    font-style: italic;
}
.cookie-modal-actions {
    display: flex;
    gap: 15px;
    width: 100%;
    justify-content: center;
}
.cookie-modal .close-cookie-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    color: #1A3154;
    font-size: 1.7rem;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    border-radius: 5px;
    padding: 3px 9px;
}
.cookie-modal .close-cookie-modal:hover, .cookie-modal .close-cookie-modal:focus {
    background: #F8D07A44;
}

/************************************
  VALUES, BENEFITS LIST TWEAKS
*************************************/
.values-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
    list-style: none;
    margin-left: 0;
}
.values-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    background: #F9FAFB;
    border-radius: 9px;
    padding: 13px 14px;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.values-list img {
    width: 28px; height: 28px;
}

/***********************************
  UTILITY, RESPONSIVE, MISC
************************************/
@media (max-width: 1199px) {
    .container {
        max-width: 95vw;
        padding: 0 14px;
    }
    .stats-grid,
    .category-cards,
    .feature-grid,
    .instructor-cards,
    .pricing-tables,
    .testimonials-row,
    .faq-list {
        gap: 18px;
    }
}

@media (max-width: 991px) {
    .stats-grid,
    .category-cards,
    .feature-grid,
    .instructor-cards,
    .pricing-tables,
    .testimonials-row,
    .faq-list {
        flex-direction: column;
        gap: 18px;
    }
    .footer-nav {
        flex-direction: column;
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100vw;
        padding: 0 7px;
    }
    .hero {
        padding: 40px 0;
    }
    .section {
        margin-bottom: 36px;
        padding: 28px 6px;
    }
    .stat-item,
    .category-card,
    .feature-item,
    .plan-card,
    .course-card,
    .instructor-card,
    .testimonial-card {
        max-width: 100%;
        min-width: 0;
        padding: 22px 10px;
    }
    h1 {
        font-size: 1.9rem;
    }
    h2 {
        font-size: 1.3rem;
    }
    .text-image-section {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        align-items: center;
    }
    .testimonials-row {
        gap: 14px;
    }
    .cookie-modal {
        padding: 23px 5vw 16px 6vw;
        min-width: 0;
        max-width: 97vw;
    }
}

@media (max-width: 500px) {
    .nav-container {
        padding: 13px 0;
    }
    .hero {
        padding: 28px 0 24px 0;
    }
    h1 {
        font-size: 1.35rem;
        margin-bottom: 14px;
    }
    h2 {
        font-size: 1.1rem;
    }
    .cta-button {
        padding: 10px 17px;
        font-size: 0.93rem;
    }
    .mobile-menu {
        padding: 17px 6vw 10px 9vw;
    }
}

/******************************
 MICROINTERACTIONS/TRANSITIONS
*******************************/
input, button, .cta-button, a {
    transition: background 0.16s, color 0.12s, box-shadow 0.17s, border 0.18s, transform 0.13s;
}

/******************************
 ACCESSIBILITY COLORS & CONTRAST
*******************************/
.testimonial-card {
    background: #fff;
    color: #1A3154;
}
.testimonial-quote, .testimonial-meta {
    color: #1A3154;
}

/*****************************
 Hide visually for accessibility
******************************/
.visually-hidden {
    position: absolute !important;
    margin: -1px; padding: 0; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
    border: 0; white-space: nowrap; pointer-events: none;
}

/*****************************
 MISC: CATEGORY MENU NAV
******************************/
.category-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}
.category-menu a {
    color: #17A390;
    font-weight: 500;
    font-size: 1rem;
    padding: 3px 7px;
    border-radius: 7px;
}
.category-menu a:hover, .category-menu a:focus {
    background: #F8D07A44;
    color: #1A3154;
}

/*********************************************************
   END OF MINIMALIST FLEXBOX CSS FOR ISTRUSEMEN ACADEMY
*********************************************************/
