/* style.css */

/*--------------------------------------------------------------
# Root Variables
--------------------------------------------------------------*/
:root {
    --font-family-headings: 'Inter', sans-serif;
    --font-family-body: 'IBM Plex Sans', sans-serif;

    /* Pastel Color Palette */
    --bg-light-pastel: #f7f3f7; /* Very light lavender/off-white */
    --bg-light-pastel-rgb: 247, 243, 247;
    --bg-dark-pastel: #ece7ed;  /* Slightly darker for contrast sections */
    --bg-dark-pastel-rgb: 236, 231, 237;

    --primary-color: #a7d8de; /* Soft pastel blue/teal */
    --primary-darker-color: #8cbac0;
    --secondary-color: #f8c9d4; /* Soft pastel pink */
    --secondary-darker-color: #e0b5c0;
    --accent-color: #fdeca6; /* Soft pastel yellow */
    --accent-darker-color: #e9d792;

    --text-color: #3D3B3C; /* Dark grey for body text */
    --text-color-headings: #2c2a2b; /* Slightly darker for headings */
    --text-light-color: #FFFFFF;
    --text-muted-color: #7a7879;
    --link-color: var(--primary-color);
    --link-hover-color: var(--primary-darker-color);

    /* Neumorphism Shadows & Properties */
    --neumorphic-shadow-distance: 6px;
    --neumorphic-blur: 12px;
    --neumorphic-shadow-light-color: rgba(255, 255, 255, 0.8);
    --neumorphic-shadow-dark-color: rgba(190, 180, 190, 0.35); /* Adjusted for pastel background */
    
    --neumorphic-inset-shadow-light-color: rgba(255, 255, 255, 0.7);
    --neumorphic-inset-shadow-dark-color: rgba(190, 180, 190, 0.4);

    --border-radius: 20px;
    --border-radius-sm: 12px;
    --transition-speed: 0.3s ease-in-out;

    --header-height: 70px; /* Approximate header height for padding */
}

/*--------------------------------------------------------------
# General & Base Styles
--------------------------------------------------------------*/
body {
    font-family: var(--font-family-body);
    color: var(--text-color);
    background-color: var(--bg-light-pastel);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    padding-top: 0px !important;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: var(--transition-speed);
}

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

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    font-weight: 700;
    color: var(--text-color-headings);
    margin-bottom: 0.75em;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color-headings);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* Section Backgrounds & Padding */
.section-bg-pastel {
    background-color: var(--bg-light-pastel);
    padding: 60px 0;
}

.section-bg-dark-pastel {
    background-color: var(--bg-dark-pastel);
    padding: 60px 0;
}

/* Responsive Embeds */
.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.embed-responsive::before {
    display: block;
    content: "";
}

.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/*--------------------------------------------------------------
# Neumorphic Base Elements
--------------------------------------------------------------*/
.neumorphic-element {
    background-color: var(--bg-light-pastel);
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow-distance) var(--neumorphic-shadow-distance) var(--neumorphic-blur) var(--neumorphic-shadow-dark-color),
                calc(-1 * var(--neumorphic-shadow-distance)) calc(-1 * var(--neumorphic-shadow-distance)) var(--neumorphic-blur) var(--neumorphic-shadow-light-color);
    transition: box-shadow var(--transition-speed), transform var(--transition-speed);
}

.neumorphic-element-inset {
    background-color: var(--bg-dark-pastel); /* Slightly darker for inset effect */
    border-radius: var(--border-radius);
    box-shadow: inset var(--neumorphic-shadow-distance) var(--neumorphic-shadow-distance) var(--neumorphic-blur) var(--neumorphic-inset-shadow-dark-color),
                inset calc(-1 * var(--neumorphic-shadow-distance)) calc(-1 * var(--neumorphic-shadow-distance)) var(--neumorphic-blur) var(--neumorphic-inset-shadow-light-color);
    transition: box-shadow var(--transition-speed);
}

/* Global Button Styles */
.btn, button, input[type="submit"], input[type="button"] {
    font-family: var(--font-family-headings);
    font-weight: 500;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: transparent; /* Base for neumorphic */
}

.neumorphic-button {
    background-color: var(--bg-light-pastel);
    color: var(--text-color);
    box-shadow: 4px 4px 8px var(--neumorphic-shadow-dark-color),
                -4px -4px 8px var(--neumorphic-shadow-light-color);
}
.neumorphic-button:hover, .neumorphic-button:focus {
    color: var(--primary-darker-color);
    box-shadow: 2px 2px 5px var(--neumorphic-shadow-dark-color),
                -2px -2px 5px var(--neumorphic-shadow-light-color),
                inset 1px 1px 2px var(--neumorphic-inset-shadow-dark-color),
                inset -1px -1px 2px var(--neumorphic-inset-shadow-light-color);
    transform: translateY(-1px);
}
.neumorphic-button:active {
    box-shadow: inset 3px 3px 6px var(--neumorphic-inset-shadow-dark-color),
                inset -3px -3px 6px var(--neumorphic-inset-shadow-light-color);
    transform: translateY(1px);
}

.neumorphic-button-primary {
    background-color: var(--primary-color);
    color: var(--text-light-color);
    box-shadow: 4px 4px 10px rgba(0,0,0,0.1), /* Softer shadow for colored buttons */
                -4px -4px 10px var(--neumorphic-shadow-light-color),
                inset 1px 1px 0px rgba(255,255,255,0.3); /* Subtle highlight */
}
.neumorphic-button-primary:hover, .neumorphic-button-primary:focus {
    background-color: var(--primary-darker-color);
    color: var(--text-light-color);
    box-shadow: 2px 2px 6px rgba(0,0,0,0.15),
                -2px -2px 6px var(--neumorphic-shadow-light-color),
                inset 1px 1px 0px rgba(255,255,255,0.2);
    transform: translateY(-1px);
}
.neumorphic-button-primary:active {
    background-color: var(--primary-darker-color);
    box-shadow: inset 3px 3px 6px rgba(0,0,0,0.2),
                inset -3px -3px 6px var(--neumorphic-shadow-light-color);
    transform: translateY(1px);
}

/* Small Neumorphic Button (e.g., for toggler) */
.neumorphic-button-sm {
    padding: 8px 15px;
    font-size: 0.8rem;
    background-color: var(--bg-light-pastel);
    color: var(--text-color);
    box-shadow: 3px 3px 6px var(--neumorphic-shadow-dark-color),
                -3px -3px 6px var(--neumorphic-shadow-light-color);
}
.neumorphic-button-sm:hover, .neumorphic-button-sm:focus {
    color: var(--primary-darker-color);
}
.neumorphic-button-sm:active {
     box-shadow: inset 2px 2px 4px var(--neumorphic-inset-shadow-dark-color),
                inset -2px -2px 4px var(--neumorphic-inset-shadow-light-color);
}

/* Forms */
.neumorphic-form .form-control,
.neumorphic-input,
.neumorphic-textarea {
    background-color: var(--bg-light-pastel);
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 12px 18px;
    font-family: var(--font-family-body);
    color: var(--text-color);
    box-shadow: inset 4px 4px 8px var(--neumorphic-inset-shadow-dark-color),
                inset -4px -4px 8px var(--neumorphic-inset-shadow-light-color);
    transition: box-shadow var(--transition-speed);
    width: 100%;
}
.neumorphic-form .form-control:focus,
.neumorphic-input:focus,
.neumorphic-textarea:focus {
    outline: none;
    box-shadow: inset 2px 2px 5px var(--neumorphic-inset-shadow-dark-color),
                inset -2px -2px 5px var(--neumorphic-inset-shadow-light-color),
                0 0 0 2px var(--primary-color-alpha, rgba(167, 216, 222, 0.5)); /* Focus ring */
}
.neumorphic-form .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color-headings);
}
.neumorphic-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Neumorphic Cards and Widgets */
.neumorphic-card, .neumorphic-widget {
    padding: 25px;
    text-align: center;
    background-color: var(--bg-light-pastel);
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow-distance) var(--neumorphic-shadow-distance) var(--neumorphic-blur) var(--neumorphic-shadow-dark-color),
                calc(-1 * var(--neumorphic-shadow-distance)) calc(-1 * var(--neumorphic-shadow-distance)) var(--neumorphic-blur) var(--neumorphic-shadow-light-color);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content within card */
}
.neumorphic-card:hover {
    transform: translateY(-5px);
    box-shadow: calc(var(--neumorphic-shadow-distance) + 2px) calc(var(--neumorphic-shadow-distance) + 2px) calc(var(--neumorphic-blur) + 4px) var(--neumorphic-shadow-dark-color),
                calc(-1 * (var(--neumorphic-shadow-distance) + 2px)) calc(-1 * (var(--neumorphic-shadow-distance) + 2px)) calc(var(--neumorphic-blur) + 4px) var(--neumorphic-shadow-light-color);
}
.card-image { /* Bootstrap card image container */
    width: 100%;
    margin-bottom: 15px;
    border-radius: var(--border-radius-sm);
    overflow: hidden; /* Ensure image respects border radius */
    display: flex;
    justify-content: center;
    align-items: center;
}
.card-image img { /* For images directly inside .card-image */
    width: 100%;
    height: 200px; /* Fixed height for card images */
    object-fit: cover; /* Ensures image covers the area without distortion */
    border-radius: var(--border-radius-sm); /* If image is direct child */
}
.neumorphic-card .card-img-top { /* Bootstrap specific */
    border-top-left-radius: var(--border-radius-sm);
    border-top-right-radius: var(--border-radius-sm);
    height: 200px; /* Fixed height */
    object-fit: cover;
    width: 100%; /* Ensure it spans */
}
.neumorphic-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color-headings);
}
.neumorphic-card .card-subtitle {
    color: var(--text-muted-color);
    font-size: 0.9rem;
}
.neumorphic-card .card-text {
    color: var(--text-color);
    font-size: 0.95rem;
    flex-grow: 1; /* Allows text to take available space if card is in flex container */
}
.neumorphic-card .card-content {
    text-align: left; /* Override parent's text-align: center for content blocks */
    width: 100%;
}
.neumorphic-partner-logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

/* Neumorphic Accordion */
.neumorphic-accordion .accordion-item {
    background-color: var(--bg-light-pastel);
    border: none;
    border-radius: var(--border-radius-sm);
    margin-bottom: 15px;
    box-shadow: var(--neumorphic-shadow-distance) var(--neumorphic-shadow-distance) var(--neumorphic-blur) var(--neumorphic-shadow-dark-color),
                calc(-1 * var(--neumorphic-shadow-distance)) calc(-1 * var(--neumorphic-shadow-distance)) var(--neumorphic-blur) var(--neumorphic-shadow-light-color);
}
.neumorphic-accordion .accordion-header {
    margin-bottom: 0;
}
.neumorphic-accordion .accordion-button {
    background-color: var(--bg-light-pastel);
    color: var(--text-color-headings);
    font-family: var(--font-family-headings);
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    box-shadow: none; /* Remove Bootstrap's default */
    padding: 15px 20px;
}
.neumorphic-accordion .accordion-button:not(.collapsed) {
    background-color: var(--bg-dark-pastel); /* Slightly different when open */
    color: var(--primary-darker-color);
    box-shadow: inset 2px 2px 4px var(--neumorphic-inset-shadow-dark-color),
                inset -2px -2px 4px var(--neumorphic-inset-shadow-light-color);
}
.neumorphic-accordion .accordion-button:focus {
    box-shadow: 0 0 0 2px var(--primary-color-alpha, rgba(167, 216, 222, 0.5));
    z-index: 1;
}
.neumorphic-accordion .accordion-button::after { /* Style Bootstrap's arrow */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233D3B3C'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.neumorphic-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%238cbac0'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.neumorphic-accordion .accordion-body {
    padding: 20px;
    color: var(--text-color);
    background-color: var(--bg-light-pastel); /* Ensure body has consistent bg */
    border-bottom-left-radius: var(--border-radius-sm);
    border-bottom-right-radius: var(--border-radius-sm);
}

/* Neumorphic Image Style */
.neumorphic-image {
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow-distance) var(--neumorphic-shadow-distance) var(--neumorphic-blur) var(--neumorphic-shadow-dark-color),
                calc(-1 * var(--neumorphic-shadow-distance)) calc(-1 * var(--neumorphic-shadow-distance)) var(--neumorphic-blur) var(--neumorphic-shadow-light-color);
    padding: 8px; /* Optional: creates a 'frame' effect */
    background-color: var(--bg-light-pastel); /* Background for the padding frame */
}


/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/
.neumorphic-header {
    background-color: rgba(var(--bg-light-pastel-rgb), 0.9); /* Slight transparency */
    backdrop-filter: blur(5px); /* Glassmorphism touch */
    box-shadow: 0 2px 8px rgba(var(--bg-dark-pastel-rgb), 0.3);
    padding: 5px 0;
}

.neumorphic-header .navbar {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

.neumorphic-header .navbar-brand {
    font-family: var(--font-family-headings);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color-headings) !important;
    transition: var(--transition-speed);
}
.neumorphic-header .navbar-brand:hover {
    color: var(--primary-color) !important;
}

.neumorphic-header .nav-link {
    font-family: var(--font-family-body);
    font-weight: 500;
    color: var(--text-color) !important;
    padding: 0.7rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-speed);
    position: relative;
}
.neumorphic-header .nav-link:hover,
.neumorphic-header .nav-link.active {
    color: var(--primary-darker-color) !important;
    background-color: rgba(var(--bg-dark-pastel-rgb), 0.5);
}

.navbar-toggler {
    border: none;
}
.navbar-toggler:focus {
    box-shadow: none;
}
.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(61, 59, 60, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
    min-height: calc(90vh - var(--header-height)); /* Adjusted for better visibility */
    max-height: 700px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light-color); /* Enforced white text */
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-light-color); /* Enforced white text */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-section p.lead {
    font-size: 1.3rem;
    margin: 20px auto 30px;
    max-width: 700px;
    color: var(--text-light-color); /* Enforced white text */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p.lead {
        font-size: 1.1rem;
    }
}

/*--------------------------------------------------------------
# About Us Snippet Section
--------------------------------------------------------------*/
#about-snippet .img-fluid {
    max-height: 450px;
    object-fit: cover;
}

/*--------------------------------------------------------------
# Statistical Widgets Section
--------------------------------------------------------------*/
#stats .neumorphic-widget h3 {
    font-size: 3rem; /* Make numbers stand out */
    margin-bottom: 0.25rem;
}
#stats .neumorphic-widget p {
    font-size: 1rem;
    color: var(--text-muted-color);
}

/*--------------------------------------------------------------
# Team Section
--------------------------------------------------------------*/
#team .card.neumorphic-card {
    height: 100%; /* Ensure cards in a row are same height */
}
#team .card-image img {
    height: 250px; /* Consistent height for team member photos */
}

/*--------------------------------------------------------------
# Partners Section
--------------------------------------------------------------*/
#partners .neumorphic-partner-logo {
    padding: 20px;
    background-color: var(--bg-light-pastel);
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow-distance) var(--neumorphic-shadow-distance) var(--neumorphic-blur) var(--neumorphic-shadow-dark-color),
                calc(-1 * var(--neumorphic-shadow-distance)) calc(-1 * var(--neumorphic-shadow-distance)) var(--neumorphic-blur) var(--neumorphic-shadow-light-color);
    transition: transform var(--transition-speed);
    height: 150px; /* Fixed height for consistent layout */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#partners .neumorphic-partner-logo:hover {
    transform: translateY(-5px);
}
#partners .neumorphic-partner-logo p {
    font-size: 0.9rem;
    color: var(--text-muted-color);
    margin-top: 10px;
}

/*--------------------------------------------------------------
# Instructors Section
--------------------------------------------------------------*/
#instructors .card.neumorphic-card {
    display: flex;
    flex-direction: row; /* For side-by-side image and text */
    align-items: stretch; /* Make inner items stretch */
    text-align: left; /* Reset text align for inner content */
}
#instructors .card-image {
    flex: 0 0 180px; /* Fixed width for instructor image */
    margin-bottom: 0;
    height: auto; /* Allow image to define height in this layout */
}
#instructors .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm); /* Rounded only on left */
}
#instructors .card-content {
    padding: 20px;
    flex-grow: 1;
}
@media (max-width: 767px) { /* Stack on mobile */
    #instructors .card.neumorphic-card {
        flex-direction: column;
        text-align: center;
    }
    #instructors .card-image {
        flex: 0 0 auto;
        width: 100%; /* Full width on mobile */
        max-height: 250px; /* Control height */
    }
    #instructors .card-image img {
        border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0; /* Rounded top */
    }
    #instructors .card-content {
        text-align: center;
    }
}

/*--------------------------------------------------------------
# External Resources Section
--------------------------------------------------------------*/
#external-resources .card.neumorphic-card {
    height: 100%;
    justify-content: space-between; /* Pushes title/text up and link down if there was a button */
}
#external-resources .card-content {
    text-align: left;
}
#external-resources .card-title a.resource-link {
    color: var(--text-color-headings);
    text-decoration: none;
}
#external-resources .card-title a.resource-link:hover {
    color: var(--primary-darker-color);
    text-decoration: underline;
}
#external-resources .card-text {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/*--------------------------------------------------------------
# Careers Section
--------------------------------------------------------------*/
#careers .link-primary { /* For the mailto link */
    color: var(--primary-darker-color);
    font-weight: 500;
}
#careers .link-primary:hover {
    text-decoration: underline;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
#contact .contact-info p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}
#contact .contact-info strong {
    color: var(--text-color-headings);
}
#contact .contact-info a.link-secondary {
    color: var(--secondary-darker-color);
    font-weight: 500;
}
#contact .contact-info a.link-secondary:hover {
    color: var(--primary-darker-color);
}

#contact .neumorphic-image { /* For the map */
    padding: 10px;
}
#contact .img-fluid.rounded.neumorphic-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.neumorphic-footer {
    background-color: var(--bg-dark-pastel);
    padding: 40px 0;
    box-shadow: 0 -3px 10px rgba(var(--bg-light-pastel-rgb), 0.2);
}
.neumorphic-footer .navbar-brand-footer {
    font-family: var(--font-family-headings);
    font-weight: 700;
    color: var(--text-color-headings);
    font-size: 1.7rem;
    text-decoration: none;
    margin-bottom: 15px;
    display: inline-block;
}
.neumorphic-footer .list-inline-item {
    margin: 0 10px;
}
.neumorphic-footer .footer-link {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}
.neumorphic-footer .footer-link:hover {
    color: var(--primary-darker-color);
    text-decoration: none;
}
.neumorphic-footer .social-links a.footer-link {
    margin: 0 12px;
    font-size: 1rem; /* Slightly larger for social links */
    display: inline-block;
}
.neumorphic-footer .text-muted {
    color: var(--text-muted-color) !important;
    font-size: 0.9rem;
    margin-top: 20px;
}

/*--------------------------------------------------------------
# Specific Page Styles (success.html, privacy.html, terms.html)
--------------------------------------------------------------*/
.page-success-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
    background-color: var(--bg-light-pastel);
}
.page-success-container .neumorphic-card {
    max-width: 600px;
    width: 100%;
    padding: 40px;
}
.page-success-container h1 {
    color: var(--primary-darker-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.page-success-container p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.page-legal-content { /* For privacy.html and terms.html */
    padding-top: calc(var(--header-height) + 40px); /* Header height + extra space */
    padding-bottom: 60px;
    min-height: 80vh;
}
.page-legal-content h1 {
    margin-bottom: 30px;
    text-align: center;
}
.page-legal-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8rem;
}
.page-legal-content p, .page-legal-content ul, .page-legal-content ol {
    margin-bottom: 1rem;
    line-height: 1.8;
}
.page-legal-content ul, .page-legal-content ol {
    padding-left: 25px;
}

/*--------------------------------------------------------------
# Utility Classes
--------------------------------------------------------------*/
.text-shadow {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Read More Link Style */
.read-more-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: 500;
    color: var(--primary-darker-color);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(var(--primary-color-rgb, 167, 216, 222), 0.1);
    transition: var(--transition-speed);
}
.read-more-link:hover {
    background-color: rgba(var(--primary-color-rgb, 167, 216, 222), 0.2);
    color: var(--primary-darker-color);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Ensure background images cover and don't repeat */
[style*="background-image"] {
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
}

/* Parallax effect for specific elements if tagged with a class */
.parallax-bg {
    background-attachment: fixed;
}
/* Note: True parallax often requires JS for more complex effects than CSS background-attachment can provide,
   especially across multiple devices and for inner elements.
   The Motion One library or AOS can be used for more advanced scroll-triggered animations.
*/

/* Cookie Consent Popup (minimal styles, as requested in HTML) */
#cookiePopup a {
    color: var(--accent-color) !important; /* Using accent for cookie link */
}
#cookiePopup #acceptCookie {
    background-color: var(--accent-color) !important;
    color: var(--text-color-headings) !important;
}
#cookiePopup #acceptCookie:hover {
    background-color: var(--accent-darker-color) !important;
}

/* Ensure high contrast for text on images (already handled by linear-gradient in HTML) */
/* This is a reminder that image text overlays should be designed carefully in HTML */
html,body{
    overflow-x: hidden;
}