/* CSS Variables */
:root {
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'IBM Plex Sans', sans-serif;

    /* Pastel Color Scheme */
    --color-primary: #A0D2DB; /* Light Blue-Teal */
    --color-primary-darker: #7FAAB0;
    --color-secondary: #E6B3A6; /* Peach/Soft Pink - Accent */
    --color-secondary-darker: #D19E90;
    --color-background-light: #FDF6F0; /* Very light creamy pastel */
    --color-background-pastel: #F8E9DD; /* Slightly darker pastel for sections */
    --color-text-dark: #333333;
    --color-text-darker: #222222; /* For main headings, higher contrast */
    --color-text-light: #FFFFFF;
    --color-border: #DDCDBF; /* Soft Brown/Grey for borders, slightly lighter */
    --color-card-background: #FFFFFF;

    --box-shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
    --box-shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.1);
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;

    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-smooth: all 0.3s ease-in-out;
}

/* Global Styles */
body {
    font-family: var(--font-secondary);
    background-color: var(--color-background-light);
    color: var(--color-text-dark);
    line-height: 1.7;
    font-size: 16px; /* Adaptive typography base */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-text-darker);
    margin-top: 0;
    margin-bottom: 0.75em;
    line-height: 1.3;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); } /* Section titles */
h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h5 { font-size: clamp(1.05rem, 2vw, 1.4rem); } /* Card titles */

p {
    margin-bottom: 1rem;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

a {
    color: var(--color-secondary); /* Accent color for links */
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-secondary-darker);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Removes bottom space under images */
}

/* Utility Classes */
.bg-light-pastel {
    background-color: var(--color-background-pastel) !important;
}
.text-dark-custom {
    color: var(--color-text-dark) !important;
}
.text-darker-custom {
    color: var(--color-text-darker) !important;
}
.section-title {
    color: var(--color-text-darker);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
    margin-bottom: 3rem !important;
}

/* Buttons - GLOBAL STYLES */
.btn, button, input[type='submit'], input[type='button'] {
    font-family: var(--font-primary);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--border-radius-md);
    transition: var(--transition-bounce) !important; /* Ensure override for Bootstrap's multiple transitions */
    box-shadow: var(--box-shadow-soft);
    border: 2px solid transparent;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.btn:hover, .btn:focus,
button:hover, button:focus,
input[type='submit']:hover, input[type='submit']:focus,
input[type='button']:hover, input[type='button']:focus {
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--box-shadow-medium) !important; /* Ensure override */
    outline: none; /* Remove default focus outline if custom is applied */
}

.btn-primary { /* Bootstrap class */
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-text-darker); /* Darker text for better contrast on peach */
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--color-secondary-darker);
    border-color: var(--color-secondary-darker);
    color: var(--color-text-darker);
}

.btn-secondary { /* Bootstrap class */
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-light);
}
.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--color-primary-darker);
    border-color: var(--color-primary-darker);
    color: var(--color-text-light);
}

.btn-outline-primary { /* Bootstrap class */
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--color-secondary);
    color: var(--color-text-darker);
    border-color: var(--color-secondary);
}

/* Header / Navbar */
.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: var(--box-shadow-soft);
    background-color: var(--color-background-light) !important; /* Override Bootstrap default */
}
.navbar-brand {
    font-size: 1.75rem;
    color: var(--color-text-darker) !important;
}
.navbar-nav .nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--color-text-dark) !important;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-bounce);
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--color-secondary-darker) !important;
    background-color: rgba(230, 179, 166, 0.1);
    transform: translateY(-2px);
}
.navbar-toggler {
    border-color: rgba(0,0,0,0.1);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2840, 40, 40, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* Hero Section */
.hero-section {
    min-height: 80vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    /* The linear-gradient for text readability is applied inline in HTML */
}

.hero-content h1, .hero-content p {
    color: var(--color-text-light) !important;
}
.hero-content h1 {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.hero-content p {
    text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero-cta {
    margin-top: 1.5rem;
}


/* General Card Styling */
.card {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-soft);
    transition: var(--transition-bounce);
    background-color: var(--color-card-background);
    display: flex;
    flex-direction: column;
    text-align: center;
    overflow: hidden; /* Ensures child elements respect border-radius */
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--box-shadow-medium);
}

.card .card-image {
    width: 100%;
    overflow: hidden;
    /* border-top-left-radius and border-top-right-radius are not needed due to overflow:hidden on .card */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Fixed height will be set by specific card types, e.g., .product-card .card-image */
}
.card .card-image img {
    width: 100%;
    height: 100%; /* Fill the container .card-image */
    object-fit: cover;
    transition: transform 0.4s ease-out;
}
.card:hover .card-image img {
    transform: scale(1.08);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-title {
    color: var(--color-text-darker);
    margin-bottom: 0.75rem;
}
.card-text {
    color: var(--color-text-dark);
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Products Section */
.product-card .card-image {
    height: 250px; /* Specific height for product images */
}
.price-text {
    color: var(--color-secondary-darker);
    font-weight: bold;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.5rem; /* Make price prominent */
}

/* Workshops Section - Timeline */
.timeline { list-style: none; padding: 20px 0 20px; position: relative; }
.timeline:before { top: 0; bottom: 0; position: absolute; content: " "; width: 3px; background-color: var(--color-border); left: 50%; margin-left: -1.5px; }
.timeline > li { margin-bottom: 20px; position: relative; }
.timeline > li:before, .timeline > li:after { content: " "; display: table; }
.timeline > li:after { clear: both; }
.timeline > li > .timeline-panel { width: 46%; float: left; border: 1px solid var(--color-border); border-radius: var(--border-radius-md); padding: 20px; position: relative; box-shadow: var(--box-shadow-soft); background-color: var(--color-card-background); }
.timeline > li > .timeline-panel:before { position: absolute; top: 26px; right: -15px; display: inline-block; border-top: 15px solid transparent; border-left: 15px solid var(--color-border); border-right: 0 solid var(--color-border); border-bottom: 15px solid transparent; content: " "; }
.timeline > li > .timeline-panel:after { position: absolute; top: 27px; right: -14px; display: inline-block; border-top: 14px solid transparent; border-left: 14px solid var(--color-card-background); border-right: 0 solid var(--color-card-background); border-bottom: 14px solid transparent; content: " "; }
.timeline > li > .timeline-badge { color: #fff; width: 50px; height: 50px; line-height: 50px; font-size: 1.4em; text-align: center; position: absolute; top: 16px; left: 50%; margin-left: -25px; background-color: var(--color-secondary); z-index: 100; border-radius: 50%; box-shadow: var(--box-shadow-soft); }
.timeline > li.timeline-inverted > .timeline-panel { float: right; }
.timeline > li.timeline-inverted > .timeline-panel:before { border-left-width: 0; border-right-width: 15px; left: -15px; right: auto; }
.timeline > li.timeline-inverted > .timeline-panel:after { border-left-width: 0; border-right-width: 14px; left: -14px; right: auto; }
.timeline-badge.primary { background-color: var(--color-primary) !important; }
.timeline-badge.success { background-color: var(--color-secondary) !important; } /* Using accent for success in this context */
.timeline-title { margin-top: 0; color: inherit; font-size: 1.2rem; }
.timeline-body > p, .timeline-body > ul { margin-bottom: 0; }
.timeline-body > p + p { margin-top: 5px; }

/* Webinars Section - Accordion */
.accordion-button {
    font-family: var(--font-primary);
    background-color: var(--color-background-pastel);
    color: var(--color-text-darker);
    border: 1px solid var(--color-border);
    font-weight: 600;
}
.accordion-button:not(.collapsed) {
    color: var(--color-secondary-darker);
    background-color: #fceee9;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.08);
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(160, 210, 219, 0.3);
}
.accordion-body {
    background-color: var(--color-card-background);
    color: var(--color-text-dark);
    padding: 1.25rem;
}
.accordion-item {
    border: 1px solid var(--color-border);
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

/* Projects Section */
.project-card-alt .card-image {
    height: 220px;
}
.project-card-alt .card-body {
    text-align: left; /* Example of overriding centered text for specific cards */
}

/* Media Section */
.media-mention-card {
    background-color: var(--color-card-background);
    border-radius: var(--border-radius-md);
    transition: var(--transition-bounce);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    padding: 1.5rem;
}
.media-mention-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-medium);
}
.media-mention-card img {
    max-height: 45px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}
.media-mention-card p {
    font-size: 0.9rem;
    color: #555;
}

/* Success Stories Section */
.testimonial-card .card-image { /* This is the container for the image, not the image itself */
    height: auto;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem; /* Space between image and text */
}
.testimonial-card .card-image img { /* The actual profile image */
    width: 120px;
    height: 120px;
    border-radius: 50%; /* Make it circular */
    border: 4px solid var(--color-secondary);
    margin: 0 auto; /* Center the image */
    object-fit: cover;
}
.testimonial-card .card-body {
    text-align: center;
    padding-top: 0.5rem;
}
.testimonial-card .card-text {
    font-size: 0.9rem;
    font-style: italic;
    color: #555;
}

/* External Resources Section */
.resource-card .card-body {
    text-align: left;
}
.resource-card h5 a {
    color: var(--color-primary-darker);
    font-weight: bold;
}
.resource-card h5 a:hover {
    color: var(--color-secondary-darker);
}
.resource-card p.small {
    font-size: 0.85rem;
}

/* Contact Section */
.contact-form-styled .form-control {
    border-radius: var(--border-radius-sm);
    padding: 0.9rem 1rem;
    border: 1px solid var(--color-border);
    background-color: #fff;
    transition: var(--transition-smooth);
}
.contact-form-styled .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(160, 210, 219, 0.25);
}
.contact-form-styled .form-label {
    font-weight: 500;
    color: var(--color-text-dark);
}
.contact-form-styled .form-check-label a {
    color: var(--color-secondary-darker);
    font-weight: 500;
}
.contact-submit-btn {
    min-width: 200px;
}

/* Footer */
footer { /* Targeting the footer tag directly */
    background-color: var(--color-text-darker);
    color: rgba(255,255,255,0.8);
    padding-top: 3rem;
    padding-bottom: 1.5rem;
}
footer h5 {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
footer p, footer ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}
footer ul {
    padding-left: 0;
    list-style: none;
}
footer ul li {
    margin-bottom: 0.6rem;
}
footer ul li a:hover {
    color: var(--color-secondary) !important; /* Important to override default Bootstrap link colors in footer context */
    text-decoration: none;
}
footer hr {
    border-color: rgba(255,255,255,0.15);
}
footer .small {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}


/* Specific Page Styles */
.success-page-container { /* For success.html body or main wrapper */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.success-page-content {
    flex-grow: 1; /* Takes up available space */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}
.success-page-content h1 {
    color: var(--color-primary-darker);
    font-size: clamp(2rem, 5vw, 3rem);
}
.success-page-content .icon {
    font-size: 4rem; /* For an icon if used */
    color: var(--color-secondary);
    margin-bottom: 1rem;
}
.success-page-content p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 600px;
}
.success-page-content .btn {
    margin-top: 1.5rem;
}

.privacy-page-content, .terms-page-content {
    padding-top: 120px; /* Space for fixed header */
    padding-bottom: 4rem;
    /* Basic styling for content inside these pages */
}
.privacy-page-content h1, .terms-page-content h1,
.privacy-page-content .page-title, .terms-page-content .page-title { /* For main title of page if not H1 */
    margin-bottom: 2rem;
    color: var(--color-text-darker);
}
.privacy-page-content h2, .terms-page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary-darker);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
}
.privacy-page-content p, .terms-page-content p,
.privacy-page-content ul, .terms-page-content ul {
    margin-bottom: 1rem;
    line-height: 1.8;
}
.privacy-page-content ul, .terms-page-content ul {
    padding-left: 20px;
}
.privacy-page-content li, .terms-page-content li {
    margin-bottom: 0.5rem;
}

/* Animations on Scroll (Setup - JS will add 'visible' class) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000); /* Smoother bounce */
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax effect placeholder - simple version */
.parallax-background {
    background-attachment: fixed; /* Note: this has limitations on mobile and with other transforms */
    /* JS solution is often better for more complex parallax */
}

/* Glassmorphism example */
.glass-effect {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* "Read More" link style */
.read-more-link {
    display: inline-block;
    font-weight: bold;
    color: var(--color-secondary-darker);
    text-decoration: none;
    padding: 0.3rem 0;
    position: relative;
    transition: var(--transition-smooth);
}
.read-more-link::after {
    content: '→';
    margin-left: 0.5em;
    transition: margin-left 0.3s ease, transform 0.3s ease;
}
.read-more-link:hover {
    color: var(--color-primary-darker);
}
.read-more-link:hover::after {
    margin-left: 0.8em;
    transform: translateX(2px);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .timeline:before { left: 30px; }
    .timeline > li > .timeline-panel { width: calc(100% - 90px); float: right; }
    .timeline > li > .timeline-panel:before, .timeline > li > .timeline-panel:after { border-left-width: 0; border-right-width: 15px; left: -15px; right: auto; }
    .timeline > li > .timeline-panel:after { border-right-width: 14px; left: -14px; }
    .timeline > li > .timeline-badge { left: 15px; margin-left: 0; top: 16px; }
    .hero-section { min-height: 70vh; }
}

@media (max-width: 767.98px) {
    body { font-size: 15px; }
    .section-title { margin-bottom: 2rem !important; }
    .navbar-nav .nav-link { margin-left: 0; margin-right: 0; padding: 0.75rem 1rem; }
    footer { text-align: center; }
    footer .col-lg-4, footer .col-md-6 { margin-bottom: 2rem; } /* Adjusted for Bootstrap 5 grid */
    footer .col-lg-4:last-child, footer .col-md-6:last-child { margin-bottom: 0; }
    .price-text { font-size: 1.3rem; }
}

header ul{
    flex-wrap: wrap;
}