/* General Styles */
:root {
    --dark-purple: #3A1C5A;
    --dark-purple-light: #4A2B6D;
    --dark-purple-card: #2C1445;
    --dark-purple-dark: #200F30;
    --primary-heading-color: #E0BBE4;
    --light-text-color: #F8F8F8;
    --accent-gold: #FFD700;
    --text-white-hover: #FFD700;
    --overlay-dark-purple: rgba(44, 20, 69, 0.85);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
    background-color: var(--dark-purple);
    color: var(--light-text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-heading-color);
}
a{
    text-decoration: none;
}

.text-primary-heading {
    color: var(--primary-heading-color) !important;
}

.text-light-text {
    color: var(--light-text-color) !important;
}

.bg-dark-purple {
    background-color: var(--dark-purple);
}

.bg-dark-purple-light {
    background-color: var(--dark-purple-light);
}

.bg-dark-purple-card {
    background-color: var(--dark-purple-card);
}

.bg-dark-purple-dark {
    background-color: var(--dark-purple-dark);
}

.bg-overlay-dark-purple {
    background-color: var(--overlay-dark-purple);
}

.btn-accent-gold {
    background-color: var(--accent-gold);
    color: var(--dark-purple-dark);
    border: none;
    transition: all 0.3s ease;
    text-decoration: none; /* Remove underline for buttons */
}

.btn-accent-gold:hover {
    background-color: #FFC107; /* Slightly darker gold on hover */
    color: var(--dark-purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-warning {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transition: all 0.3s ease;
    text-decoration: none; /* Remove underline for buttons */
}

.btn-outline-warning:hover,
.btn-check:checked + .btn-outline-warning {
    background-color: var(--accent-gold);
    color: var(--dark-purple-dark);
    border-color: var(--accent-gold);
}

.text-white-hover {
    transition: color 0.3s ease;
}

.text-white-hover:hover {
    color: var(--text-white-hover) !important;
}

.navbar-brand img {
    filter: brightness(0) invert(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%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Smooth scroll for anchor links */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto; /* left+right pinning decides width, avoids 100vw scrollbar issue */
    z-index: 2147483647; /* Ensure above any transformed stacking contexts */
    background-color: var(--dark-purple-dark) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Prevent clipping behind iOS home indicator on first load */
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    padding-bottom: calc(constant(safe-area-inset-bottom, 0px) + 8px); /* iOS < 11.2 fallback */
    will-change: transform; /* Hint compositor */
    transform: translateZ(0); /* Promote to its own layer */
    box-sizing: border-box;
    max-width: 100vw;
    overflow-x: hidden;
    contain: layout paint; /* isolate from siblings' transforms */
}

.cookie-banner .container {
    /* Ensure inner container also respects safe area on old/new iOS */
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    padding-bottom: max(8px, constant(safe-area-inset-bottom, 0px));
}

.cookie-banner a {
    color: var(--accent-gold) !important;
}

.cookie-banner .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--light-text-color);
}

.cookie-banner .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text-color);
}

/* Modal specific styling */
#cookieModal .modal-content {
    background-color: var(--dark-purple-card);
    border: 1px solid var(--dark-purple-light);
}

#cookieModal .modal-title {
    color: var(--primary-heading-color);
}

#cookieModal .form-check-label {
    color: var(--light-text-color);
}

#cookieModal .btn-close-white {
    filter: invert(1) brightness(2);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--dark-purple-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/graphics/subtle-flower-pattern.svg') repeat;
    opacity: 0.05;
    z-index: 0;
}

.hero-section .container-fluid {
    position: relative;
    z-index: 1;
}

/* About Section - Timeline */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-heading-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    z-index: 0;
}

.timeline-item {
    padding: 10px 0;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    z-index: 1;
}

.timeline-item.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    left: 0;
    padding-right: 30px;
}

.timeline-item.right {
    left: 50%;
    padding-left: 30px;
}

.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--dark-purple-dark);
    border: 2px solid var(--accent-gold);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-item.left .timeline-icon {
    right: -25px;
}

.timeline-item.right .timeline-icon {
    left: -25px;
}

.timeline-content {
    padding: 20px;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3) !important;
}

.feature-card i {
    font-size: 3.5rem;
}

/* Pricing Section (Masterclass Form) */
.bg-dark-input {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--light-text-color) !important;
}

.bg-dark-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25) !important;
}

.form-check-input:checked {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.form-check-input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
}

/* Team Section */
.team-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3) !important;
}

.fun-fact-overlay {
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none; /* Allows clicks on elements underneath */
}

.team-card:hover .fun-fact-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Masterclass Categories Slider Section */
.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.slider-track {
    transition: transform 0.5s ease-in-out;
}

.slider-item {
    min-width: 100%; /* Default for mobile */
    height: 400px; /* Fixed height for slider items */
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}

.slider-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.slider-item h3, .slider-item p, .slider-item .btn {
    position: relative;
    z-index: 1;
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light-text-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    text-decoration: none; /* Remove underline for buttons */
}

.slider-button:hover {
    background-color: rgba(0, 0, 0, 0.6);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.prev-button {
    left: 15px;
}

.next-button {
    right: 15px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.slider-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-dot.active {
    background-color: var(--accent-gold);
    transform: scale(1.2);
}

/* How It Works Section */
.how-it-works-list {
    position: relative;
}

.how-it-works-list::before {
    content: '';
    position: absolute;
    left: 45px; /* Adjust based on step-number size */
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: rgba(var(--primary-heading-color), 0.3);
}

.how-it-works-step {
    position: relative;
}

.slider-item{
    width: 100%;
}

.step-number {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    background-color: var(--accent-gold);
    color: var(--dark-purple-dark);
    border: 2px solid var(--accent-gold);
    z-index: 1;
    position: relative;
    left: 15px; /* Aligns with the line */
}

/* Testimonials Section */
.testimonial-card {
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3) !important;
}

.testimonial-card blockquote {
    border-left: 5px solid var(--accent-gold);
    padding-left: 15px;
    margin-left: 0;
    font-style: italic;
}

.testimonial-card .author {
    font-size: 1.1rem;
}

.testimonial-card .role {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Footer Section */
.footer-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a {
    color: var(--light-text-color);
    transition: color 0.3s ease;
    text-decoration: none; /* Remove underline for links */
}

.footer-links a:hover {
    color: var(--accent-gold);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section .col-md-6 {
        text-align: center !important;
    }

    .hero-section img {
        max-height: 400px;
        width: 100%;
    }

    .timeline::after {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 15px;
    }

    .timeline-item.right {
        left: 0;
        padding-left: 60px;
    }

    .timeline-item.left .timeline-icon,
    .timeline-item.right .timeline-icon {
        left: 5px;
        right: auto;
    }

    .how-it-works-list::before {
        left: 30px;
    }

    .step-number {
        left: 0;
    }

    .cookie-banner .container {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner p {
        margin-bottom: 10px !important;
    }
}
/* New styles for .trustPillarUnit and its children */

/* Wrapper for content sections */
.trustPillarUnit {
    padding: 80px 30px; /* Top/bottom padding and side padding for the section */
    max-width: 1200px; /* Optional: Constrain content width for better readability */
    margin-left: auto; /* Center the content wrapper horizontally */
    margin-right: auto; /* Center the content wrapper horizontally */
}

/* Heading 1 styles */
.trustPillarUnit h1 {
    font-size: 2.8rem; /* Large but not excessively huge */
    margin-bottom: 1.8rem; /* Spacing below the heading */
    line-height: 1.2; /* Standard line height for headings */
    font-weight: 700; /* Bold weight */
}

/* Heading 2 styles */
.trustPillarUnit h2 {
    font-size: 2.2rem; /* Slightly smaller than h1 */
    margin-bottom: 1.5rem; /* Spacing below the heading */
    line-height: 1.25; /* Standard line height for headings */
    font-weight: 600; /* Semi-bold weight */
}

/* Heading 3 styles */
.trustPillarUnit h3 {
    font-size: 1.8rem; /* Smaller than h2 */
    margin-bottom: 1.2rem; /* Spacing below the heading */
    line-height: 1.3; /* Standard line height for headings */
    font-weight: 600; /* Semi-bold weight */
}

/* Heading 4 styles */
.trustPillarUnit h4 {
    font-size: 1.5rem; /* Smaller than h3 */
    margin-bottom: 1rem; /* Spacing below the heading */
    line-height: 1.35; /* Standard line height for headings */
    font-weight: 500; /* Medium weight */
}

/* Heading 5 styles */
.trustPillarUnit h5 {
    font-size: 1.25rem; /* Smaller than h4 */
    margin-bottom: 0.8rem; /* Spacing below the heading */
    line-height: 1.4; /* Standard line height for headings */
    font-weight: 500; /* Medium weight */
}

/* Paragraph styles */
.trustPillarUnit p {
    font-size: 1rem; /* Base font size for paragraphs */
    margin-bottom: 1.5rem; /* Spacing between paragraphs */
    line-height: 1.6; /* Comfortable line height for readability */
}

/* Unordered list styles */
.trustPillarUnit ul {
    list-style-type: disc; /* Default disc bullet */
    margin-top: 1.5rem; /* Spacing above the list */
    margin-bottom: 1.5rem; /* Spacing below the list */
    padding-left: 25px; /* Indentation for list items */
}

/* List item styles */
.trustPillarUnit li {
    font-size: 1rem; /* Base font size for list items */
    margin-bottom: 0.8rem; /* Spacing between list items */
    line-height: 1.6; /* Consistent line height */
}
