/* assets/css/style.css - Marrow Pearls Inspired UI Styles */

:root {
    --teal: #087d8d;
    --teal-dark: #055a66;
    --teal-light: #e6f4f6;
    --teal-border: #b2e0e6;
    --navy: #0b1727;
    --ink: #087d8d;
    --muted: #055a66;
    --paper: #ffffff;
    --line: #cbd5e1;
    --gold: #d6a84c;
    --gold-dark: #92400e;
    --shadow: 0 12px 30px rgba(8, 125, 141, 0.12);
    --shadow-sm: 0 2px 8px rgba(8, 125, 141, 0.06);

    --font-heading: "Plus Jakarta Sans", -apple-system, sans-serif;
    --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--teal);
    background-color: #f4fbfb;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* WEBSITE PRELOADER WITH MOTHER & BABY LOGO */
#sitePreloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#sitePreloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--teal);
    box-shadow: 0 10px 30px rgba(8, 125, 141, 0.3);
    animation: pulseLogo 2s infinite ease-in-out;
}

@keyframes pulseLogo {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(8, 125, 141, 0.4); }
    50% { transform: scale(1.06); box-shadow: 0 0 0 18px rgba(8, 125, 141, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(8, 125, 141, 0); }
}

.preloader-progress-bar {
    width: 220px;
    height: 6px;
    background: #e6f4f6;
    border-radius: 3px;
    overflow: hidden;
}

.preloader-progress-fill {
    width: 100%;
    height: 100%;
    background: var(--teal);
    animation: preloaderFill 1.5s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes preloaderFill {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6, .brand-title {
    font-family: var(--font-heading);
    color: var(--teal) !important;
    line-height: 1.25;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p, li, span, label, input, div { color: var(--teal-dark); }
.text-teal { color: var(--teal) !important; }
.text-teal-dark { color: var(--teal-dark) !important; }
.text-muted { color: var(--teal-dark) !important; }

a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

a:hover { color: var(--teal-dark); }

.shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

/* BRAND LOGO */
.brand-logo-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--teal);
    box-shadow: 0 4px 12px rgba(8, 125, 141, 0.25);
    flex-shrink: 0;
}

.brand-title-main {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--teal) !important;
    line-height: 1.15;
}

.brand-sub {
    font-size: 0.78rem;
    color: var(--teal-dark);
    font-weight: 600;
}

/* NAVBAR PILL LINKS */
.nav-link-pill {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--teal) !important;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.nav-link-pill:hover, .nav-link-pill.active {
    color: var(--teal-dark) !important;
    background: var(--teal-light);
}

/* BUTTONS */
.btn-teal, .button {
    background: var(--teal);
    border: 1px solid var(--teal-dark);
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: 700;
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.btn-teal:hover, .button:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
}

/* FULL SIZE IMAGE CAROUSEL SLIDER */
.full-hero-carousel {
    position: relative;
    width: 100%;
    min-height: 480px;
    background: #07111e;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.full-hero-slide, .carousel-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    min-height: 480px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 3.5rem 0;
}

.slide-overlay-dark {
    background: linear-gradient(90deg, rgba(7, 17, 30, 0.95) 0%, rgba(7, 17, 30, 0.82) 55%, rgba(7, 17, 30, 0.5) 100%);
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

.slide-content-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
}

.slide-hero-title {
    color: #ffffff !important;
    font-size: clamp(2.2rem, 4.2vw, 3.8rem);
    line-height: 1.15;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.slide-hero-desc {
    color: #f1f5f9 !important;
    font-size: 1.15rem;
    line-height: 1.65;
    margin-bottom: 1.8rem;
    max-width: 600px;
    font-weight: 500;
}

.carousel-nav {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #5eead4;
    width: 28px;
    border-radius: 10px;
}

/* MARROW PEARLS SIDEBAR CARD STYLES (IMAGE 2 STYLE) */
.marrow-pearl-sidebar-card {
    background: #ffffff;
    border: 1.5px solid var(--teal-border);
    transition: all 0.2s ease;
}

.marrow-pearl-sidebar-card:hover {
    border-color: var(--teal);
    background: var(--teal-light);
    transform: translateX(3px);
}

.marrow-pearl-sidebar-card.active-pearl-card {
    background: var(--teal-light);
    border-color: var(--teal);
    border-left: 4px solid var(--teal) !important;
}

/* MARROW QBANK SUBJECT CARDS */
.marrow-subject-card {
    background: #ffffff;
    border: 1.5px solid var(--teal-border);
    border-radius: 14px;
    padding: 1.4rem;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.marrow-subject-card:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.marrow-subject-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--teal-light);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.marrow-subject-info h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--teal) !important;
    margin-bottom: 3px;
}

.marrow-subject-info span {
    font-size: 0.85rem;
    color: var(--teal-dark) !important;
    font-weight: 700;
}

/* MARROW MCQ SOLVING CARDS */
.marrow-mcq-container {
    background: #ffffff;
    border: 1.5px solid var(--teal-border);
    border-radius: 16px;
    padding: 2.2rem;
    box-shadow: var(--shadow);
}

.marrow-opt-card {
    background: #ffffff;
    border: 2px solid var(--teal-border);
    border-radius: 10px;
    padding: 1.15rem 1.4rem;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--teal) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 6px rgba(8,125,141,0.03);
    min-height: 64px;
}

.marrow-opt-card:hover {
    border-color: var(--teal);
    background: var(--teal-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(8,125,141,0.15);
}

.marrow-opt-card.correct {
    background: #d1fae5 !important;
    border-color: #059669 !important;
    color: #065f46 !important;
    font-weight: 800;
}

.marrow-opt-card.incorrect {
    background: #ffe4e6 !important;
    border-color: #e11d48 !important;
    color: #9f1239 !important;
}

/* PEARL WIDGET */
.pearl-widget {
    background: #ffffff;
    border: 1.5px solid var(--teal-border);
    border-left: 6px solid var(--gold);
    border-radius: 14px;
    padding: 1.8rem;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

/* FLOATING ACTIONS */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #25d366;
    color: #ffffff !important;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 2500;
}

.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--teal);
    color: #ffffff !important;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(8, 125, 141, 0.25);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

/* FOOTER */
.site-footer {
    background: var(--teal-light);
    border-top: 2px solid var(--teal-border);
    color: var(--teal-dark);
    padding: 4rem 0 2rem 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-col h4 {
    color: var(--teal) !important;
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
    font-weight: 800;
}

.footer-col a {
    color: var(--teal-dark) !important;
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.92rem;
    font-weight: 700;
}

.footer-col a:hover {
    color: var(--teal) !important;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid var(--teal-border);
    padding-top: 1.6rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--teal-dark);
    flex-wrap: wrap;
    gap: 10px;
    font-weight: 600;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 991px) {
    .slide-content-grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .full-hero-carousel, .carousel-slides, .full-hero-slide { min-height: auto; }
    .full-hero-slide { padding: 2.5rem 0 3.5rem 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 767px) {
    .shell { width: calc(100% - 24px); }
    .brand-title-main { font-size: 1.05rem; }
    .brand-sub { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}
