/* GLOBAL STYLES */
:root {
    --font-primary: 'Raleway', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;

    /* Complementary Color Scheme: Teal & Coral/Orange */
    --color-primary: #00796B; /* Darker Teal - Brutalism, stable */
    --color-secondary: #FF7043; /* Coral - Complementary Accent */
    --color-accent: #FFA000; /* Amber/Orange - Brighter Accent */

    --color-background: #F8F9FA; /* Very Light Gray/Off-white - Eco-minimalism base */
    --color-background-alt: #E9ECEF; /* Slightly darker off-white */

    --color-text-dark: #212121; /* Near Black - Strong contrast */
    --color-text-light: #FFFFFF;
    --color-text-muted: #6C757D;

    --color-border: #CED4DA; /* Light Gray for borders */
    --color-success: #28A745; /* Green */
    --color-error: #DC3545;   /* Red */

    --shadow-light: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-medium: 0 5px 15px rgba(0,0,0,0.12);
    --shadow-heavy: 0 8px 25px rgba(0,0,0,0.15);

    --border-radius: 0px; /* Brutalism: sharp edges */
    --transition-speed: 0.3s;

    --container-width: 1140px;
    --padding-section-y: 60px;
    --padding-section-y-sm: 40px;
}

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

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

body {
    font-family: var(--font-secondary);
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: var(--color-background);
    overflow-x: hidden; /* Prevent horizontal scroll */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 0px !important;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

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

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--color-text-dark); /* Ensure p text has good contrast */
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

/* UTILITY CLASSES */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.text-center { text-align: center; }
.text-light { color: var(--color-text-light) !important; }
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-accent { color: var(--color-accent) !important; }

.section-bg-alt {
    background-color: var(--color-background-alt);
}

.highlight {
    color: var(--color-secondary);
    font-weight: bold;
}

/* BUTTONS - GLOBAL STYLES */
.btn, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    padding: 0.8em 1.8em;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, border-color var(--transition-speed) ease, transform var(--transition-speed) ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-text-light);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    border-color: var(--color-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-text-dark);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    text-decoration: none;
}

/* FORMS - GLOBAL STYLES */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: var(--font-primary);
    color: var(--color-text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background-color: var(--color-text-light);
    color: var(--color-text-dark);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="number"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 121, 107, 0.25); /* --color-primary with alpha */
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* HEADER */
.site-header {
    background-color: var(--color-text-light);
    padding: 1rem 0;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

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

.logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
}
.logo:hover {
    color: var(--color-secondary);
    text-decoration: none;
}

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

.main-nav .nav-links li {
    margin-left: 1.8rem;
}

.main-nav .nav-links a {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-text-dark);
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.main-nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width var(--transition-speed) ease;
}

.main-nav .nav-links a:hover::after,
.main-nav .nav-links a.active::after {
    width: 100%;
}
.main-nav .nav-links a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.nav-toggle {
    display: none; /* Hidden by default, shown in media query */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 5px 0;
    transition: all var(--transition-speed) ease-in-out;
}

/* HERO SECTION */
.hero-section {
    color: var(--color-text-light);
    padding: 100px 0; /* Increased padding for impact */
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* Simple parallax effect */
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh; /* Ensure it takes significant viewport height */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)); /* Darker overlay */
    z-index: 1;
}

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

.hero-title {
    font-size: 3.5rem; /* Larger for hero */
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-text-light); /* Ensured white as per prompt */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Stronger shadow for readability */
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--color-text-light); /* Ensured white as per prompt */
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-section .btn-primary {
    padding: 1em 2.5em;
    font-size: 1.1rem;
}

/* CONTENT SECTIONS */
.content-section {
    padding: var(--padding-section-y) 0;
}

.section-title {
    margin-bottom: 1.5rem; /* Default margin */
    color: var(--color-text-dark);
    text-shadow: none; /* Remove any global text shadow if not needed */
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* COLUMNS (Basic implementation for .is-two-thirds etc.) */
.columns {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    margin-top: -0.75rem;
}

.column {
    display: block;
    flex-basis: 0;
    flex-grow: 1;
    flex-shrink: 1;
    padding: 0.75rem;
}

.column.is-one-third {
    flex: none;
    width: 33.3333%;
}

.column.is-two-thirds {
    flex: none;
    width: 66.6667%;
}

.column.is-half {
    flex: none;
    width: 50%;
}

/* CARD STYLES */
.card {
    background-color: var(--color-text-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex; /* For STROGO requirements on card structure */
    flex-direction: column;
    height: 100%; /* Make cards in a row equal height */
}

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

.card-image { /* This is the container for the img tag */
    width: 100%;
    overflow: hidden; /* Important for object-fit */
    /* Fixed height example, adjust as needed for specific card types */
    /* For team member: height: 250px; */
    /* For expert slider: height: 300px; */
    position: relative; /* For potential overlays if needed */
    display: flex; /* Center image within this container */
    justify-content: center;
    align-items: center;
}

.card-image img {
    width: 100%;
    height: 100%; /* Make image fill the container */
    object-fit: cover; /* Crucial for image display */
    display: block; /* Remove extra space below image */
}

.card-content {
    padding: 1.5rem;
    text-align: left; /* Default text align */
    flex-grow: 1; /* Allows content to fill space if card height is fixed by row */
    display: flex;
    flex-direction: column;
}
.card-content p:last-child {
    margin-bottom: 0;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.card-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Specific for cards where content should be centered (e.g. team member) */
.card.text-center .card-content,
.team-member .card-content,
.resource-item .card-content { /* Add other specific card types if needed */
    text-align: center;
    align-items: center; /* If flex-direction is column */
}

/* Team Section Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-member .card-image {
    height: 250px; /* Fixed height for team member images */
}
.team-member .card-image img {
    border-radius: var(--border-radius); /* Match card if any */
}

/* External Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.resource-item.card {
    text-align: left; /* Override default card centering if content is descriptive */
}
.resource-item .card-content {
    text-align: left;
    align-items: flex-start;
}
.resource-title {
    margin-bottom: 0.5rem;
}
.resource-title a {
    font-size: 1.2rem;
    font-weight: 700;
}
.resource-description {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* SLIDER (Nos Experts/Instructors) */
.slider-container {
    position: relative;
    max-width: 900px; /* Adjust as needed */
    margin: 0 auto;
    overflow: hidden; /* Important to hide non-visible slides */
}

.custom-slider {
    display: flex;
    transition: transform var(--transition-speed) ease-in-out;
}

.custom-slider .slide {
    min-width: 100%; /* Full width for single item display */
    box-sizing: border-box;
    padding: 0 10px; /* Spacing between slides if multiple are somewhat visible */
}

/* For a multi-item slider, adjust min-width */
/* Example for 3 items: .custom-slider .slide { min-width: calc(100% / 3); } */

.custom-slider .card .card-image {
    height: 300px; /* Fixed height for expert images */
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    cursor: pointer;
    z-index: 10;
    border-radius: var(--border-radius);
    font-size: 1.5rem;
}
.slider-btn:hover {
    background-color: var(--color-primary);
}
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }


/* FAQ - ACCORDION */
.accordion-item {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    background-color: var(--color-text-light);
}
.accordion-item:last-child {
    margin-bottom: 0;
}

.accordion-header {
    background-color: transparent;
    color: var(--color-text-dark);
    cursor: pointer;
    padding: 1rem 1.5rem;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-speed) ease;
}

.accordion-header:hover {
    background-color: var(--color-background-alt);
    color: var(--color-primary);
}

.accordion-header .accordion-icon {
    font-size: 1.2rem;
    transition: transform var(--transition-speed) ease;
    width: 1em;
    height: 1em;
    position: relative;
}
.accordion-header .accordion-icon::before,
.accordion-header .accordion-icon::after {
    content: '';
    position: absolute;
    background-color: currentColor; /* Use button's text color */
    transition: transform 0.3s ease;
}
.accordion-header .accordion-icon::before { /* Horizontal line */
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}
.accordion-header .accordion-icon::after { /* Vertical line */
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.accordion-header[aria-expanded="true"] .accordion-icon::after {
    transform: translateX(-50%) rotate(90deg);
}
.accordion-header[aria-expanded="true"] .accordion-icon::before {
    transform: translateY(-50%) rotate(180deg); /* Effectively hides it */
    opacity: 0;
}


.accordion-content {
    padding: 0 1.5rem;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease-out, padding var(--transition-speed) ease-out;
    border-top: 1px solid transparent; /* Separator when open */
}
.accordion-content p {
    padding: 1rem 0;
    margin-bottom: 0;
    font-size: 0.95rem;
}
.accordion-item .accordion-header[aria-expanded="true"] + .accordion-content {
    max-height: 500px; /* Adjust as needed */
    padding: 1rem 1.5rem;
    border-top-color: var(--color-border);
}

/* CONTACT SECTION */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--color-text-light);
    padding: 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}
.contact-form .btn-primary {
    width: 100%;
    padding: 1em;
}

/* FOOTER */
.site-footer {
    background-color: var(--color-text-dark);
    color: var(--color-text-light);
    padding: var(--padding-section-y) 0 var(--padding-section-y-sm);
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--color-background-alt);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.6rem;
}

.footer-column ul li a {
    opacity: 0.8;
    transition: opacity var(--transition-speed) ease;
}
.footer-column ul li a:hover {
    opacity: 1;
}

/* Footer Social Links (Textual) */
.footer-column h4 + ul li a { /* Assuming social links are under a h4 */
    font-weight: 600; /* Make them slightly bolder */
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* SPECIFIC PAGE STYLES */
/* Success Page */
.success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Full viewport height */
    text-align: center;
    padding: 2rem;
    background-color: var(--color-background);
}
.success-page-container .card {
    max-width: 500px;
    width: 100%;
    padding: 2rem;
}
.success-page-container h1 {
    color: var(--color-success);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.success-page-container p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Privacy & Terms Pages */
.privacy-page-container,
.terms-page-container {
    padding-top: 100px; /* Offset for fixed header */
    padding-bottom: var(--padding-section-y);
}
.privacy-page-container .container,
.terms-page-container .container {
    max-width: 800px; /* Readable width for text-heavy pages */
}
.privacy-page-container h1,
.terms-page-container h1 {
    text-align: center;
    margin-bottom: 2rem;
}
.privacy-page-container h2,
.terms-page-container h2 {
    text-align: left; /* Subheadings usually left-aligned for readability */
    margin-top: 2rem;
    color: var(--color-primary);
}

/* "Read More" link style */
.read-more-link {
    display: inline-block;
    font-weight: bold;
    color: var(--color-secondary);
    text-decoration: none;
    position: relative;
    padding-right: 1.2em; /* Space for arrow */
}

.read-more-link::after {
    content: '→'; /* Simple arrow */
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: right 0.2s ease-in-out;
}

.read-more-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.read-more-link:hover::after {
    right: -0.3em; /* Move arrow slightly on hover */
}

/* RESPONSIVE STYLES */
@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.9rem; }

    .column.is-one-third,
    .column.is-two-thirds,
    .column.is-half {
        width: 100%;
        flex: none;
    }
    .columns {
      flex-direction: column;
    }
    .columns .column:not(:last-child) {
      margin-bottom: 1rem; /* Add space between stacked columns */
    }
    .about-us-image { /* Example if an image is in a column */
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --padding-section-y: 40px;
        --padding-section-y-sm: 30px;
    }
    .hero-section {
        padding: 80px 0;
        min-height: 70vh;
    }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }

    .main-nav .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: var(--color-text-light);
        box-shadow: var(--shadow-light);
        padding: 1rem 0;
        border-top: 1px solid var(--color-border);
    }
    .main-nav .nav-links.active {
        display: flex;
    }
    .main-nav .nav-links li {
        margin-left: 0;
        text-align: center;
    }
    .main-nav .nav-links a {
        padding: 0.8rem 1rem;
        display: block;
        width: 100%;
    }
    .main-nav .nav-links a::after {
        display: none; /* Remove underline effect for mobile menu */
    }
    .nav-toggle {
        display: block;
    }
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .footer-grid {
        grid-template-columns: 1fr; /* Stack columns on small screens */
        text-align: center;
    }
    .footer-column ul {
        padding-left: 0;
    }
    .footer-column {
        margin-bottom: 1.5rem;
    }
     .custom-slider .slide {
        min-width: 100%; /* Ensure one slide per view on mobile */
        padding: 0 5px;
    }
}

@media (max-width: 576px) {
    html { font-size: 15px; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .hero-section .btn-primary {
        padding: 0.8em 1.8em;
        font-size: 1rem;
    }
    .contact-form {
        padding: 1.5rem;
    }
}

/* Parallax-like effect for elements if using JS */
.parallax-element {
    transition: transform 0.1s ease-out; /* Smooth movement */
}

/* Glassmorphism (example class, apply where needed) */
.glass-effect {
    background: rgba(255, 255, 255, 0.1); /* Light background for the glass */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius); /* Or a specific radius for glass elements */
}

/* Image container that requires specific height for object-fit */
.image-container {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-background-alt); /* Fallback if image fails or for transparent parts */
}
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}