
:root {
    --brand-pink: #ff1493;
    --brand-pink-dark: #d90073;
    --bg-soft: #fff7fb;
    /* unified subtle background */
    --text-dark: #1f1f21;
    --base-font-size: 17px;
    /* Increased from browser default 16px for better readability */
}

html {
    font-size: var(--base-font-size);
}

@media (min-width: 1024px) {
    :root {
        --base-font-size: 18px;
    }
}

body,
* {
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--bg-soft);
    color: var(--text-dark);
}

/* Doctrines Banner */
.doctrine-banner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(115deg, #ff1493 0%, #ff2fa0 45%, #ff58b2 100%);
    padding: clamp(1.75rem, 3.2vw, 2.5rem) clamp(1.75rem, 4vw, 3rem);
    color: #fff;
    box-shadow: 0 10px 28px -8px rgba(255, 20, 147, 0.32), 0 3px 10px -2px rgba(0, 0, 0, 0.16);
    isolation: isolate;
    min-height: 260px;
}

.doctrine-banner::before,
.doctrine-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 25%, rgba(255, 255, 255, 0.55) 0, transparent 60%),
        radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.35) 0, transparent 55%);
    mix-blend-mode: overlay;
    opacity: .55;
    pointer-events: none;
}

.doctrine-banner::after {
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.25), transparent 40%),
        linear-gradient(300deg, rgba(255, 255, 255, 0.18), transparent 55%);
    opacity: .35;
}

.doctrine-content {
    flex: 1 1 420px;
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.doctrine-title {
    font-size: clamp(1.85rem, 3.2vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 .75rem;
}

.doctrine-sub {
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 1.1rem;
    opacity: .9;
}

.doctrine-text {
    font-size: .9rem;
    line-height: 1.4;
    max-width: 42ch;
    opacity: .95;
}

.doctrine-text--compact {
    font-weight: 600;
    letter-spacing: .5px;
}

.doctrine-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: .5rem;
}

.doctrine-btn-primary,
.doctrine-btn-alt {
    position: relative;
    z-index: 2;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .02em;
    padding: .85rem 1.6rem;
    border-radius: 999px;
    text-decoration: none;
    transition: .25s ease;
}

.doctrine-btn-primary {
    background: #fff;
    color: #ff1493;
    box-shadow: 0 4px 14px -4px rgba(255, 255, 255, .9), 0 2px 4px -1px rgba(0, 0, 0, .25);
}

.doctrine-btn-primary:hover {
    background: #ffe7f4;
}

.doctrine-btn-alt {
    border: 1.5px solid rgba(255, 255, 255, .7);
    color: #fff;
    backdrop-filter: blur(2px);
}

.doctrine-btn-alt:hover {
    background: rgba(255, 255, 255, .12);
}

.doctrine-illustration {
    flex: 1 1 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
}

.illustration-svg {
    width: 100%;
    height: auto;
    max-width: 380px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .25));
    opacity: .9;
}

@media (max-width: 900px) {
    .doctrine-banner {
        padding: 2.2rem 2rem 3rem;
    }

    .doctrine-illustration {
        order: -1;
        margin-bottom: 1.25rem;
    }

    .illustration-svg {
        max-width: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .doctrine-banner *,
    .doctrine-banner::before,
    .doctrine-banner::after {
        transition: none !important;
        animation: none !important;
    }
}

/* Improve paragraph readability globally (Tailwind utilities can still override) */
p {
    line-height: 1.55;
}

/* Scalable typographic ramp adjustments */
h1,
.text-5xl,
.text-4xl {
    letter-spacing: -0.5px;
}

h2,
.text-3xl {
    letter-spacing: -0.25px;
}

/* Ensure card, list and metadata text not too small */
.text-xs {
    font-size: 0.8rem !important;
}

[class*="text-[11px]"] {
    font-size: 0.75rem !important;
}

[class*="text-[10px]"] {
    font-size: 0.72rem !important;
}

/* Upgrade base small descriptive text for readability */
.text-sm {
    font-size: 0.925rem !important;
    line-height: 1.55;
}

[class*="text-[12px]"] {
    font-size: 0.8rem !important;
}

/* Buttons & interactive elements */
button,
a.button-like {
    font-weight: 600;
}

/* Card titles */
article h3,
.card-title {
    font-size: 1rem;
    line-height: 1.35;
}

/* Provide a helper class for metadata grouping to keep consistent size */
.meta,
.metadata,
.meta-inline {
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Increase line-height inside list heavy sections */
ul li {
    line-height: 1.5;
}

/* Accessibility: minimum tap target for small action chips */
[class*="px-2"][class*="py-1"] {
    min-height: 1.75rem;
    display: inline-flex;
    align-items: center;
}

/* Slight contrast improvement for gray text */
.text-gray-600 {
    color: #4b5563 !important;
}

.text-gray-500 {
    color: #5f6b78 !important;
}

.text-gray-400 {
    color: #6b7785 !important;
}

/* Optional utility for slightly larger body copy when user toggles (applied inline via JS) */
.font-scale-large {
    --base-font-size: 19px;
}

/* Google Translate cleanup */
#google_translate_element {
    line-height: 0;
}

.goog-te-gadget {
    font-size: 0 !important;
}

.goog-te-gadget span {
    display: none !important;
}

iframe.goog-te-menu-frame {
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .25);
    border-radius: 8px;
}

select.goog-te-combo {
    font-size: 12px !important;
    padding: 4px 6px;
    border: 1px solid var(--brand-pink);
    border-radius: 4px;
    background: white;
    color: #444;
}

/* Utility to hide default banner that sometimes flashes */
body .goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Hero slider */
.hero-slider {
    position: relative;
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide[data-active="true"] {
    opacity: 1;
    z-index: 1;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    padding: 0;
    display: block;
}

.hero-dots button[aria-current="true"] {
    background: var(--brand-pink);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.hero-dots button:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
