/*
Theme Name: GD Goenka Toddler House
Author: GD Goenka Toddler House
Description: Custom theme for GD Goenka Toddler House.
Version: 1.0
*/

/* --- GLOBAL TYPOGRAPHY & VARIABLES --- */
:root {
    --heading-font: 'Fredoka', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --primary-red: #E3242B;
    --primary-green: #34A853;
    --coral: #FF8F79;
    --dark: #1b3260;
    --text-color: #555555;
    --bg-main: #fcfcfc;
}

/* Global Typography Override for Entire Website */
body, 
p, 
a, 
li, 
.elementor-text-editor, .elementor-icon-box-description, 
.elementor-widget-text-editor,
.text-muted,
label,
input,
textarea {
    font-family: var(--body-font) !important;
}

h1, h2, h3, h4, h5, h6, 
.elementor-heading-title, .elementor-widget-icon-box .elementor-icon-box-title,
.font-heading {
    font-family: var(--heading-font) !important;
    font-weight: 600;
}

/* Ensure FontAwesome/Icons are preserved */
i.fa, i.fas, i.fab, i.far, i.fa-solid, i.fa-brands, i.fa-regular, span.elementor-icon i {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}


/* --- ABOUT US EXACT DESIGN --- */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600&family=Poppins:wght@400;500;600;700;800&display=swap');

.gd-exact-page {
    
    color: #4a4a4a;
    overflow-x: hidden;
}

.gd-exact-page p {
    
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #555 !important;
    margin-bottom: 20px !important;
}

.gd-exact-page h1, .gd-exact-page h2, .gd-exact-page h3, .gd-exact-page h4 {
    
    margin: 0 !important;
}

.gd-exact-page .elementor-container {
    max-width: 1100px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    z-index: 2 !important;
}
.gd-exact-page .elementor-column {
    width: 50% !important;
    padding: 20px !important;
}
@media(max-width:768px) {
    .gd-exact-page .elementor-container { flex-direction: column !important; }
    .gd-exact-page .elementor-column { width: 100% !important; }
}

.gd-sec-hero {
    position: relative;
    padding: 80px 0 100px 0 !important;
    background: #ffffff !important;
}
.gd-sec-hero::before {
    content: ''; position: absolute; right: 0; top: 0; width: 42%; height: 100%;
    background: #fbf5ec; border-bottom-left-radius: 200px; z-index: 0;
}
.gd-sec-alt { background: #fdfaf5 !important; position: relative; }
.gd-sec-norm { background: #ffffff !important; position: relative; }
.gd-sec-alt, .gd-sec-norm { padding: 80px 0 !important; }

.gd-img-wrap { position: relative; display: block; text-align: center; }
.gd-img-wrap img { object-fit: cover !important; box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important; width: 100% !important; height: auto !important; max-width: 480px !important; }
.gd-hero-img img { aspect-ratio: 4/5 !important; border-radius: 250px 250px 20px 20px !important; }
.gd-pill-left img { aspect-ratio: 4/3 !important; border-radius: 120px 120px 120px 20px !important; }
.gd-pill-right img { aspect-ratio: 4/3 !important; border-radius: 120px 120px 20px 120px !important; }

.gd-t-sub { font-size: 13px !important; font-weight: 600 !important; letter-spacing: 3px !important; color: #1b3260 !important; text-transform: uppercase !important; position: relative !important; padding-top: 15px !important; margin-bottom: 20px !important; display: inline-block !important; }
.gd-t-sub::before { content: ''; position: absolute; top: 0; left: 0; width: 40px; height: 2px; background: #e3242b; }
.gd-t-h1-blue { font-size: 55px !important; font-weight: 800 !important; color: #1b3260 !important; line-height: 1.1 !important; }
.gd-t-h1-red { font-size: 55px !important; font-weight: 800 !important; color: #e3242b !important; line-height: 1.1 !important; margin-bottom: 20px !important; }

.gd-t-h2-blue { font-size: 28px !important; font-weight: 800 !important; color: #1b3260 !important; line-height: 1.2 !important; margin-top: 30px !important; }
.gd-t-h2-red { font-size: 28px !important; font-weight: 800 !important; color: #e3242b !important; line-height: 1.2 !important; margin-bottom: 15px !important; }

.gd-loc { font-size: 18px !important; font-weight: 600 !important; color: #1b3260 !important; margin-bottom: 20px !important; }
.gd-loc i { color: #e3242b !important; margin-right: 8px !important; }

.gd-float-text { position: absolute; top: 20px; right: -40px; transform: rotate(8deg); font-family: 'Caveat', cursive !important; font-size: 32px !important; color: #1b3260 !important; line-height: 1.1 !important; z-index: 5; text-align:center;}
.gd-float-text span { color: #e3242b !important; font-size: 28px !important; }
.gd-float-text-bottom { position: absolute; bottom: 20px; right: 0; transform: rotate(-10deg); font-family: 'Caveat', cursive !important; font-size: 32px !important; color: #1b3260 !important; z-index: 5; font-weight:bold;}

.gd-sec-icon { position: absolute; top: -20px; left: -20px; width: 60px; height: 60px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 20px rgba(0,0,0,0.08); font-size: 26px; border: 2px solid #fdf5ec; z-index: 10; }

.gd-icon-grid { display: flex !important; gap: 10px !important; margin-top: 30px !important; flex-wrap: nowrap !important; }
.gd-icon-box { text-align: center; flex: 1; }
.gd-icon-circle { width: 55px; height: 55px; border-radius: 50%; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.gd-icon-box span { font-size: 11px !important; font-weight: 600 !important; color: #1b3260 !important; line-height: 1.2 !important; display: block; }
.gd-ic-1 { background: #fee8eb; color: #e3242b; }
.gd-ic-2 { background: #fceee3; color: #e87c2b; }
.gd-ic-3 { background: #e4f1f8; color: #2b81e8; }
.gd-ic-4 { background: #e6f5ea; color: #2ea34a; }
.gd-ic-5 { background: #efebf7; color: #744cc1; }

.gd-svg-leaf { position: absolute; width: 60px; z-index: 5; opacity: 0.8; }



/* Elementor specific targeting */
.gd-t-sub .elementor-heading-title { font-size: 13px !important; font-weight: 600 !important; letter-spacing: 3px !important; color: #1b3260 !important; text-transform: uppercase !important; }
.gd-t-h1-blue .elementor-heading-title { font-size: 55px !important; font-weight: 800 !important; color: #1b3260 !important; line-height: 1.1 !important; }
.gd-t-h1-red .elementor-heading-title { font-size: 55px !important; font-weight: 800 !important; color: #e3242b !important; line-height: 1.1 !important; }
.gd-t-h2-blue .elementor-heading-title { font-size: 28px !important; font-weight: 800 !important; color: #1b3260 !important; line-height: 1.2 !important; }
.gd-t-h2-red .elementor-heading-title { font-size: 28px !important; font-weight: 800 !important; color: #e3242b !important; line-height: 1.2 !important; }
.gd-loc .elementor-heading-title { font-size: 18px !important; font-weight: 600 !important; color: #1b3260 !important; }
.gd-exact-page .elementor-text-editor {  font-size: 15px !important; line-height: 1.6 !important; color: #555 !important; }


/* --- Programmes Page --- */
.gd-prog-hero {
    background-color: #f29759 !important;
    position: relative;
    padding: 100px 0 150px 0 !important;
    overflow: hidden;
}
.gd-prog-hero-title .elementor-heading-title {
    font-size: 65px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.1 !important;
    text-align: center;
    margin-bottom: 10px !important;
}
.gd-prog-breadcrumb {
    text-align: center;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    
}
.gd-prog-breadcrumb a { color: #ffffff !important; text-decoration: none; }
.gd-prog-breadcrumb i { font-size: 12px; margin: 0 8px; }

.gd-float-el { position: absolute; z-index: 5; }
.gd-float-plane { top: 10%; left: 5%; width: 250px; opacity: 0.6; }
.gd-float-balloon { top: 5%; right: 10%; width: 70px; }
.gd-float-cloud { top: 15%; right: 25%; width: 90px; opacity: 0.8; }

.gd-prog-grid-sec {
    background-color: #f7f7f7 !important;
    padding: 40px 0 100px 0 !important;
    position: relative;
}
.gd-prog-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    justify-content: flex-start !important;
    position: relative;
    z-index: 10;
}
.gd-prog-card {
    background: #f8f9fa;
    padding: 15px;
    width: calc(33.333% - 20px) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: none;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}
.gd-prog-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}
.gd-prog-card-img {
    width: 100%;
    height: 420px !important;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}
.gd-prog-card-body {
    padding: 20px 0 10px 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.gd-prog-card-title {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #4a637d !important;
    margin-bottom: 15px !important;
    
}
.gd-prog-card-text {
    font-size: 14px !important;
    color: #777 !important;
    line-height: 1.8 !important;
    margin-bottom: 25px !important;
    
    border-left: 4px solid #f39c59;
    padding-left: 15px;
}

.gd-prog-card-age {
    margin-top: auto;
    font-size: 15px !important;
    
    padding-top: 15px;
}
.gd-prog-card-age-label { color: #f49861; font-weight: 600; }
.gd-prog-card-age-val { color: #4a637d; font-weight: 600; margin-left: 8px; }


/* Modal Styles */
.gd-prog-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gd-prog-modal-overlay.active { display: flex; opacity: 1; }
.gd-prog-modal-box {
    background: #ffffff;
    width: 90%; max-width: 650px;
    border-radius: 15px;
    padding: 30px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.gd-prog-modal-overlay.active .gd-prog-modal-box { transform: translateY(0); }
.gd-prog-modal-close {
    position: absolute;
    top: 15px; right: 20px;
    background: #f4f4f4;
    border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}

/* Gallery Styles */
.gd-gallery-container {
    column-count: 3;
    column-gap: 15px;
    padding: 20px 0;
}
.gd-gallery-item {
    break-inside: avoid;
    margin-bottom: 15px;
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.gd-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}
.gd-gallery-item:hover img {
    transform: scale(1.05);
}
.gd-gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(227, 36, 43, 0.7); /* Theme Red */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gd-gallery-item:hover .gd-gallery-overlay {
    opacity: 1;
}
.gd-gallery-overlay i {
    color: #fff;
    font-size: 30px;
}
@media (max-width: 992px) {
    .gd-gallery-container { column-count: 2; }
}
@media (max-width: 576px) {
    .gd-gallery-container { column-count: 1; }
}

/* Lightbox Styles */
.gd-lightbox-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gd-lightbox-overlay.show {
    opacity: 1;
}
.gd-lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    object-fit: contain;
}
.gd-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}
.gd-lightbox-close:hover {
    color: #e3242b;
}

.gd-prog-modal-close:hover { background: #e3242b; color: #fff; }

.gd-modal-img {
    width: 80%;
    height: 550px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}
.gd-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.gd-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #435a82;
    margin: 0;
    
}
.gd-modal-age {
    font-size: 15px;
    
    color: #f49861;
    font-weight: 600;
    background: #fff5ef;
    padding: 5px 15px;
    border-radius: 20px;
}
.gd-modal-content {
    
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}
.gd-modal-content p {
    margin-bottom: 15px;
}
.gd-prog-full-content { display: none; }
.gd-prog-card { cursor: pointer; }
.gd-prog-card::after { display: none; }

.gd-mascot-left { position: absolute; left: -200px; width: 150px; z-index: 5; }
.gd-mascot-1 { top: 0px; }
.gd-mascot-2 { top: 380px; }
.gd-mascot-3 { top: 760px; }

@media (max-width: 992px) {
    .gd-prog-card { width: calc(50% - 15px) !important; }
    .gd-mascot-left { display: none; }
}
@media (max-width: 768px) {
    .gd-prog-card { width: 100% !important; }
}

/* --- Programmes Page Specific Styles --- */
.gd-page-prog-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 100px !important;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 60px;
}
.gd-page-prog-card {
    width: 100% !important;
    padding: 60px 50px;
    border-radius: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    box-shadow: none;
    position: relative;
    transition: transform 0.3s ease;
}
.gd-page-prog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Background Colors */
.gd-page-prog-card:nth-child(1) { background-color: #eaddd1 !important; }
.gd-page-prog-card:nth-child(even) { background-color: #fbdce2 !important; }
.gd-page-prog-card:nth-child(odd):not(:nth-child(1)) { background-color: #acc99f !important; }

/* Alternating Layout */
.gd-page-prog-card:nth-child(odd) { flex-direction: row; }
.gd-page-prog-card:nth-child(even) { flex-direction: row-reverse; }

/* Images */
.gd-page-prog-card .gd-prog-card-img {
    flex: 0 0 45%;
    width: 45%;
    height: 350px !important;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: none;
    position: relative;
    z-index: 2;
}
.gd-page-prog-card:nth-child(odd) .gd-prog-card-img {
    margin-left: -100px;
    margin-right: 50px;
}
.gd-page-prog-card:nth-child(even) .gd-prog-card-img {
    margin-right: -100px;
    margin-left: 50px;
}

/* Text Content */
.gd-page-prog-card .gd-prog-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    text-align: left;
}
.gd-page-prog-card .gd-prog-card-title {
    font-size: 24px !important;
    font-family: var(--heading-font) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #333 !important;
    margin-bottom: 5px !important;
}
.gd-page-prog-card .gd-prog-card-age {
    padding-top: 0;
    margin-bottom: 25px;
}
.gd-page-prog-card .gd-prog-card-age-val {
    font-family: var(--heading-font);
    font-style: italic;
    font-size: 15px;
    color: #444;
    font-weight: 500;
    margin-left: 0;
}
.gd-page-prog-card .gd-prog-card-text {
    
    font-size: 14px !important;
    color: #333 !important;
    line-height: 1.8 !important;
    border-left: none;
    padding-left: 0;
    margin-bottom: 30px !important;
}

/* More Button */
.gd-page-prog-more {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1b5a5;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: background 0.3s;
}
.gd-page-prog-card:nth-child(even) .gd-page-prog-more { color: #e8aeb7; }
.gd-page-prog-card:nth-child(odd):not(:nth-child(1)) .gd-page-prog-more { color: #8bb37a; }
.gd-page-prog-card:hover .gd-page-prog-more {
    background: #333;
    color: #fff !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .gd-page-prog-grid { gap: 60px !important; padding-top: 40px; }
    .gd-page-prog-card {
        flex-direction: column !important;
        padding: 40px 30px;
        border-radius: 30px;
    }
    .gd-page-prog-card .gd-prog-card-img {
        width: 100%;
        margin: 0 !important;
        margin-bottom: 30px !important;
        height: 250px !important;
    }
    .gd-page-prog-card .gd-prog-card-body {
        text-align: center;
        align-items: center;
    }
}



