/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: 'Work Sans', sans-serif;
    line-height: 1.7; /* Increased for better readability */
    color: var(--text-color-light);
    background-color: var(--background-main);
    overflow-x: hidden; /* Prevent horizontal scroll */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* CSS Variables */
:root {
    /* Tetrad Color Scheme - Futuristic */
    --primary-color: #0D0D2B; /* Deep Space Blue - Main Backgrounds */
    --primary-color-rgb: 13, 13, 43;

    --secondary-color: #00FFF2; /* Neon Cyan - Primary Accent, Glow Effects */
    --secondary-color-rgb: 0, 255, 242;

    --tertiary-color: #FF007A; /* Vivid Magenta - Secondary Accent */
    --tertiary-color-rgb: 255, 0, 122;

    --quaternary-color: #9F70FD; /* Galactic Purple - Tertiary Accent */
    --quaternary-color-rgb: 159, 112, 253;

    --background-main: #07091C; /* Even darker space blue for base */
    --background-card: #1A1A2E; /* Darker card background for depth */
    --background-card-rgb: 26, 26, 46;
    --background-overlay: rgba(var(--primary-color-rgb), 0.75); /* Overlay for backgrounds */
    --background-glass: rgba(var(--background-card-rgb), 0.65); /* Glassmorphism background */

    --text-color-light: #E0E0F0; /* Light bluish gray for text on dark backgrounds */
    --text-color-dark: #333333;  /* Dark gray for text on light backgrounds */
    --text-color-accent: var(--secondary-color);
    --text-color-headings-light: #FFFFFF; /* White for headings on dark backgrounds */
    --text-color-headings-dark: #1A1A2E; /* Very dark blue/almost black for headings on light backgrounds */

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Work Sans', sans-serif;

    --border-radius-small: 5px;
    --border-radius-medium: 10px;
    --border-radius-large: 20px;

    --shadow-light: 0 5px 15px rgba(var(--secondary-color-rgb), 0.08);
    --shadow-medium: 0 10px 30px rgba(var(--secondary-color-rgb), 0.12);
    --shadow-dark: 0 15px 45px rgba(var(--primary-color-rgb), 0.4);

    --transition-speed: 0.35s;
    --transition-timing: cubic-bezier(0.25, 0.8, 0.25, 1); /* Smoother transition */

    /* Gradients */
    --gradient-accent: linear-gradient(135deg, var(--secondary-color), var(--tertiary-color));
    --gradient-background: linear-gradient(180deg, var(--primary-color) 0%, var(--background-main) 100%);
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: 1280px; /* Slightly wider max-width */
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0; /* Increased padding for more space */
}

.section-padding-dark {
    padding: 100px 0;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    position: relative; /* For overlays */
}

/* Consistent styling for elements on dark backgrounds */
.section-padding-dark .section-title,
.section-padding-dark .section-subtitle,
.section-padding-dark h1, .section-padding-dark h2, .section-padding-dark h3, .section-padding-dark h4,
.section-padding-dark p,
.section-padding-dark li,
.section-padding-dark cite,
.section-padding-dark .post-meta,
.section-padding-dark .webinar-meta,
.section-padding-dark .instructor-title,
.section-padding-dark .press-item p,
.section-padding-dark .news-item h3,
.section-padding-dark .news-item p,
.section-padding-dark .news-meta,
.section-padding-dark .stat-label,
.section-padding-dark .contact-details p,
.section-padding-dark .form-group label {
    color: var(--text-color-light);
}
.section-padding-dark .section-subtitle { color: #b0b0d0; } /* Lighter subtitle for dark bg */


.section-padding-dark .card {
    background-color: var(--background-card);
    border: 1px solid rgba(var(--secondary-color-rgb), 0.15);
}

.section-padding-dark .btn-link-light {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed) var(--transition-timing);
}
.section-padding-dark .btn-link-light:hover {
    color: var(--tertiary-color);
    text-decoration: underline;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 2.8rem); /* Responsive font size */
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px; /* Increased margin */
    color: var(--text-color-headings-dark);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}
.section-padding-dark .section-title { text-shadow: 1px 1px 3px rgba(0,0,0,0.3); }


.section-subtitle {
    font-family: var(--font-secondary);
    font-size: clamp(1rem, 2.5vw, 1.15rem); /* Responsive font size */
    text-align: center;
    color: #5a5a70; /* Softer dark text */
    margin-bottom: 70px; /* Increased margin */
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.8em;
}

h1 { font-size: clamp(2.5rem, 6vw, 3.5rem); }
h2 { font-size: clamp(2rem, 5vw, 2.8rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2rem); }
h4 { font-size: clamp(1.1rem, 3vw, 1.4rem); }

p {
    font-family: var(--font-secondary);
    margin-bottom: 1.2em;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: var(--text-color-dark);
    line-height: 1.8;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-timing), opacity var(--transition-speed) var(--transition-timing);
}

a:hover {
    color: var(--tertiary-color);
    opacity: 0.85;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-small); /* Subtle rounding for all images */
}

/* Global Button Styles */
.btn, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    padding: 14px 35px; /* Slightly larger padding */
    border-radius: var(--border-radius-medium); /* More rounded */
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-speed) var(--transition-timing);
    border: 2px solid transparent;
    letter-spacing: 0.8px; /* Increased letter spacing */
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn::before, button::before, input[type="submit"]::before, input[type="button"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease-in-out, height 0.4s ease-in-out;
    z-index: -1;
    opacity: 0;
}

.btn:hover::before, button:hover::before, input[type="submit"]:hover::before, input[type="button"]:hover::before {
    width: 250%; /* Larger ripple effect */
    height: 250%;
    opacity: 1;
}

.btn-primary {
    background-image: var(--gradient-accent);
    color: #FFFFFF;
    border: none;
}

.btn-primary:hover {
    color: #FFFFFF;
    transform: translateY(-3px) scale(1.02); /* More pronounced hover effect */
    box-shadow: 0 10px 20px rgba(var(--tertiary-color-rgb), 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(var(--secondary-color-rgb), 0.25);
}

/* 'Read More' Link Style */
.btn-link {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--tertiary-color);
    text-decoration: none;
    padding: 6px 0;
    position: relative;
    display: inline-block;
    transition: color var(--transition-speed) var(--transition-timing), letter-spacing var(--transition-speed) var(--transition-timing);
}
.section-padding-dark .btn-link { color: var(--secondary-color); }
.section-padding-dark .btn-link:hover { color: var(--tertiary-color); }


.btn-link::after {
    content: '→';
    margin-left: 10px;
    transition: transform var(--transition-speed) var(--transition-timing);
    display: inline-block;
    font-weight: normal;
}

.btn-link:hover {
    color: var(--secondary-color);
    letter-spacing: 0.5px;
}

.btn-link:hover::after {
    transform: translateX(6px);
}

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: rgba(var(--primary-color-rgb), 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(var(--secondary-color-rgb), 0.1);
    transition: background-color var(--transition-speed) var(--transition-timing), padding var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
}

.site-header.scrolled {
    background-color: rgba(var(--primary-color-rgb), 0.95);
    padding: 15px 0;
    box-shadow: 0 5px 25px rgba(0,0,0,0.35);
}

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

.logo {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(var(--secondary-color-rgb),0.5);
}

.logo:hover {
    color: var(--secondary-color);
}

.main-navigation .nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-navigation .nav-list li {
    margin-left: 35px;
}

.main-navigation .nav-list a {
    font-family: var(--font-primary);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    font-weight: 500;
    color: var(--text-color-light);
    text-decoration: none;
    padding: 8px 0;
    position: relative;
}

.main-navigation .nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px; /* Thicker underline */
    bottom: -5px; /* Further down */
    left: 0;
    background-image: var(--gradient-accent);
    border-radius: 2px;
    transition: width var(--transition-speed) var(--transition-timing);
}

.main-navigation .nav-list a:hover::after,
.main-navigation .nav-list a.active::after {
    width: 100%;
}

.main-navigation .nav-list a:hover,
.main-navigation .nav-list a.active {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Ensure toggle is above nav list when it appears */
}

.hamburger {
    display: block;
    width: 30px; /* Larger hamburger */
    height: 3px;
    background-color: #FFFFFF;
    position: relative;
    transition: background-color 0.1s 0.2s ease-in-out; /* Delay background transition */
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: #FFFFFF;
    left: 0;
    transition: transform 0.2s ease-in-out, top 0.2s 0.2s ease-in-out; /* Delay top transition */
}

.hamburger::before { top: -10px; } /* More spacing */
.hamburger::after { top: 10px; }

.menu-toggle.active .hamburger { background-color: transparent; }
.menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
    transition: top 0.2s ease-in-out, transform 0.2s 0.2s ease-in-out; /* Delay transform */
}
.menu-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
    transition: top 0.2s ease-in-out, transform 0.2s 0.2s ease-in-out; /* Delay transform */
}

/* Hero Section */
.hero-section {
    min-height: 100vh; /* Ensure it takes full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #FFFFFF;
    padding: 120px 20px 80px; /* Top padding for header, bottom for balance */
    box-sizing: border-box;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(var(--primary-color-rgb), 0.5), rgba(var(--primary-color-rgb), 0.85));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 4.5rem); /* Dynamic title size */
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.15; /* Tighter line height for large titles */
    color: #FFFFFF;
    text-shadow: 0 2px 15px rgba(0,0,0,0.5); /* Softer, larger shadow */
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: 40px;
    font-weight: 400;
    color: #E0E0F0;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
    line-height: 1.7;
}

.hero-section .btn-primary {
    padding: 18px 45px;
    font-size: clamp(1rem, 2vw, 1.15rem);
}

/* General Card Styling */
.card {
    background-color: #FFFFFF;
    border-radius: var(--border-radius-medium);
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
    display: flex;
    flex-direction: column;
    text-align: center;
    border: 1px solid #E8E8F0; /* Softer border */
    height: 100%; /* Make cards in a grid equal height */
}

.section-padding-dark .card {
    background-color: var(--background-card);
    border: 1px solid rgba(var(--secondary-color-rgb), 0.2);
    box-shadow: 0 8px 30px rgba(var(--primary-color-rgb), 0.3);
}

.card:hover {
    transform: translateY(-12px) scale(1.01); /* Enhanced hover */
    box-shadow: 0 15px 40px rgba(var(--primary-color-rgb), 0.15);
}
.section-padding-dark .card:hover {
    box-shadow: 0 15px 40px rgba(var(--secondary-color-rgb), 0.2);
}

.card-image {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* For potential overlays on card images */
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--transition-timing), filter 0.4s var(--transition-timing);
}
.card:hover .card-image img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.card-content {
    padding: 30px; /* Increased padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card-content h3 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    margin-bottom: 18px;
    color: var(--text-color-headings-dark);
}
.section-padding-dark .card-content h3 { color: var(--text-color-headings-light); }

.card-content p {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    color: #5a5a70;
    margin-bottom: 25px;
    flex-grow: 1;
}
.section-padding-dark .card-content p { color: var(--text-color-light); }

/* Specific Section Styles */

/* Our Process Section */
.our-process-section .process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); /* Responsive minmax */
    gap: 35px;
}
.our-process-section .step .card-image { height: 120px; padding: 15px; }
.our-process-section .step .card-image img { max-height: 70px; width: auto; object-fit: contain; border-radius: 0;}

/* Webinars Section */
.webinars-section .webinars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 35px;
}
.webinars-section .card .card-image { height: 240px; } /* Fixed height for image container */
.webinars-section .webinar-meta {
    font-size: 0.9rem;
    color: var(--quaternary-color);
    margin-bottom: 12px;
    font-weight: 500;
}
.section-padding-dark .webinars-section .webinar-meta { color: var(--quaternary-color); }


/* Instructors Section */
.instructors-section .instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 35px;
}
.instructors-section .instructor-card .card-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 25px auto 0;
    border: 5px solid;
    border-image-slice: 1;
    border-image-source: var(--gradient-accent);
    padding: 5px;
    background-color: var(--primary-color);
}
.instructors-section .instructor-card .card-image img { border-radius: 50%; }
.instructors-section .instructor-title {
    font-size: 1rem;
    color: var(--tertiary-color);
    font-weight: 600;
    margin-bottom: 12px;
}
.section-padding-dark .instructors-section .instructor-title { color: var(--secondary-color); }


/* Stats Section */
.stats-section .section-overlay { background: var(--background-overlay); z-index: 1; }
.stats-section .container { position: relative; z-index: 2; }
.stats-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 35px;
    text-align: center;
}
.stat-widget {
    padding: 25px;
    background-color: var(--background-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--border-radius-medium);
    border: 1px solid rgba(var(--secondary-color-rgb), 0.25);
    box-shadow: 0 0 30px rgba(var(--secondary-color-rgb),0.1) inset;
}
.stat-value {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
    line-height: 1;
}
.stat-label { font-size: clamp(0.9rem, 2vw, 1.05rem); }

/* Projects Section */
.projects-section .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 35px;
}
.projects-section .card .card-image { height: 240px; }

/* Customer Stories / Testimonials Section */
.customer-stories-section .section-overlay { background: var(--background-overlay); z-index: 1; }
.customer-stories-section .container { position: relative; z-index: 2; }
.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 35px;
}
.testimonial-card {
    background-color: var(--background-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--secondary-color-rgb), 0.25);
    padding: 30px;
    box-shadow: 0 0 35px rgba(var(--primary-color-rgb),0.4);
}
.testimonial-card p { font-style: italic; font-size: clamp(1rem, 2vw, 1.1rem); margin-bottom: 25px; }
.testimonial-card cite { font-weight: 600; color: var(--secondary-color); display: block; text-align: right; font-size: 0.95rem; }
.testimonial-card cite strong { color: #FFFFFF; }

/* Blog Section */
.blog-section .blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 35px;
}
.blog-section .card .card-image { height: 220px; }
.blog-section .post-meta { font-size: 0.85rem; color: #777; margin-bottom: 12px; }
.section-padding-dark .blog-section .post-meta { color: var(--quaternary-color); }


/* News Section */
.news-section .section-overlay { background: var(--background-overlay); z-index: 1; }
.news-section .container { position: relative; z-index: 2; }
.news-list .news-item {
    background-color: rgba(var(--background-card-rgb), 0.7);
    padding: 30px;
    border-radius: var(--border-radius-medium);
    margin-bottom: 30px;
    border-left: 5px solid var(--secondary-color);
    transition: background-color var(--transition-speed) var(--transition-timing), transform var(--transition-speed) var(--transition-timing);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb),0.2);
}
.news-list .news-item:hover {
    background-color: rgba(var(--background-card-rgb), 0.9);
    transform: translateX(5px);
}
.news-item h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); margin-bottom: 10px; }
.news-item .news-meta { font-size: 0.9rem; color: var(--quaternary-color); margin-bottom: 15px; }
.news-item p { font-size: clamp(0.9rem, 1.8vw, 1rem); margin-bottom: 18px; }

/* Events Calendar Section */
.events-section .events-calendar .event-item {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin-bottom: 35px;
    padding: 25px;
    border: 1px solid #e0e0e0; /* Default border for light bg */
}
.section-padding-dark .events-section .event-item {
    border: 1px solid rgba(var(--secondary-color-rgb), 0.2);
    background-color: rgba(var(--background-card-rgb), 0.5);
}

.events-section .event-item .card-image { /* Icon container */
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background-image: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.events-section .event-item .card-image img { max-width: 38px; max-height: 38px; object-fit: contain; border-radius: 0; }
.events-section .event-item .card-content { padding: 0; text-align: left; }
.events-section .event-item .card-content h3 { margin-top: 0; font-size: clamp(1.2rem, 2.8vw, 1.5rem); }
.events-section .event-item p { margin-bottom: 0.6em; font-size: clamp(0.9rem, 1.8vw, 1rem); }
.events-section .event-item p strong { color: var(--tertiary-color); }
.section-padding-dark .events-section .event-item p strong { color: var(--secondary-color); }


/* Press Section */
.press-section .section-overlay { background: var(--background-overlay); z-index: 1; }
.press-section .container { position: relative; z-index: 2; }
.press-mentions .press-item {
    margin-bottom: 30px;
    padding: 25px;
    border-left: 4px solid var(--tertiary-color);
    background-color: rgba(var(--background-card-rgb), 0.6);
    border-radius: var(--border-radius-medium);
}
.press-mentions .press-item p { font-style: italic; margin-bottom: 12px; font-size: clamp(0.95rem, 1.9vw, 1.05rem); }
.press-mentions .press-item p strong { color: var(--secondary-color); font-style: normal; }
.press-link { font-weight: 600; color: var(--secondary-color); text-decoration: underline; }
.press-link:hover { color: var(--tertiary-color); }

/* External Resources Section */
.external-resources-section .resources-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 30px;
}
.external-resources-section .resource-item.card { border-left: 4px solid var(--quaternary-color); }
.external-resources-section .resource-item .card-content { text-align: left; }
.external-resources-section .resource-item h3 a { color: var(--tertiary-color); font-size: clamp(1.1rem, 2.5vw, 1.3rem); }
.external-resources-section .resource-item h3 a:hover { color: var(--secondary-color); text-decoration: underline; }
.external-resources-section .resource-item p { font-size: 0.95rem; color: #666; margin-bottom: 12px; }
.external-resources-section .resource-source { font-size: 0.85rem; color: #888; font-style: italic; }

/* Contact Section (on Homepage) */
.contact-section .section-overlay { background: var(--background-overlay); z-index: 1; }
.contact-section .container { position: relative; z-index: 2; }

.contact-form-container {
    max-width: 750px;
    margin: 0 auto 50px auto;
    background-color: var(--background-glass);
    padding: 35px 45px;
    border-radius: var(--border-radius-large); /* More rounded */
    box-shadow: 0 10px 40px rgba(var(--primary-color-rgb), 0.5);
    border: 1px solid rgba(var(--secondary-color-rgb), 0.15);
}

.form-group { margin-bottom: 25px; }
.form-group label {
    display: block;
    font-family: var(--font-primary);
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-color-light);
    font-size: clamp(0.85rem, 1.7vw, 0.95rem);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--border-radius-medium);
    border: 1px solid rgba(var(--quaternary-color-rgb), 0.4);
    background-color: rgba(var(--primary-color-rgb), 0.8);
    color: var(--text-color-light);
    font-family: var(--font-secondary);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    transition: border-color var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing), background-color var(--transition-speed) var(--transition-timing);
}
.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group textarea::placeholder { color: #9090b0; }

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: rgba(var(--primary-color-rgb), 0.95);
    box-shadow: 0 0 0 3px rgba(var(--secondary-color-rgb), 0.25), 0 0 15px rgba(var(--secondary-color-rgb),0.15) inset;
}
.form-group textarea { resize: vertical; min-height: 130px; }

.contact-details { text-align: center; }
.contact-details p { margin-bottom: 12px; font-size: clamp(0.95rem, 1.9vw, 1.05rem); display: flex; align-items: center; justify-content: center; }
.contact-details .contact-icon {
    margin-right: 12px; width: 22px; height: 22px;
    filter: invert(92%) sepia(39%) saturate(6798%) hue-rotate(102deg) brightness(109%) contrast(101%); /* Cyan filter */
}


/* Footer */
.site-footer {
    background-color: #05060D; /* Darkest background */
    color: #a0a0c0; /* Softer light text for footer */
    padding: 80px 0 30px 0;
    border-top: 4px solid;
    border-image-slice: 1;
    border-image-source: var(--gradient-accent);
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 40px;
    margin-bottom: 50px;
}
.footer-about h4, .footer-links h4, .footer-social h4 {
    font-family: var(--font-primary);
    font-size: clamp(1.2rem, 2.8vw, 1.5rem);
    color: #FFFFFF;
    margin-bottom: 25px;
    position: relative;
}
.footer-about h4::after, .footer-links h4::after, .footer-social h4::after {
    content: ''; position: absolute; left: 0; bottom: -10px; width: 50px; height: 3px;
    background-image: var(--gradient-accent); border-radius: 2px;
}
.footer-about p { font-size: 0.95rem; line-height: 1.8; }
.footer-links ul, .footer-social .social-media-list { list-style: none; padding: 0; margin: 0; }
.footer-links ul li, .footer-social .social-media-list li { margin-bottom: 12px; }
.footer-links ul li a, .footer-social .social-media-list li a {
    color: #b0b0d0;
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-timing), padding-left var(--transition-speed) var(--transition-timing);
    font-size: 1rem;
    display: inline-block; /* For padding-left transition */
}
.footer-links ul li a:hover, .footer-social .social-media-list li a:hover {
    color: var(--secondary-color);
    padding-left: 8px;
}
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(var(--secondary-color-rgb), 0.1); }
.footer-bottom p { font-size: 0.9rem; color: #8080a0; }

/* Page Specific Styles */

/* Success Page: section itself tries to be 100vh and center content.
   For this to work perfectly with header/footer, the parent <main> should be flex-grow:1
   in a display:flex; flex-direction:column structure for body or .site-container. */
.success-message-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* As requested for the section */
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 20px; /* Padding for content within the 100vh section */
    box-sizing: border-box;
}
.success-message-section .section-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(var(--primary-color-rgb),0.6), rgba(var(--primary-color-rgb),0.9));
    z-index: 0;
}
.success-message-section .container { position: relative; z-index: 1; }
.success-message-section .section-title { color: var(--text-color-headings-light); text-shadow: 0 1px 5px rgba(0,0,0,0.4); }
.success-message-section p { color: var(--text-color-light); }


/* Privacy, Terms, About Pages */
.page-hero {
    min-height: 45vh; /* Slightly taller */
    display: flex; align-items: center; justify-content: center; text-align: center;
    position: relative; background-size: cover; background-position: center; background-repeat: no-repeat;
    color: #FFFFFF; padding-top: 100px; /* For fixed header */
}
.page-hero .hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(var(--primary-color-rgb), 0.65), rgba(var(--primary-color-rgb), 0.9));
    z-index: 1;
}
.page-hero .hero-content { position: relative; z-index: 2; max-width: 750px; }
.page-hero .hero-title { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page-hero .hero-subtitle { font-size: clamp(1rem, 2.5vw, 1.3rem); }

.content-section { /* For privacy, terms, about main content area */
    padding-top: 100px; /* IMPORTANT: Avoid overlap with fixed header */
    padding-bottom: 100px;
    background-color: #F4F6F8; /* Clean light background */
}
.content-section .content-wrapper {
    max-width: 850px;
    margin: 0 auto;
    background-color: #FFFFFF;
    padding: 50px; /* More padding */
    border-radius: var(--border-radius-medium);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.content-section h1, .content-section h2, .content-section h3 { color: var(--text-color-headings-dark); }
.content-section p, .content-section ul li { color: var(--text-color-dark); line-height: 1.85; }
.content-section ul { list-style: disc; margin-left: 25px; margin-bottom: 1.8em; }
.content-section strong { color: var(--tertiary-color); } /* Using tertiary for strong emphasis on light bg */
.content-section a { color: var(--tertiary-color); font-weight: 500; }
.content-section a:hover { text-decoration: underline; color: var(--secondary-color); }

.content-section .values-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 25px; margin: 35px 0;
}
.content-section .value-item.card { background-color: #E9EFF5; text-align: left; box-shadow: none; border-color: #D8E0E8;}
.content-section .value-item.card h3 { color: var(--tertiary-color); font-size: clamp(1.1rem, 2.5vw, 1.3rem); }

/* Contact Page Specifics (contacts.html) */
#contacto-pagina { background-color: #F4F6F8; /* Light bg for contact page */ }
#contacto-pagina .contact-form-container {
    background-color: #FFFFFF;
    padding: 45px;
    border: 1px solid #D8E0E8;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
#contacto-pagina .form-group label { color: var(--text-color-dark); }
#contacto-pagina .form-group input[type="text"],
#contacto-pagina .form-group input[type="email"],
#contacto-pagina .form-group textarea {
    background-color: #F8F9FA;
    color: var(--text-color-dark);
    border: 1px solid #CED4DA;
}
#contacto-pagina .form-group input[type="text"]:focus,
#contacto-pagina .form-group input[type="email"]:focus,
#contacto-pagina .form-group textarea:focus {
    border-color: var(--tertiary-color);
    box-shadow: 0 0 0 3px rgba(var(--tertiary-color-rgb), 0.15);
    background-color: #fff;
}
#contacto-pagina .contact-info-full-page { margin-top: 60px; text-align: left; }
#contacto-pagina .contact-info-full-page .info-title {
    font-size: clamp(1.6rem, 3.5vw, 2rem);
    color: var(--text-color-headings-dark);
    margin-bottom: 25px; text-align: center;
}
#contacto-pagina .contact-info-full-page p { color: var(--text-color-dark); margin-bottom: 18px; }
#contacto-pagina .contact-details-list { list-style: none; padding: 0; }
#contacto-pagina .contact-details-list li {
    display: flex; align-items: center; margin-bottom: 18px;
    font-size: clamp(0.95rem, 1.9vw, 1.05rem); color: var(--text-color-dark);
}
#contacto-pagina .contact-details-list li img { /* Icons on contact page */
    margin-right: 18px; width: 30px; height: 30px;
    filter: invert(25%) sepia(58%) saturate(3791%) hue-rotate(315deg) brightness(97%) contrast(101%); /* Magenta */
}

/* Scroll Reveal (JS will handle actual reveal) */
.scroll-reveal { visibility: hidden; }

/* Responsive Design */
@media (max-width: 992px) {
    .section-padding, .section-padding-dark { padding: 80px 0; }
    .main-navigation .nav-list li { margin-left: 25px; }
}

@media (max-width: 768px) {
    .section-padding, .section-padding-dark { padding: 70px 0; }
    .section-title { margin-bottom: 40px; }
    .section-subtitle { margin-bottom: 50px; }

    .main-navigation .nav-list {
        display: none; flex-direction: column; position: absolute;
        top: 100%; left: 0; width: 100%;
        background-color: rgba(var(--primary-color-rgb), 0.98);
        padding: 10px 0;
        border-top: 1px solid rgba(var(--secondary-color-rgb), 0.15);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    .main-navigation .nav-list.active { display: flex; }
    .main-navigation .nav-list li { margin: 0; width: 100%; text-align: left; }
    .main-navigation .nav-list a {
        display: block; padding: 15px 25px; width: 100%;
        border-bottom: 1px solid rgba(var(--secondary-color-rgb), 0.08);
    }
    .main-navigation .nav-list li:last-child a { border-bottom: none; }
    .main-navigation .nav-list a::after { display: none; }
    .main-navigation .nav-list a:hover,
    .main-navigation .nav-list a.active {
        background-color: rgba(var(--secondary-color-rgb), 0.05);
        color: var(--secondary-color);
    }
    .menu-toggle { display: block; }

    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-about h4::after, .footer-links h4::after, .footer-social h4::after {
        left: 50%; transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .container { width: 95%; padding: 0 15px; }
    .section-padding, .section-padding-dark { padding: 60px 0; }
    .section-title { margin-bottom: 30px; }
    .section-subtitle { margin-bottom: 40px; }

    .our-process-section .process-steps,
    .webinars-section .webinars-grid,
    .instructors-section .instructors-grid,
    .stats-widgets,
    .projects-section .projects-grid,
    .testimonial-slider,
    .blog-section .blog-posts-grid,
    .external-resources-section .resources-list {
        grid-template-columns: 1fr; /* Stack cards */
        gap: 25px;
    }
    .instructors-section .instructor-card .card-image { width: 160px; height: 160px; }
    .contact-form-container { padding: 25px 20px; }
    .content-section .content-wrapper { padding: 30px 20px; }
    .hero-section { padding: 100px 15px 60px; }
}

/* Cookie Popup */
#cookiePopup {
    font-family: var(--font-secondary);
    /* Inline styles in HTML are primary, this is for fallback/enhancement */
}
#cookiePopup p { color: var(--text-color-light); }

html,body{
    overflow-x: hidden;
}