/*
 * MIA polish layer (2026-11-30). Loaded last from site_ust.php, so it wins over the template CSS
 * without editing theme-css.css. Remove the <link> to undo everything here.
 *
 * Colour rule: brand teal #00aaaf stays for the logo, large shapes and teal-on-navy accents.
 * Anything that is text, or has text on it, uses the darker teal of the same hue (#048084:
 * 4.7:1 with white), because #00aaaf is only 2.8:1 either way.
 */
:root {
    --mia-teal: #00aaaf;
    --mia-teal-metin: #048084;
    --mia-teal-koyu: #076b6e;
    --mia-lacivert: #282f3b;
    --primary-color-one: var(--mia-teal-metin);
    --menu-active-color: var(--mia-teal-metin);
}

::selection { background: #b6edef; color: var(--mia-lacivert); }

/* ---------- Teal text ---------- */
.before_title,
.team-section .title_sections p,
.turkaz_color,
.footer_copy_content a,
.navbar_outer .navbar-nav > li.active > a,
.navbar_outer .navbar-nav > li.current-menu-item > a {
    color: var(--mia-teal-metin) !important;
}
/* Pale grey sections (#f0f3f9): one step darker to stay above 4.5:1 */
.bg_light_1 .before_title,
.bg_light_1 .title_sections p.turkaz_color,
.team-section .title_sections p { color: var(--mia-teal-koyu) !important; }
/* On the navy stats card the light brand teal reads well (5.9:1): keep it */
.bg_dark_2 .turkaz_color { color: var(--mia-teal) !important; }
.bg_dark_2 .before_title.color_white { color: #fff !important; }

/* ---------- One button style ---------- */
.theme_btn_all .theme-btn,
.theme-btn.one,
.theme-btn.three,
input.wpcf7-submit,
#accept-cookies {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: .5em;
    min-height: 48px;
    padding: 12px 28px !important;
    border: 0 !important;
    border-radius: 10px 0 !important;
    background: var(--mia-teal-metin) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background-color .2s ease-out;
}
.theme_btn_all .theme-btn:hover,
.theme-btn.one:hover,
.theme-btn.three:hover,
input.wpcf7-submit:hover,
#accept-cookies:hover { background: var(--mia-teal-koyu) !important; color: #fff !important; }
/* the template's sliding hover overlay would cover the new colour */
.theme-btn.one::before, .theme-btn.one::after,
.theme-btn.three::before, .theme-btn.three::after { display: none !important; }

/* Icon-only teal controls: same darker teal so the white icon passes 3:1 */
.contact-toggler, .sch_btn, .video_box .lightbox-image, .close-modal, .close_btn_mini {
    background-color: var(--mia-teal-metin) !important;
}

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--mia-teal-metin) !important;
    outline-offset: 2px;
}
.header_top a:focus-visible, .header_top button:focus-visible { outline-color: #fff !important; }

/* ---------- Top bar ---------- */
.header_top { background: var(--mia-teal-metin) !important; }
.header_top .contact_info_two li.single a,
.header_top .search-toggler {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; min-height: 40px;
}

/* ---------- Event calendar ---------- */
.mia-takvim-not {
    margin: 0 auto 8px;
    text-align: center;
    color: #4a5260;
    font-size: 17px;
    line-height: 1.6;
}
.mia-takvim-not--sayfa { margin: 32px 0 0; text-align: left; }
.mia-takvim-not a { color: var(--mia-teal-metin); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pricing_plan_box .tags.is-gecmis { background: #5b6472 !important; color: #fff !important; }
.pricing_plan_box .title_s .mia-sehir {
    margin: 0 0 4px; font-size: 30px; line-height: 1.15; font-weight: 700;
}
.pricing_plan_box .title_s .mia-ulke {
    margin: 0; font-size: 14px; line-height: 1.4; font-weight: 600; letter-spacing: .04em;
}

/* ---------- KVKK text: Word review markers ([MİŞ1]...) and their comment bodies ---------- */
.msocomanchor, .msocomoff, .msocomtxt, hr.msocomoff { display: none !important; }

/* ---------- Cookie bar ---------- */
#cookie-policy-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
    background: var(--mia-lacivert);
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 -4px 16px rgb(0 0 0 / .12);
}
#cookie-policy-bar[hidden] { display: none; }
#cookie-policy-bar p { margin: 0; color: #e5e7eb; }
#cookie-policy-bar a { color: #8cdee1; text-decoration: underline; text-underline-offset: 2px; }
#accept-cookies { min-height: 40px; padding: 8px 22px !important; margin-left: 12px; vertical-align: middle; }

/* ---------- Phones ---------- */
@media (max-width: 767px) {
    .header_top { padding: 0 !important; }
    .header_top .contact_info_two { padding-top: 0 !important; }
    .header_top .contact_info_two li.single { padding: 0 4px !important; }
    .navbar_outer .header_logo_box img.logo_default,
    .navbar_outer .header_logo_box img.logo__sticky { width: 124px !important; height: auto !important; }

    /* the template's section spacers are sized for desktop */
    .pd_top_80, .pd_top_90 { padding-top: 48px !important; }
    .pd_bottom_80, .pd_bottom_70 { padding-bottom: 48px !important; }
    .about-section .title_sections .title { font-size: 30px !important; line-height: 1.25 !important; }

    #cookie-policy-bar { text-align: left; }
    #accept-cookies { display: flex !important; width: 100%; margin: 10px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    .animate_up { animation: none !important; }
}

/* =====================================================================
 * Layout touch-ups (2026-11-30, second pass). Same layout and content;
 * only uneven boxes, misalignments and gaps are corrected.
 * ===================================================================== */

/* Hero → "Akademik ve Bilimsel Platform": the slider already ends in white space */
.slider + .about-section > .pd_top_80:first-child { padding-top: 24px !important; }

/* Buttons sat 8px right of the text column they belong to */
.about-section .theme_btn_all .theme-btn { margin-left: -8px; }

/* Section kicker: keep the brand spelling (Turkish uppercasing turned it into "MİACADEMY") */
.title_all_box .before_title { text-transform: none !important; }

/* "MIA takipçisi olun": the grey band stopped halfway down the form card; keep the block white */
.contact-section.bg_light_1 { background: #fff !important; }

/* Form fields: placeholders looked like filled-in answers */
.wpcf7-form-control::placeholder, input::placeholder, textarea::placeholder { color: #6b7280 !important; opacity: 1; }
.wpcf7-form-control.wpcf7-text, .wpcf7-form-control.wpcf7-textarea { color: var(--mia-lacivert) !important; }
input[type="checkbox"] { accent-color: var(--mia-teal-metin); }

/* Event cards: dividers level across the row, button lined up with the text */
.pricing_plan_box.type_one .pricing_plan_box_inner { display: flex; flex-direction: column; }
.pricing_plan_box.type_one .lower_content { flex: 1 1 auto; }
.pricing_plan_box.type_one .get_start_button {
    position: static !important; margin: 28px 0 0 !important; text-align: left !important;
    align-self: flex-start;
}

/* Mialife check list: was 13px next to 17px body text */
.content-section .nav_link { font-size: 15px; line-height: 1.55; color: #4a4e56; }

/* Board cards: names take one or two lines, keep the specialty lines level */
.team_box.style_four .content_box h2 {
    min-height: 60px; min-height: 2lh;
    display: flex; align-items: flex-end; justify-content: center;
}

/* Footer: a little air between the logo and the address */
.footer_area .footer_logo { margin-bottom: 12px; }

/* Past events list: posters filled the box unevenly and lost their top edge */
.contact_box_content.style_one .nomobile > .row > div:last-child { display: flex; }
.contact_box_content.style_one .nomobile > .row > div:last-child a { display: flex; width: 100%; }
.contact_box_content.style_one .nomobile > .row > div:last-child img {
    width: 100%; height: 100%; object-fit: cover; object-position: top center;
}

@media (max-width: 767px) {
    /* event cards: no desktop-height gap between the text and the button */
    .pricing_plan_box.type_one .pricing_plan_box_inner { min-height: 0 !important; }
    .pricing_plan_box.type_one .lower_content br,
    .footer_area .contnet p br { display: inline !important; }

    /* membership call-to-action: phone-sized type, button under the text */
    .service-icon-section .title_sections h2 { font-size: 26px !important; line-height: 1.3 !important; }
    .service-icon-section p.font_20 { font-size: 17px !important; line-height: 1.6 !important; }
    .service-icon-section .theme_btn_all { text-align: left !important; }
}
