:root {
    /* Pastel Pink Theme Colors */
    --pink-ref: #ffb6c9;
    --rose-700: #8f3556;
    --rose-600: #b44b6f;
    --rose-500: #d35a8a;
    
    /* Background Colors */
    --bg-page: #ffe1e1;
    --bg-soft: #fff6fa00;
    --bg-card: #ffe4e4;
    
    /* Text Colors */
    --text: #3b2430;
    --text-strong: #000000;
    --text-weak: #ffffff;
    --text-muted: #6b4b59;
    
    /* UI Elements */
    --border: rgba(180, 75, 111, 0.25);
    --shadow: 0 12px 30px rgba(204, 109, 79, 0.30);
    --link: #b44b6f;
    --link-hover: #3f63b4;
    --accent: #ff6fa8;
    --accent-strong: #e84d8f;

    /* Button palette (pastel blue) */
    --btn-ink: #2f3a55;
    --btn-ink-on-primary: #ffffff;
    --btn-blue-700: #3f63b4;
    --btn-blue-600: #5c7fcb00;
    --btn-blue-400: #93b2ee;
    --btn-red-600: #f19393;
    --btn-red-400: #e67070;
    
    /* Legacy/Secondary Colors */
    --color-primary: #19675A;
    --color-accent: #EF8E4E;
    --color-ink: #222;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    --radius-lg: 12px;
    --transition-speed: 0.3s;

    /* Adjustable min height for the homepage hero section */
    --home-hero-min-height: 970px;

    /* Age Tabs: fixed media height (keeps section size stable) */
    --age-tab-media-height: 380px;

    /* Blog cards: consistent size knobs */
    --blog-card-min-height: 360px;
    --blog-card-media-height: 200px;

    /* Global font */
    --font-base: 'PastelColors', 'Nunito', Arial, sans-serif;
}

@font-face {
    font-family: 'PastelColors';
    src: url('../fonts/FriendlySans-8OxvB.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: var(--font-base);
    color: var(--text);
    line-height: 1.6;
    background-color: var(--bg-page);
    background-image: url('../img/arkaplanvecocuk1-08.png');
    background-repeat: repeat;
    background-position: center top;
    background-size: 1820px auto;
}

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

/* Instagram posts (homepage) - real Instagram embeds */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    margin-top: 18px;
    align-items: start;
}

@media (max-width: 640px) {
    .instagram-grid {
        grid-template-columns: 1fr;
    }
}

.instagram-embed {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
    /* Crops the Instagram embed (iframe) to a fixed max height */
    max-height: var(--ig-embed-max-height, 480px);
}

.instagram-embed .instagram-media {
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.instagram-embed iframe {
    width: 100% !important;
    max-width: 100% !important;
}

/* Optional patterned background (apply to a section/div, not the whole page) */
.nf-pattern-bg {
    --pattern-size: 96px;
    --pattern-c1: rgba(255, 182, 201, 0.30);
    --pattern-c2: rgba(63, 99, 180, 0.28);
    --_pattern-g:
        var(--pattern-c2) 4% 14%,
        var(--pattern-c1) 14% 24%,
        var(--pattern-c2) 22% 34%,
        var(--pattern-c1) 34% 44%,
        var(--pattern-c2) 44% 56%,
        var(--pattern-c1) 56% 66%,
        var(--pattern-c2) 66% 76%,
        var(--pattern-c1) 76% 86%,
        var(--pattern-c2) 86% 96%;
    position: relative;
    isolation: isolate;
}

/* Optional dots image pattern (use alongside, not instead of, nf-pattern-bg) */
.nf-pattern-bg-dots {
    --dots-image: url('../img/arkaplanvecocuk1-02.png');
    --dots-size: 520px;
    --dots-opacity: 0.22;
    position: relative;
    isolation: isolate;
}

.nf-pattern-bg-dots::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: var(--dots-image);
    background-repeat: repeat;
    background-position: center;
    background-size: var(--dots-size) auto;
    opacity: var(--dots-opacity);
}

.nf-pattern-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(100% 100% at 100% 0, var(--pattern-c1) 4%, var(--_pattern-g), #0002 96%, #0000),
        radial-gradient(100% 100% at 0 100%, #0000, #0002 4%, var(--_pattern-g), var(--pattern-c1) 96%)
            var(--pattern-c1);
    background-size: var(--pattern-size) var(--pattern-size);
    opacity: 0.18;
}

/* Lift the main content above the pattern (keeps decorative-leaf behind content) */
.nf-pattern-bg .container,
.nf-pattern-bg .inner,
.nf-pattern-bg-dots .container,
.nf-pattern-bg-dots .inner {
    position: relative;
    z-index: 1;
}

@media (max-width: 736px) {
    .nf-pattern-bg {
        --pattern-size: 72px;
    }

    .nf-pattern-bg-dots {
        --dots-size: 420px;
        --dots-opacity: 0.18;
    }
}

strong, b {
    color: var(--text-strong);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-strong);
    font-family: var(--font-base);
}

a {
    color: var(--link);
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

hr {
    border: none;
    border-bottom: 1px solid var(--border);
    margin: 2em 0;
}

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

/* From Uiverse.io by eslam-hany */ 
.test-card {
  position: relative;
  width: 220px;
  height: 320px;
  background: mediumturquoise;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  font-weight: bold;
  border-radius: 15px;
  cursor: pointer;
}

.test-card::before,
.test-card::after {
  position: absolute;
  content: "";
  width: 20%;
  height: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  font-weight: bold;
  background-color: lightblue;
  transition: all 0.5s;
}

.test-card::before {
  top: 0;
  right: 0;
  border-radius: 0 15px 0 100%;
}

.test-card::after {
  bottom: 0;
  left: 0;
  border-radius: 0 100%  0 15px;
}

.test-card:hover::before,
.test-card:hover:after {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  transition: all 0.5s;
}

.test-card:hover:after {
    content: "";
}

/* Section card utilities (opt-in)
   Usage: <section class="nf-section-card"> ... </section>
   Add nf-section-card--clip if you want backgrounds to be clipped by radius.
*/
.nf-section-card {
    border-radius: 20px;
    margin: 15px;
}

.nf-section-card--clip {
    overflow: hidden;
}

@media (max-width: 767px) {
    .nf-section-card {
        border-radius: 16px;
        margin: 10px;
    }
}

/* Simple responsive column utilities (opt-in) */
.nf-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.nf-col {
    flex: 1 1 0;
    min-width: 0;
}

.nf-col-12 {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .nf-col-md-4 {
        flex: 0 0 auto;
        width: calc(33.333% - (var(--spacing-md) * 2 / 3));
    }

    .nf-col-md-6 {
        flex: 0 0 auto;
        width: calc(50% - (var(--spacing-md) / 2));
    }
}

@media (min-width: 1024px) {
    .nf-col-lg-4 {
        flex: 0 0 auto;
        width: calc(33.333% - (var(--spacing-md) * 2 / 3));
    }
}

/* Header */
#header {
    transition: background-color 0.2s ease;
    background: linear-gradient(90deg, rgb(255 237 210 / 1), rgb(238 136 136 / 1)) !important;
    box-shadow: 0 10px 30px rgba(180, 75, 111, 0.25) !important;
    height: 3em !important;
    left: 0;
    line-height: 3em !important;
    position: fixed !important;
    top: 0;
    width: 100% !important;
    z-index: 10000;
}

#header h1 {
    transition: opacity 0.2s ease;
    height: inherit;
    left: 1.25em;
    line-height: inherit;
    position: absolute;
    top: 0;
    margin: 0;
    font-size: 1em;
}

#header h1 a {
    border: 0 !important;
    border-bottom: none !important;
    display: block;
    height: inherit;
    line-height: inherit;
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(43, 24, 34, 0.35);
    text-decoration: none !important;
    font-weight: 800;
    letter-spacing: 0.225em;
    text-transform: uppercase;
}

@media screen and (max-width: 736px) {
    #header h1 a {
        font-size: 0.8em;
    }
}

#header nav {
    height: inherit;
    line-height: inherit;
    position: absolute;
    right: 0;
    top: 0;
}

#header.alt {
    background: linear-gradient(90deg, rgb(255 237 210 / 1), rgb(238 136 136 / 1));
}

#header.alt h1 {
    pointer-events: none;
    opacity: 0;
}

.nav-item a {
    text-decoration: none;
    color: var(--color-ink);
    font-weight: 600;
    transition: color var(--transition-speed);
}

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

/* Sections */
body {
    padding-top: 3em; /* Add space for fixed header */
}

section {
    padding: var(--spacing-xl) 0;
}

@media (max-width: 736px) {
    section {
        padding: 44px 0;
    }

    .container {
        width: 92%;
        padding: 0 14px;
    }

    .intro p {
        font-size: 16px;
    }
}

/* Decorative “hanging” images (reusable) */
.decorative-anchor {
    position: relative;
    overflow: visible;
}

.decorative-anchor .container,
.decorative-anchor .inner {
    position: relative;
    z-index: 1;
}

.decorative-leaf {
    position: absolute;
    width: 100%;
    height: auto;
    max-width: 200px;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.decorative-leaf.top-left {
    top: -355px;
    left: 0;
}

.decorative-leaf.bottom-right {
    bottom: -75px;
    right: 0;
}

/* @media (max-width: 767px) {
    .decorative-leaf.top-left {
        max-width: 90px;
        top: -180px;
        left: -20px;
    }

    .decorative-leaf.bottom-right {
        max-width: 100px;
        bottom: 0;
        right: -20px;
    }
} */

.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    text-align: center;
    padding: 80px 0;
}

/* Homepage hero section min height (adjust via --home-hero-min-height) */
#hero-section {
    min-height: max(var(--home-hero-min-height), var(--hero-bg-min-height, 0px));
    display: flex;
    align-items: stretch;
    padding: 0; /* move padding to container so CTA can sit at bottom */
}

#hero-section > .container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 80px 20px;
}

#hero-section #hero-cta {
    margin-top: auto;
    align-self: center;
}

@media (max-width: 768px) {
    #hero-section > .container {
        padding: 60px 14px;
    }
}

.hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: var(--spacing-md);
    color: var(--text-strong);
}

.hero p {
    font-size: clamp(16px, 2vw, 20px);
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
  padding: 1rem 2rem;
  font-weight: 700;
  background: rgb(255, 255, 255);
    color: var(--btn-ink);
  cursor: pointer;
    text-decoration: none;
  border-radius: 0.5rem;
    border-bottom: 2px solid var(--btn-blue-600);
    border-right: 2px solid var(--btn-blue-600);
    border-top: 2px solid rgba(255, 255, 255, 0.95);
    border-left: 2px solid rgba(255, 255, 255, 0.95);
  transition-duration: 1s;
  transition-property: border-top, border-left, border-bottom, border-right,
    box-shadow;
}

.btn:hover {
    color: var(--btn-ink);
    border-top: 2px solid var(--btn-blue-600);
    border-left: 2px solid var(--btn-blue-600);
    border-bottom: 2px solid var(--btn-blue-400);
    border-right: 2px solid var(--btn-blue-400);
    box-shadow: rgba(92, 127, 203, 0.35) 5px 5px,
        rgba(92, 127, 203, 0.22) 10px 10px,
        rgba(92, 127, 203, 0.14) 15px 15px;
}

.btn-red {
    display: inline-block;
  padding: 1rem 2rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0);
    color: #ffffff;
  cursor: pointer;
    text-decoration: none;
  border-radius: 0.5rem;
    border-bottom: 2px solid var(--btn-red-600);
    border-right: 2px solid var(--btn-red-600);
    border-top: 2px solid var(--btn-red-400);
    border-left: 2px solid var(--btn-red-400);
  transition-duration: 1s;
  transition-property: border-top, border-left, border-bottom, border-right,
    box-shadow;
}

.btn-red:hover {
    color: #ffffff;
    border-top: 2px solid var(--btn-red-600);
    border-left: 2px solid var(--btn-red-600);
    border-bottom: 2px solid var(--btn-red-400);
    border-right: 2px solid var(--btn-red-400);
    box-shadow: rgba(226, 27, 27, 0.35) 5px 5px,
        rgba(226, 27, 27, 0.22) 10px 10px,
        rgba(226, 27, 27, 0.14) 15px 15px;
}

.btn-red:active {
    background-color: var(--btn-red-600) !important;
}



.btn.primary,
.button.primary {
    background-color: var(--btn-blue-600) !important;
    color: var(--btn-ink-on-primary) !important;
    box-shadow: 0 4px 15px rgba(92, 127, 203, 0.28);
    border-radius: 0.5rem;
    font-weight: 700;
    border-bottom: 2px solid var(--btn-blue-600);
    border-right: 2px solid var(--btn-blue-600);
    border-top: 2px solid rgba(255, 255, 255, 0.95);
    border-left: 2px solid rgba(255, 255, 255, 0.95);
    transition-duration: 1s;
    transition-property: border-top, border-left, border-bottom, border-right, box-shadow;
}

.btn.primary:hover,
.button.primary:hover {
    background-color: var(--btn-blue-400) !important;
    border-top: 2px solid var(--btn-blue-600);
    border-left: 2px solid var(--btn-blue-600);
    border-bottom: 2px solid var(--btn-blue-400);
    border-right: 2px solid var(--btn-blue-400);
    box-shadow: rgba(92, 127, 203, 0.35) 5px 5px,
        rgba(92, 127, 203, 0.22) 10px 10px,
        rgba(92, 127, 203, 0.14) 15px 15px;
}

.btn.primary:active,
.button.primary:active {
    background-color: var(--btn-blue-700) !important;
}

.intro {
    background: var(--bg-card);
    text-align: center;
}

.intro .intro-title {
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
    margin: 0 0 14px;
    color: var(--text-strong);
}

/* Intro section background image (single-purpose utility) */
.intro-bg-arkaplan-cocuk2 {
    background-image: url('../img/arkaplanvecocuk1-02.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* Generic background utility (alias for the same asset) */
.bg-arkaplan-cocuk2 {
    background-image: url('../img/arkaplanvecocuk1-02.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.bg-arkaplan-cocuk5 {
    background-image: url('../img/arkaplanvecocuk1-05.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.intro-bg-arkaplan-cocuk5 {
    background-image: url('../img/arkaplanvecocuk1-05.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.intro p {
    max-width: 860px;
    margin: 0 auto 24px;
    font-size: 18px;
    color: var(--text);
}

/* Age Tabs */
.age-tabs {
    background: var(--bg-soft);
}

/* Age Tabs section background image (single-purpose utility) */
.age-tabs-bg-arkaplan-cocuk5 {
    background-image: url('../img/arkaplanvecocuk1-05.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.section-title {
    font-size: clamp(26px, 3vw, 34px);
    text-align: center;
    margin-bottom: var(--spacing-sm);
    color: var(--text-strong);
}

.age-tabs > .container > p {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--text);
}

.age-tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0 30px;
}

/* Age tablist background image (single-purpose utility) */
.age-tablist-bg-arkaplan-cocuk5 {
    background-image: url('../img/arkaplanvecocuk1-05.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 18px;
    padding: 18px 14px;
}

.feature-bg-arkaplan-cocuk2 {
    background-image: url('../img/arkaplanvecocuk1-02.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}


/* About page (moved from about.php inline CSS; scoped to avoid global side-effects) */
body.about-page {
    color: #000000;
    line-height: 1.7;

    /* About decorative leaves positioning knobs */
    --about-leaf-top-left-top: -125px;
    --about-leaf-top-left-left: 0px;
    --about-leaf-top-left-top-mobile: -100px;
    --about-leaf-top-left-left-mobile: -20px;

    --about-leaf-bottom-right-top: -125px;
    --about-leaf-bottom-right-left: 0px;
    --about-leaf-bottom-right-top-mobile: -100px;
    --about-leaf-bottom-right-left-mobile: -20px;

    /* About hero sitter controls (desktop defaults) */
    --about-sitter-width: clamp(560px, 32vw, 560px);
    --about-sitter-max-height: 1020px;
    --about-sitter-translate-x: 0px;
    --about-sitter-translate-y: 0px;
}

body.about-page h1,
body.about-page h2,
body.about-page h3,
body.about-page h4,
body.about-page h5,
body.about-page h6 {
    font-family: var(--font-base);
    color: #000000;
}

body.about-page .about-hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    overflow: hidden;
    margin: 15px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

body.about-page .about-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(34,34,34,0.45) 0%, rgba(34,34,34,0.45) 100%);
}

body.about-page .about-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1200px, 92%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 4vw, 72px);
    padding: 90px 20px;
}

body.about-page .hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    padding: 0;
    text-align: left;
    color: #FDFBF9;
}

body.about-page .about-hero-sitter-wrap {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

body.about-page .about-hero-sitter {
    width: var(--about-sitter-width);
    height: auto;
    max-height: var(--about-sitter-max-height);
    object-fit: contain;
    transform: translate(var(--about-sitter-translate-x), var(--about-sitter-translate-y));
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
}

body.about-page .hero-content h1 {
    font-size: clamp(28px, 5vw, 54px);
    line-height: 1.1em;
    margin-bottom: 20px;
    color: #FDFBF9;
}
body.about-page .hero-content p {
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.5em;
    color: #FDFBF9;
}

body.about-page .content-section {
    background-color: #fff6ed6c;
    padding: 75px 20px;
    position: relative;
}

body.about-page .decorative-leaf {
    position: absolute;
    max-width: 150px;
}

body.about-page .decorative-leaf.top-left {
    top: var(--about-leaf-top-left-top);
    left: var(--about-leaf-top-left-left);
}

body.about-page .decorative-leaf.bottom-right {
    bottom: var(--about-leaf-bottom-right-top);
    right: var(--about-leaf-bottom-right-left);
    max-width: 200px;
}

body.about-page .section-header {
    max-width: 900px;
    margin: 0 auto 75px;
    text-align: center;
}

body.about-page .section-header h2 {
    font-size: clamp(36px, 5vw, 48px);
    line-height: 1.1em;
    margin-bottom: 20px;
}

body.about-page .divider {
    height: 5px;
    background-color: #19675A;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px;
}

body.about-page .values-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 20px;
}

body.about-page .value-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: center;
}

body.about-page .value-item.reverse {
    direction: ltr;
}

body.about-page .value-content h2 {
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: 15px;
}

body.about-page .value-content p {
    font-size: 16px;
    line-height: 1.7;
}

body.about-page .value-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
}

@media (min-width: 768px) {
    body.about-page .values-grid {
        grid-template-columns: 1fr;
    }

    body.about-page .value-item {
        grid-template-columns: 1fr 1fr;
    }

    body.about-page .value-item.reverse {
        direction: rtl;
    }

    body.about-page .value-item.reverse > * {
        direction: ltr;
    }
}

@media (max-width: 767px) {
    body.about-page .about-hero-section {
        margin: 10px;
    }

    body.about-page .about-hero-inner {
        flex-direction: column;
        align-items: center;
        padding: 70px 14px;
    }

    body.about-page .hero-content {
        max-width: 760px;
        text-align: center;
    }

    body.about-page .about-hero-sitter {
        --about-sitter-width: clamp(200px, 60vw, 320px);
        --about-sitter-max-height: none;
        --about-sitter-translate-x: 0px;
        --about-sitter-translate-y: 0px;

        width: var(--about-sitter-width);
        max-height: var(--about-sitter-max-height);
    }

    body.about-page .content-section {
        padding: 50px 20px;
    }

    body.about-page .decorative-leaf.top-left {
        max-width: 90px;
        top: var(--about-leaf-top-left-top-mobile);
        left: var(--about-leaf-top-left-left-mobile);
    }

    body.about-page .decorative-leaf.bottom-right {
        max-width: 100px;
        bottom: var(--about-leaf-bottom-right-top-mobile);
        right: var(--about-leaf-bottom-right-left-mobile);
    }
}

.tablink {
    border: 2px solid transparent;
    background: #f7f4f1;
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
    min-width: 150px;
    font-weight: 700;
    color: var(--color-ink);
    transition: all var(--transition-speed);
}

.tablink:hover {
    background: #fff2ea;
}

.tablink.active {
    border-color: var(--rose-600);
    color: var(--rose-700);
    background: rgba(255, 182, 201, 0.25);
}

/* If Age Tabs buttons also use `.btn`, give them the button look (opt-in) */
.tablink.btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1.05;

    padding: 0.9rem 1.4rem;
    min-width: 150px;

    background: #ffffff9f;
    color: var(--btn-ink);
    border-radius: 0.5rem;

    border-bottom: 2px solid var(--btn-red-600);
    border-right: 2px solid var(--btn-red-600);
    border-top: 2px solid rgba(255, 255, 255, 0.95);
    border-left: 2px solid rgba(255, 255, 255, 0.95);

    transition-duration: 1s;
    transition-property: border-top, border-left, border-bottom, border-right, box-shadow, background-color, color;
}

.tablink.btn small {
    font-weight: 600;
    opacity: 0.85;
}

.tablink.btn:hover {
    background: #ffffff;
    color: var(--btn-ink);
    border-top: 2px solid var(--btn-red-600);
    border-left: 2px solid var(--btn-red-600);
    border-bottom: 2px solid var(--btn-red-400);
    border-right: 2px solid var(--btn-red-400);
    box-shadow: rgba(226, 27, 27, 0.35) 5px 5px,
        rgba(226, 27, 27, 0.22) 10px 10px,
        rgba(226, 27, 27, 0.14) 15px 15px;
}

.tablink.btn.active {
    background: rgba(255, 182, 201, 0.20);
    color: var(--rose-700);
    border-top: 2px solid var(--rose-600);
    border-left: 2px solid var(--rose-600);
    border-bottom: 2px solid rgba(255, 182, 201, 0.55);
    border-right: 2px solid rgba(255, 182, 201, 0.55);
    box-shadow: rgba(180, 75, 111, 0.25) 5px 5px,
        rgba(180, 75, 111, 0.16) 10px 10px,
        rgba(180, 75, 111, 0.10) 15px 15px;
}

.tablink.btn:focus-visible {
    outline: 3px solid rgba(180, 75, 111, 0.35);
    outline-offset: 3px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    align-items: center;
}

.tab-grid > div {
    overflow: visible;
}

/* Only the media column needs clipping */
.tab-grid > div:first-child {
    overflow: hidden;
}

.age-tabs .tab-grid img {
    width: 100%;
    height: var(--age-tab-media-height);
    max-height: none;
    object-fit: contain;
    object-position: center;
    border-radius: var(--radius-lg);
    display: block;
    background: rgba(255, 255, 255, 0.35);
}

@media (max-width: 736px) {
    :root {
        --age-tab-media-height: 260px;
    }
}

.tab-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.tab-card h5 {
    color: var(--rose-600);
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.tab-card h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: var(--text-strong);
}

.tab-card p {
    color: var(--text);
    margin: 0 0 12px;
}

.tab-card p:last-of-type {
    margin-bottom: 10px;
}

.tab-card .btn {
    margin-top: 6px;
}

/* Split Sections */
.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    align-items: center;
}

.split.reverse {
    direction: rtl;
}

.split.reverse > * {
    direction: ltr;
}

.split img {
    width: 100%;
    border-radius: var(--radius-lg);
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: var(--spacing-lg);
}

.testimonial {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    min-height: 440px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.testimonial::before,
.testimonial::after {
    position: absolute;
    content: '';
    width: 20%;
    height: 20%;
    display: block;
    background-color: rgba(255, 182, 201, 0.35);
    transition: all 0.5s;
    z-index: 0;
}

.testimonial::before {
    top: 0;
    right: 0;
    border-radius: 0 var(--radius-lg) 0 100%;
}

.testimonial::after {
    bottom: 0;
    left: 0;
    border-radius: 0 100% 0 var(--radius-lg);
    background-color: rgba(255, 182, 201, 0.35);
}

.testimonial:hover::before,
.testimonial:hover::after {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    /* Both overlays fully overlap at this point, so halve each alpha
       to keep the combined visual strength ~0.35 instead of ~0.70 */
    background-color: rgba(255, 182, 201, 0.175);
}

.testimonial > * {
    position: relative;
    z-index: 1;
}

.testimonial p {
    margin-bottom: 15px;
    color: var(--text);
}

.testimonial .testimonial-meta {
    margin-top: auto;
    padding-top: 12px;
}

.testimonial .testimonial-meta strong,
.testimonial .testimonial-meta span {
    display: block;
}

.testimonial .testimonial-meta span {
    color: var(--text-muted);
}

.testimonial em {
    color: var(--text-muted);
}

.testimonial strong {
    color: var(--text-strong);
}

/* Logos */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    align-items: center;
    margin-top: var(--spacing-lg);
}

.logo-grid img {
    width: 100%;
    max-width: 200px;
    height: auto;
    opacity: 0.7;
    transition: opacity var(--transition-speed);
}

.logo-grid img:hover {
    opacity: 1;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: var(--spacing-lg);
}

/* Blog page: loading + filters + pagination */
@keyframes nf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.blog-loading {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.blog-loading__inner {
    text-align: center;
}

.blog-loading__spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: nf-spin 1s linear infinite;
    margin: 0 auto;
}

.blog-loading__text {
    margin-top: 10px;
    color: var(--color-primary);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination button {
    padding: 10px 15px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.pagination button:hover {
    background: #135548;
}

.pagination button.active {
    background: #2E4A93;
}

.pagination button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.blog-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.blog-filters button {
    padding: 8px 20px;
    background: #f5f5f5;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.blog-filters button:hover,
.blog-filters button.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.blog-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition-speed);
    border: 1px solid var(--border);
    min-height: var(--blog-card-min-height);
    display: flex;
    flex-direction: column;
    position: relative;
}

.blog-card-hit {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.blog-card-hit:focus-visible {
    outline: 3px solid rgba(63, 99, 180, 0.55);
    outline-offset: -3px;
}

.blog-card img,
.blog-card .card-body {
    position: relative;
    z-index: 2;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(180, 75, 111, 0.18);
}

.blog-card img {
    width: 100%;
    height: var(--blog-card-media-height);
    flex: 1 0 auto;
    object-fit: contain;
    object-position: center;
    display: block;
    background: rgba(255, 255, 255, 0.35);
}

.blog-card .card-body {
    padding: 12px 14px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
}

.blog-card h3 {
    margin: 0 0 6px 0;
    font-size: 17px;
    color: var(--text-strong);
}

.blog-card a {
    color: var(--text-strong);
    text-decoration: none;
}

.blog-card a:hover {
    color: var(--link-hover);
}

.blog-card small {
    color: var(--text-muted);
    margin-top: auto;
}

/* Blog post detail page */
.blog-post-header {
    padding: 100px 0 40px;
    text-align: center;
}

.blog-post-header h1 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 20px;
    line-height: 1.3;
}

.blog-post-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    color: #666;
    font-size: 14px;
}

.blog-post-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-post-categories span {
    background: var(--color-accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
}

.blog-post-image {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.blog-post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px 20px 80px;
    font-size: 18px;
    line-height: 1.8;
    background-image: url('../img/bg-paint-1.png');
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.blog-post-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
}

.blog-post-content h3 {
    font-size: 24px;
    margin: 30px 0 15px;
}

.blog-post-content p {
    margin-bottom: 20px;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 20px 0 20px 30px;
}

.blog-post-content li {
    margin-bottom: 10px;
}

.back-to-blog {
    text-align: center;
    margin: 40px 0;
}

.blog-post-placeholder {
    background: #f9f9f9;
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    color: #666;
    font-style: italic;
}

@media (max-width: 736px) {
    :root {
        --blog-card-min-height: 320px;
        --blog-card-media-height: 180px;
    }
}

/* Footer */
.site-footer {
    background: rgb(241 155 121 / 1);
    color: #fff;
    padding: 50px 0;
    position: relative;
}


/* Footer logo reveal effect */
#footer .logo {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    z-index: 9999;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#footer .logo.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

#footer .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.footer-grid h3,
.footer-grid h4 {
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.social-badge {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.20);
}

.social-links a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .split.reverse {
        direction: ltr;
    }
}
/* Preload Animation Control */
body.is-preload *, body.is-preload *:before, body.is-preload *:after {
    -moz-animation: none !important;
    -webkit-animation: none !important;
    -ms-animation: none !important;
    animation: none !important;
    -moz-transition: none !important;
    -webkit-transition: none !important;
    -ms-transition: none !important;
    transition: none !important;
}

/* Exception: keep page loader animation running during preload */
body.is-preload .newtons-cradle__dot:first-child {
    animation: swing var(--uib-speed) linear infinite !important;
}

body.is-preload .newtons-cradle__dot:last-child {
    animation: swing2 var(--uib-speed) linear infinite !important;
}

/* Banner Section */
#banner {
    display: -moz-flex;
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    -moz-flex-direction: column;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -moz-justify-content: center;
    -webkit-justify-content: center;
    -ms-justify-content: center;
    justify-content: center;
    cursor: default;
    height: 100vh;
    min-height: 35em;
    overflow: hidden;
    position: relative;
    text-align: center;
    background: linear-gradient(135deg, rgba(247, 217, 182, 0.95), rgba(195, 35, 35, 0.78));
    color: #fff;
}

#banner .banner-title-wrap {
    position: relative;
    display: inline-block;
}

#banner .banner-sitter {
    position: absolute;
    right: -53em;
    top: -24.25em;
    width: clamp(1000px, 18vw, 1200px);
    height: auto;
    z-index: 3;
    pointer-events: none;
    overflow: visible;
    opacity: 1;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.28));
    transition: filter 1.2s ease 0.95s, opacity 2.5s ease 0.95s, transform 1.2s ease 0.95s;
}

#banner .inner {
    position: relative;
    z-index: 2;
    padding: 0 2em;
}

#banner h2 {
    -moz-transform: scale(1);
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    -moz-transition: -moz-transform 0.55s ease 0.2s, opacity 0.55s ease 0.2s;
    -webkit-transition: -webkit-transform 0.55s ease 0.2s, opacity 0.55s ease 0.2s;
    -ms-transition: -ms-transform 0.55s ease 0.2s, opacity 0.55s ease 0.2s;
    transition: transform 0.55s ease 0.2s, opacity 0.55s ease 0.2s;
    display: inline-block;
    font-size: 3em;
    opacity: 1;
    padding: 0.35em 1em;
    position: relative;
    z-index: 1;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5em 0;
}

#banner h2:before, #banner h2:after {
    -moz-transition: width 0.85s ease;
    -webkit-transition: width 0.85s ease;
    -ms-transition: width 0.85s ease;
    transition: width 0.85s ease;
    -moz-transition-delay: 0.25s;
    -webkit-transition-delay: 0.25s;
    -ms-transition-delay: 0.25s;
    transition-delay: 0.25s;
    background: #fff;
    content: '';
    display: block;
    height: 2px;
    position: absolute;
    width: 100%;
}

#banner h2:before {
    top: 0;
    left: 0;
}

#banner h2:after {
    bottom: 0;
    right: 0;
}

#banner p {
    letter-spacing: 0.225em;
    text-transform: uppercase;
    font-size: 1.1em;
    margin: 0 0 2em 0;
    opacity: 0.9;
    transform: translateY(0);
    transition: transform 0.6s ease 0.35s, opacity 0.6s ease 0.35s;
}

#banner p a {
    color: inherit;
}

#banner .actions {
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.6s ease 0.45s, opacity 0.6s ease 0.45s;
}

#banner .actions.special {
    text-align: center;
}

#banner .actions li {
    display: inline-block;
    margin: 0 0.5em;
}

#banner .button {
    display: inline-block;
    padding: 0.75em 2em;
    background: #fff;
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 0.35em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

#banner .button:hover {
    background: transparent;
    color: #fff;
}

#banner .button.primary {
    background: #fff;
    color: var(--color-primary);
}

#banner .more {
    -moz-transition: -moz-transform 0.75s ease, opacity 0.75s ease;
    -webkit-transition: -webkit-transform 0.75s ease, opacity 0.75s ease;
    -ms-transition: -ms-transform 0.75s ease, opacity 0.75s ease;
    transition: transform 0.75s ease, opacity 0.75s ease;
    -moz-transition-delay: 3.5s;
    -webkit-transition-delay: 3.5s;
    -ms-transition-delay: 3.5s;
    transition-delay: 3.5s;
    -moz-transform: translateY(0);
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    border: none;
    bottom: 0;
    color: inherit;
    font-size: 0.8em;
    height: 8.5em;
    left: 50%;
    letter-spacing: 0.225em;
    margin-left: -8.5em;
    opacity: 1;
    outline: 0;
    padding-left: 0.225em;
    position: absolute;
    text-align: center;
    text-transform: uppercase;
    width: 16em;
    z-index: 1;
    text-decoration: none;
}

#banner .more:after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid #fff;
    margin: 0 auto;
    position: absolute;
    bottom: 4em;
    left: 50%;
    transform: translateX(-50%);
}

#banner:after {
    pointer-events: none;
    -moz-transition: opacity 3s ease-in-out;
    -webkit-transition: opacity 3s ease-in-out;
    -ms-transition: opacity 3s ease-in-out;
    transition: opacity 3s ease-in-out;
    -moz-transition-delay: 1.25s;
    -webkit-transition-delay: 1.25s;
    -ms-transition-delay: 1.25s;
    transition-delay: 1s;
    content: '';
    background: rgba(255, 255, 255, 0.96);
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
}

/* Banner Preload States */
body.is-preload #banner h2 {
    -moz-transform: scale(0.95);
    -webkit-transform: scale(0.95);
    -ms-transform: scale(0.95);
    transform: scale(0.95);
    opacity: 0;
}

body.is-preload #banner .banner-sitter {
    opacity: 0;
    transform: translateY(2rem);
    filter: brightness(0.15) saturate(0) contrast(0.95) drop-shadow(0 14px 22px rgba(0, 0, 0, 0.28));
}

body.is-preload #banner p,
body.is-preload #banner .actions {
    opacity: 0;
    transform: translateY(0.75em);
}

body.is-preload #banner h2:before, body.is-preload #banner h2:after {
    width: 0;
}

body.is-preload #banner .more {
    -moz-transform: translateY(8.5em);
    -webkit-transform: translateY(8.5em);
    -ms-transform: translateY(8.5em);
    transform: translateY(8.5em);
    opacity: 0;
}

body.is-preload #banner:after {
    opacity: 0;
}

/* Banner Responsive */
@media screen and (max-width: 736px) {
    #banner {
        padding: 7em 3em 5em 3em;
        height: auto;
        min-height: 0;
    }

    #banner .banner-sitter {
        right: 50%;
        top: -3.1em;
        width: clamp(120px, 42vw, 200px);
        transform: translateX(55%);
    }

    #banner h2 {
        font-size: 1.75em;
    }

    #banner br {
        display: none;
    }

    #banner .more {
        display: none;
    }
}

body.is-loading {
    overflow: hidden;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 225, 225, 0.86);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity 260ms ease;
}

.page-loader.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Newton's cradle loader */
.newtons-cradle {
 --uib-size: 50px;
 --uib-speed: 1.2s;
 --uib-color: #474554;
 position: relative;
 display: flex;
 align-items: center;
 justify-content: center;
 width: var(--uib-size);
 height: var(--uib-size);
}

.newtons-cradle__dot {
 position: relative;
 display: flex;
 align-items: center;
 height: 100%;
 width: 25%;
 transform-origin: center top;
}

.newtons-cradle__dot::after {
 content: '';
 display: block;
 width: 100%;
 height: 25%;
 border-radius: 50%;
 background-color: var(--uib-color);
}

.newtons-cradle__dot:first-child {
 animation: swing var(--uib-speed) linear infinite;
}

.newtons-cradle__dot:last-child {
 animation: swing2 var(--uib-speed) linear infinite;
}

@keyframes swing {
 0% {
  transform: rotate(0deg);
  animation-timing-function: ease-out;
 }

 25% {
  transform: rotate(70deg);
  animation-timing-function: ease-in;
 }

 50% {
  transform: rotate(0deg);
  animation-timing-function: linear;
 }
}

@keyframes swing2 {
 0% {
  transform: rotate(0deg);
  animation-timing-function: linear;
 }

 50% {
  transform: rotate(0deg);
  animation-timing-function: ease-out;
 }

 75% {
  transform: rotate(-70deg);
  animation-timing-function: ease-in;
 }
}