/* LearnStatistics.online - Main Stylesheet */

/* --- DESIGN TOKENS (Based on your color palette) --- */
:root {
    --primary-teal: #6daeab;
    --accent-yellow: #ffcb04;
    --pale-yellow: #ffebb1
    --accent-red: #9f2b3a; 
    --dark-text: #2c3e50;
    --light-text: #ffffff;
    --light-gray-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --nav-height: 70px;
}

/* --- NEW: Keyframes for Pulse Animation --- */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* --- GLOBAL RESET & BASE STYLES --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--dark-text); background-color: var(--light-text); line-height: 1.6; padding-bottom: 100px; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* NEW: Active Navigation Link Style */
.main-nav a.active {
    color: var(--accent-red); /* Using accent-red for consistency with headlines */
    font-weight: bold;
    transform: scale(1.1);
}

/* --- STICKY NAVIGATION BAR (UPDATED WITH TOOLTIP MENU) --- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--primary-teal);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: var(--nav-height);
    display: flex;
    align-items: center;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* NEW: Adds 20px of space on the left and right sides */
    padding: 0 20px; 
}.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo img {
    height: 40px;
    width: auto;
}
.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--light-text);
}
.logo-domain {
    color: var(--accent-yellow);
    font-size: 0.9em;
    font-weight: 700;
}
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}
/* This is the key change: setting up the relative container for the tooltip */
.main-nav li {
    position: relative;
}
.main-nav a {
    text-decoration: none;
    font-weight: 500;
    color: var(--light-text);
    padding: 5px 0;
    transition: color 0.3s ease;
}
.main-nav a:hover {
    color: var(--accent-yellow);
}
/* Hiding the short-text is no longer needed */
.main-nav .short-text {
    display: inline-block;
}
/* NEW: Styling the long-text as a tooltip */
.main-nav .long-text {
    position: absolute;
    top: 130%; /* Position it below the menu item */
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* Center it horizontally and move it down */
    background-color: var(--dark-text);
    color: var(--light-text);
    padding: 8px 15px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
/* NEW: Adding the triangle pointer for the tooltip */
.main-nav .long-text::after {
    content: '';
    position: absolute;
    bottom: 100%; /* Position it at the top of the tooltip */
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent var(--dark-text) transparent;
}
/* NEW: Show the tooltip on list item hover */
.main-nav li:hover .long-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); /* Slide it up into place */
}
.hamburger-menu {
    display: none;
}
#menu-toggle {
    display: none;
}

/* --- HERO SECTION (for index.html) --- */
.hero-section 
{ background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('images/lso-blurred.jpg') no-repeat center center; background-size: cover; text-align: center; padding: 6rem 1rem; min-height: calc(100vh - var(--nav-height)); display: flex; flex-direction: column; justify-content: center; align-items: center; }
.hero-section .slogan { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 800; color: var(--accent-red); line-height: 1.2; max-width: 800px; margin-bottom: 1rem; text-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.hero-section .sub-slogan { font-size: 1.2rem; max-width: 600px; color: #444; margin-bottom: 3rem; font-weight: 500; }
.action-button-container { position: relative; display: inline-block; height: 60px; font-family: var(--font-heading); font-weight: 700; }
.main-button { display: flex; align-items: center; justify-content: center; background-color: var(--primary-teal); color: var(--light-text); padding: 18px 40px; border-radius: 50px; font-size: 1.2rem; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(109, 174, 171, 0.4); opacity: 1; transform: translateY(0); }
.split-buttons { display: flex; gap: 1rem; position: absolute; top: 0; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; transition: all 0.3s ease; }
.action-button-container:hover .main-button { opacity: 0; transform: translateY(-20px); pointer-events: none; }
.action-button-container:hover .split-buttons { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: all; }
.split-buttons a { padding: 18px 35px; border-radius: 50px; font-size: 1.1rem; text-decoration: none; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: all 0.3s ease; white-space: nowrap; }
.enroll-btn { background-color: var(--accent-yellow); color: var(--dark-text); }
.login-btn { background-color: var(--light-text); color: var(--dark-text); border: 1px solid var(--border-color); }
.split-buttons a:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

/* --- CONTENT PAGES (for how.html, what.html, etc.) --- */
.page-content { padding: 4rem 1rem; }
.page-content h1 { font-family: var(--font-heading); font-size: 2.8rem; margin-bottom: 2rem; color: var(--accent-red); }
.page-content h2 { font-family: var(--font-heading); font-size: 1.8rem; margin-top: 2.5rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--border-color); padding-bottom: 0.5rem; color: var(--primary-teal); }
.page-content p { margin-bottom: 1rem; max-width: 800px; }
.page-content ul { list-style-position: outside; margin-left: 1.5rem; margin-bottom: 1.5rem; max-width: 800px; }
.page-content li { margin-bottom: 0.75rem; }
.featured-illustration { display: block; max-width: 650px; width: 100%; height: auto; margin: 2.5rem 0 3.5rem 0; border-radius: 12px; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); }
.profile-card { display: flex; align-items: center; gap: 2rem; margin-bottom: 2.5rem; }
.profile-image { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.profile-details p { margin-bottom: 0; }
.qa-block { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }
.qa-block:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.qa-content { display: flex; align-items: flex-start; gap: 2rem; }
.qa-illustration { width: 250px; height: auto; border-radius: 8px; flex-shrink: 0; margin-top: 0.5rem; }
.qa-text { flex-grow: 1; }
.qa-block.image-right .qa-content { flex-direction: row-reverse; }
.bottom-cta-section { text-align: center; padding: 3rem 1rem; margin-top: 4rem; border-top: 1px solid var(--border-color); background-color: var(--light-gray-bg); }

/* --- Pricing Page Styles --- */
.pricing-box { background-color: var(--light-gray-bg); border: 2px dashed var(--primary-teal); border-radius: 12px; padding: 2.5rem; text-align: center; margin: 2rem 0; }
.pricing-box .price {
    font-family: var(--font-heading); font-size: 4rem; font-weight: 800;
    color: var(--accent-yellow); /* UPDATED: Color is now yellow */
    line-height: 1.1;
    animation: pulse 2s infinite ease-in-out; /* NEW: Added pulse animation */
}
.pricing-box .price-note { font-size: 1.2rem; font-weight: 500; color: var(--dark-text); margin-top: 0.5rem; margin-bottom: 1.5rem; }
.pricing-box .price-subtext { color: #555; max-width: 600px; margin-left: auto; margin-right: auto; }
.contact-box { margin-top: 3rem; padding: 2rem; border: 1px solid var(--border-color); border-radius: 8px; }
.contact-box h2 { border-bottom: none; margin-top: 0; margin-bottom: 1rem; }
.contact-form .form-group { margin-bottom: 1.5rem; text-align: left; }
.contact-form label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 6px; font-family: var(--font-body); font-size: 1rem; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button {
    display: inline-block; background-color: var(--primary-teal); color: var(--light-text); padding: 12px 30px; border: none;
    border-radius: 50px; font-size: 1.1rem; font-weight: 500; cursor: pointer; transition: all 0.3s ease;
}
.contact-form button:hover { background-color: #5a9a97; transform: translateY(-2px); }

/* --- RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .main-nav .short-text { max-width: 100px; opacity: 1; }
    .main-nav .long-text { display: none; }
    .main-nav a:hover { color: var(--accent-yellow); }
    .main-nav a:hover .short-text { color: var(--accent-yellow); }
}
@media (max-width: 768px) {
    .logo-text { font-size: 1rem; } .logo img { height: 35px; }
    .main-nav ul { position: absolute; top: var(--nav-height); left: 0; width: 100%; background-color: var(--primary-teal); flex-direction: column; align-items: center; padding: 1rem 0; box-shadow: 0 5px 10px rgba(0,0,0,0.05); transform: translateY(-120%); transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); border-top: 1px solid rgba(255,255,255,0.2); }
    #menu-toggle:checked ~ .nav-container .main-nav ul { transform: translateY(0); }
    .main-nav a { font-size: 1.1rem; }
    .hamburger-menu { display: block; cursor: pointer; }
    .hamburger-menu .bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--light-text); transition: all 0.3s ease-in-out; }
    #menu-toggle:checked + .nav-container .hamburger-menu .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    #menu-toggle:checked + .nav-container .hamburger-menu .bar:nth-child(2) { opacity: 0; }
    #menu-toggle:checked + .nav-container .hamburger-menu .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .hero-section { background-position: left center; }
    .hero-section .slogan { font-size: 2.5rem; }
    .hero-section .sub-slogan { font-size: 1.1rem; }
    .page-content h1 { font-size: 2.2rem; }
    .profile-card { flex-direction: column; text-align: center; gap: 1.5rem; }
    .qa-content { flex-direction: column; }
    .qa-illustration { width: 100%; max-width: 350px; margin-bottom: 1.5rem; }
    .qa-block.image-right .qa-content { flex-direction: column; }
    .pricing-box .price { font-size: 3rem; }
}

/* --- NEW: University Heritage Paragraph --- */
.university-heritage {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 2rem auto 3rem auto;
    padding: 1.5rem;
    background-color: var(--light-gray-bg);
    border-left: 5px solid var(--primary-teal);
    color: var(--dark-text);
    font-style: italic;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 0 8px 8px 0;
}

/* --- NEW: Sticky Bottom Bar --- */
.sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 203, 5, 0.15);
    /* background: linear-gradient(to top, rgba(255, 203, 5, 0.3), rgba(255, 203, 5, 0.)); */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    z-index: 999;
}

.cta-button-sticky {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.cta-button-sticky.enrol {
    background-color: var(--accent-yellow);
    color: var(--dark-text);
    box-shadow: 0 4px 10px rgba(255, 203, 4, 0.3);
}

.cta-button-sticky.login {
    background-color: var(--primary-teal);
    color: var(--light-text);
    box-shadow: 0 4px 10px rgba(109, 174, 171, 0.3);
}

.cta-button-sticky:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* --- NEW: Testimonials Section --- */
.testimonials-wrapper {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

.cta-button-secondary {
    background-color: var(--dark-text);
    color: var(--light-text);
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.cta-button-secondary:hover {
    background-color: #444;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.testimonials-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
    /* Initially hidden by JS */
    display: none; 
}

.testimonial-card {
    background-color: var(--light-gray-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.testimonial-card cite {
    display: block;
    font-weight: 600;
    color: var(--primary-teal);
    text-align: right;
    margin-top: 1rem;
}

.testimonial-card.video-placeholder {
    background-color: #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px; /* Ensure consistent height */
}

.testimonial-card.video-placeholder .video-icon {
    font-size: 3rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.testimonial-card.video-placeholder p {
    font-weight: 500;
    color: #555;
}

.video-caption {
    font-weight: 600;
    color: var(--primary-teal);
    text-align: right;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .sticky-bottom-bar {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
    }
    .cta-button-sticky {
        width: 100%;
        padding: 10px 20px;
    }
    .testimonials-content {
        grid-template-columns: 1fr;
    }
}
