/* --- MiYOSMART Brand Styling --- */

/* 1. General Body & Font Styles */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    color: #333333; /* Dark Grey Text */
    background-color: #FFFFFF;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #00529B; /* Primary Blue */
}

h1 { font-size: 3rem; line-height: 1.2; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 50px; }

/* 2. Header & Navigation */
header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #EAEAEA;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo .logo-main {
    height: 70px;
}

.logo .logo-secondary {
    height: 75px;
}

nav a {
    margin-left: 30px;
    text-decoration: none;
    color: #333333;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover { color: #F58220; }

nav a.nav-button {
    background-color: #F58220;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    transition: background-color 0.3s;
}

nav a.nav-button:hover { background-color: #d96f1a; color: #fff; }

/* 3. Hero Section */
.hero { background-color: #F9F9F9; padding: 60px 0; }
.hero-container { display: flex; align-items: center; gap: 50px; }
.hero-text { flex: 1; }
.hero-image { flex: 1; }
.hero-image img { width: 100%; border-radius: 10px; }
.cta-button {
    display: inline-block;
    background-color: #00529B;
    color: #fff;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    margin-top: 20px;
    transition: background-color 0.3s;
}
.cta-button:hover { background-color: #003c75; }

/* 4. Testimonials Section */
/* ================================================== */
/*      4. NEW Dynamic Testimonials Section           */
/* ================================================== */
.testimonials { 
    padding: 80px 0; 
    background-color: #F9F9F9; /* Use light grey for this section */
}

.testimonial-grid-dynamic {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns on desktop */
    gap: 40px;
}

.story-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07 );
    overflow: hidden; /* Ensures the image corners are rounded */
    display: flex;
    flex-direction: column;
}

.story-media {
    width: 100%;
    position: relative; /* Needed for the play button overlay */
}

.story-media img {
    width: 100%;
    height: auto;
    display: block;
}

.story-content {
    padding: 25px 30px 30px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.story-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 0;
    margin-bottom: 20px;
    font-style: italic;
    flex-grow: 1;
}

.story-content cite {
    font-weight: 700;
    font-style: normal;
    color: #00529B;
}

/* Specific style for the text-only card */
.story-card.text-only {
    justify-content: center; /* Centers the content vertically */
}

/* --- Video Play Button Styles --- */
.video-preview {
    cursor: pointer;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: block;
    transition: transform 0.2s ease-out, background-color 0.2s;
}

.play-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 53%; /* Slightly offset for perfect visual centering */
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid #F58220; /* Brand Orange */
}

.video-preview:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: rgba(255, 255, 255, 1);
}


/* 5. Submission Form Section */
.submission-form { background-color: #F9F9F9; padding: 80px 0; }
.submission-form h2, .submission-form p { text-align: center; }
.submission-form p { max-width: 600px; margin: -20px auto 40px auto; line-height: 1.6; }
form { max-width: 700px; margin: 0 auto; background: #fff; padding: 40px; border-radius: 10px; border: 1px solid #EAEAEA; }
.form-row { display: flex; gap: 20px; }
.form-group { margin-bottom: 20px; flex: 1; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; }
input[type="text"], input[type="number"], input[type="email"], textarea {
    width: 100%; padding: 12px; border: 1px solid #CCC; border-radius: 5px; font-size: 1rem; font-family: 'Montserrat', sans-serif; box-sizing: border-box;
}
textarea::placeholder { font-style: italic; font-size: 0.9rem; }
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-group input[type="checkbox"] { margin-top: 5px; }
.checkbox-group label { font-weight: 400; }
.submit-button {
    width: 100%; padding: 15px; background-color: #F58220; color: #fff; border: none; border-radius: 50px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: background-color 0.3s;
}
.submit-button:hover { background-color: #d96f1a; }

/* 6. Footer */
footer {
    background-color: #00529B;
    color: #fff;
    text-align: center;
    padding: 25px 0;
    font-size: 0.9rem;
}

/* 7. Video Gallery Section (Parent Testimonials) */
.video-gallery { padding: 80px 0; background-color: #FFFFFF; }
.video-gallery .video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.video-container { width: 100%; }
.video-container iframe { width: 100%; height: 315px; border-radius: 8px; border: 1px solid #EAEAEA; }
.video-caption { font-size: 0.9rem; text-align: center; margin-top: 15px; color: #555; }

/* 8. Partner Gallery Section */
.partner-gallery {
    padding: 80px 0;
    background-color: #F9F9F9;
}
.partner-gallery .video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

/* 9. Features Gallery Section */
.features-gallery {
    padding: 80px 0;
    background-color: #FFFFFF;
}
.video-grid-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

/* --- Mobile Responsive Adjustments --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    header .container { flex-direction: column; gap: 15px; }
    nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
    nav a { margin-left: 0; }
    nav a.nav-button { padding: 10px 20px; }
    .hero-container { flex-direction: column-reverse; text-align: center; }
    .hero-text { margin-top: 30px; }
    .testimonial-grid-dynamic {grid-template-columns: 1fr;}
    .form-row { flex-direction: column; gap: 20px; }
    .hero, .testimonials, .submission-form, .video-gallery, .partner-gallery, .features-gallery { padding: 50px 0; }
    form { padding: 25px; }
    
    /* Grid adjustments for mobile */
    .video-gallery .video-grid { grid-template-columns: 1fr; }
    .partner-gallery .video-grid { grid-template-columns: 1fr 1fr; }
    .video-grid-features { grid-template-columns: 1fr; }
}
/* Add this to the bottom of your style.css file, before the @media block */

/* ========================================= */
/*      10. Learn More Button Container      */
/* ========================================= */

.learn-more-container {
    text-align: center;
    margin-top: 50px; /* Add space above the button */
}

/* Style for the link in the checkbox label */
.checkbox-group label a {
    color: #00529B; /* Use the brand's primary blue */
    text-decoration: underline;
}

/* Style for the link in the footer */
footer a {
    color: #FFFFFF; /* White to stand out on the blue background */
    text-decoration: underline;
}

/* Style for the disclaimer text inside the hero section */
.hero-text .disclaimer-text {
    font-size: 0.75rem; /* Small font size */
    color: #666666;
    line-height: 1.5;
    margin: 20px 0; /* Add some space above and below it */
}

/* ========================================= */
/*      MODIFIED: Testimonial Cite Styling   */
/* ========================================= */

/* Find the existing .story-content cite rule and add this new one below it */
.story-content cite .cite-date {
    font-weight: 400; /* Normal font weight, not bold */
    color: #555555;   /* A slightly lighter color to de-emphasize it */
    font-style: normal;
}

/* ========================================= */
/*      MODIFIED: Testimonial Grid Styling   */
/* ========================================= */

/* Find the existing .testimonial-grid-dynamic rule and replace it with this. */
/* This allows the grid to handle more items gracefully. */
.testimonial-grid-dynamic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}
/* ========================================= */
/* == NEW: HERO DISCLAIMER TEXT STYLING   == */
/* ========================================= */

.disclaimer-text {
    font-size: 0.70rem; /* This makes the text smaller. Default is usually 1rem. */
    color: #666;       /* This makes the text a lighter grey color. */
    font-weight: 400;   /* Ensures the text is not bold. */
    line-height: 1.5;   /* Improves readability for the small text. */
    margin-top: 15px;   /* Adds a little space above it. */
}
/* ================================================== */
/* == NEW: STYLED TESTIMONIAL QUOTATION MARKS      == */
/* ================================================== */

/* First, prepare the paragraph for positioning the quotes */
.story-card .story-content p {
    position: relative; /* This is crucial for positioning the quotes */
    padding-left: 35px; /* Add space on the left for the opening quote */
    padding-right: 35px; /* Add space on the right for the closing quote */
}

/* Style the opening quotation mark (::before) */
.story-card .story-content p::before {
    content: '“'; /* The character for an opening curly quote */
    position: absolute; /* Position it relative to the paragraph */
    left: 0;
    top: -10px; /* Adjust to pull the quote up slightly */
    
    font-family: Georgia, serif; /* A font with nice, curvy quotes */
    font-size: 4rem; /* Make the quote much larger */
    font-weight: 700; /* Make it bold */
    color: #00529B; /* The Hoya Blue color */
    opacity: 0.8; /* Make it slightly transparent so it's not too overpowering */
}

/* Style the closing quotation mark (::after) */
.story-card .story-content p::after {
    content: '”'; /* The character for a closing curly quote */
    position: absolute;
    right: 0;
    bottom: -30px; /* Adjust to push the quote down slightly */

    font-family: Georgia, serif;
    font-size: 4rem;
    font-weight: 700;
    color: #00529B;
    opacity: 0.8;
}
/* ================================================== */
/* == FINAL: ACCURATE INLINE QUOTATION MARKS     == */
/* ================================================== */

/* Prepare the paragraph for positioning */
.story-card .story-content p {
    position: relative; /* This is still needed */
    /* Remove the old padding, as we no longer need it */
}

/* Style the opening quotation mark (::before) */
.story-card .story-content p::before {
    content: '“'; /* The opening quote character */
    display: inline-block; /* Allows us to transform it */
    
    font-family: Georgia, serif;
    font-size: 4rem; /* Large font size */
    font-weight: 700;
    color: #00529B; /* Hoya Blue */
    
    /* === The New Positioning Magic === */
    position: absolute;
    left: -1.5rem; /* Pull the quote to the left, outside the text flow */
    top: -1.2rem;  /* Pull the quote up to align with the first line */
    
    opacity: 0.8;
}

/* Style the closing quotation mark (::after) */
.story-card .story-content p::after {
    content: '”'; /* The closing quote character */
    display: inline-block;
    
    font-family: Georgia, serif;
    font-size: 4rem;
    font-weight: 700;
    color: #00529B;
    
    /* === The New Positioning Magic === */
    position: absolute;
    /* We don't set 'right' or 'bottom' here. Instead, we let it flow naturally. */
    
    /* Nudge it slightly for better visual alignment */
    transform: translate(0.5rem, 1.5rem);
    
    opacity: 0.8;
}
