/* style.css */

/* CSS Variables */
:root {
    --primary-color: #20C997; /* Vibrant Teal/Green */
    --secondary-color: #FF7F50; /* Coral */
    --accent-color: #FFC107; /* Amber/Yellow */

    --text-color: #212529; /* Very Dark Gray / Off-Black */
    --text-color-light: #F8F9FA; /* Almost White */
    --text-color-muted: #6c757d; /* Muted gray for subtitles/descriptions */

    --bg-color-light: #FFFFFF;
    --bg-color-medium: #F1F3F5; /* Very Light Gray for section backgrounds */
    --bg-color-dark: #343A40; /* Dark Gray for dark sections like footer/stats */

    --border-color: #DEE2E6;
    --border-color-darker: #adb5bd;

    --font-family-headings: 'Manrope', sans-serif;
    --font-family-body: 'Rubik', sans-serif;

    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    --border-radius-sm: 0.3rem; /* ~5px */
    --border-radius-md: 0.6rem; /* ~10px, biomorphic hint */
    --border-radius-lg: 1.2rem; /* ~20px, more biomorphic */
    --border-radius-pill: 50rem;
    --border-radius-blob-soft: 30% 70% 70% 30% / 50% 30% 70% 50%; /* Softer blob */

    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;

    --transition-speed-fast: 0.2s;
    --transition-speed-normal: 0.3s;
    --transition-speed-slow: 0.5s;
    --transition-timing-function: ease-in-out;

    --header-height: 80px;
}

/* Global Styles */
*,
*::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-family-body);
    color: var(--text-color);
    background-color: var(--bg-color-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.main-wrapper {
    overflow-x: hidden; /* Ensures no horizontal scroll from content */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    color: var(--text-color);
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.8rem; font-weight: var(--font-weight-extrabold); }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-color-muted);
}

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

a:hover, a:focus {
    color: var(--secondary-color);
    text-decoration: none; /* or underline if preferred */
}

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

ul, ol {
    list-style-position: inside;
    padding-left: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

ul li, ol li {
    margin-bottom: var(--spacing-xs);
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

/* Section Styling */
.section-padding {
    padding-top: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--text-color); /* Ensure dark color for titles */
    position: relative;
}
/* Optional: Add a subtle underline/accent for section titles */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: var(--spacing-xs) auto 0;
    border-radius: var(--border-radius-pill);
}

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

.sub-section-title {
    font-size: 1.8rem;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

/* Background Utility Classes */
.bg-light { background-color: var(--bg-color-light); }
.bg-medium { background-color: var(--bg-color-medium); }
.bg-dark { background-color: var(--bg-color-dark); }

.text-light h1, .text-light h2, .text-light h3, .text-light h4, .text-light h5, .text-light h6,
.text-light p, .text-light li, .text-light .stat-label, .text-light .stat-description {
    color: var(--text-color-light);
}
.text-light a { color: var(--accent-color); }
.text-light a:hover { color: var(--bg-color-light); }
.text-light .section-title::after { background-color: var(--accent-color); }

.text-center { text-align: center; }

/* Button Styles - Global */
.btn, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    font-family: var(--font-family-headings);
    font-weight: var(--font-weight-bold);
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 2px solid transparent;
    padding: 0.75rem 1.8rem; /* Generous padding */
    font-size: 1rem;
    border-radius: var(--border-radius-pill); /* Pill shape for modern feel */
    transition: all var(--transition-speed-normal) var(--transition-timing-function);
    text-decoration: none; /* Ensure no underline for <a> styled as buttons */
    line-height: 1.5;
}

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

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--bg-color-light);
    transform: translateY(-3px) scale(1.03); /* Morphing hint */
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--bg-color-light);
    border-color: var(--secondary-color);
}
.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-color-light);
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary-color);
    color: var(--bg-color-light);
    transform: translateY(-3px);
}

/* Custom morphing effect for specific buttons if needed */
.btn-morph {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-morph::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width var(--transition-speed-slow) var(--transition-timing-function), height var(--transition-speed-slow) var(--transition-timing-function);
    z-index: -1;
}
.btn-morph:hover::before {
    width: 300%;
    height: 300%;
}


/* Form Elements - Modern Styling */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-family: var(--font-family-headings);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-xs);
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="password"],
.form-group input[type="search"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-family-body);
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--bg-color-light);
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md); /* Softer radius for inputs */
    transition: border-color var(--transition-speed-fast) var(--transition-timing-function), box-shadow var(--transition-speed-fast) var(--transition-timing-function);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="url"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="search"]:focus,
.form-group input[type="number"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color), 0.25); /* Use primary color's RGB values for RGBA */
}

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


/* Columns (Bulma-like basic styling) */
.columns {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    margin-top: -0.75rem;
}
.columns:not(:last-child) {
    margin-bottom: calc(1.5rem - 0.75rem);
}
.column {
    display: block;
    flex-basis: 0;
    flex-grow: 1;
    flex-shrink: 1;
    padding: 0.75rem;
}
.column.is-two-thirds {
    flex: none;
    width: 66.6666%;
}


/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent */
    backdrop-filter: blur(10px); /* Glassmorphism */
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    height: var(--header-height);
    transition: background-color var(--transition-speed-normal) var(--transition-timing-function);
}
.site-header.scrolled { /* Add via JS on scroll */
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

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

.logo {
    font-family: var(--font-family-headings);
    font-size: 1.8rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--text-color);
    text-decoration: none;
}
.logo .logo-accent {
    color: var(--primary-color);
}

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

.main-navigation .nav-menu li {
    margin-left: var(--spacing-md);
    margin-bottom: 0;
}

.main-navigation .nav-menu a {
    font-family: var(--font-family-headings);
    font-weight: var(--font-weight-medium);
    color: var(--text-color);
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    transition: color var(--transition-speed-normal), background-color var(--transition-speed-normal);
    position: relative;
}

.main-navigation .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed-normal) var(--transition-timing-function);
}

.main-navigation .nav-menu a:hover,
.main-navigation .nav-menu a.active, /* Add 'active' class via JS */
.main-navigation .nav-menu a:focus {
    color: var(--primary-color);
}
.main-navigation .nav-menu a:hover::after,
.main-navigation .nav-menu a.active::after,
.main-navigation .nav-menu a:focus::after {
    width: 80%;
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}
.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    position: relative;
    transition: transform var(--transition-speed-normal) var(--transition-timing-function);
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: transform var(--transition-speed-normal) var(--transition-timing-function), top var(--transition-speed-normal) var(--transition-timing-function);
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-toggle.active .hamburger {
    background-color: transparent; /* Middle line disappears */
}
.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}


/* Hero Section */
.hero-section {
    position: relative;
    color: var(--bg-color-light); /* Text must be white as per requirement */
    padding-top: calc(var(--header-height) + var(--spacing-xl));
    padding-bottom: var(--spacing-xl);
    min-height: 80vh; /* Slightly less than full viewport to avoid being too dominant */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb, 32, 201, 151), 0.3), rgba(var(--secondary-color-rgb, 255, 127, 80), 0.4)), rgba(0,0,0,0.5);
    /* Fallback if CSS variables for RGB are not set up for gradient:
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7)); */
    z-index: 1;
}
/* Define --primary-color-rgb and --secondary-color-rgb if you want to use them in gradients:
   --primary-color-rgb: 32, 201, 151;
   --secondary-color-rgb: 255, 127, 80;
   Then use like: background: linear-gradient(rgba(var(--primary-color-rgb), 0.3), ...);
   For simplicity, using a general dark overlay for now as the base requirement.
*/

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

.hero-title {
    font-size: 3.5rem; /* Larger for hero */
    font-weight: var(--font-weight-extrabold);
    color: #FFFFFF !important; /* Enforce white text as per requirement */
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Ensure readability */
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #FFFFFF !important; /* Enforce white text */
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4); /* Ensure readability */
}

.hero-section .btn {
    margin-top: var(--spacing-sm);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}


/* About Us Section */
.about-us-section .image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--spacing-md);
}
.about-us-section .image-container img {
    border-radius: var(--border-radius-lg); /* Biomorphic touch */
    box-shadow: var(--shadow-lg);
    max-width: 100%;
}
.about-us-section .columns {
    align-items: center;
}

/* Services & Insights Section (Card-based) */
.services-grid, .insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.card {
    background-color: var(--bg-color-light);
    border-radius: var(--border-radius-lg); /* Biomorphic curves */
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition-speed-normal) var(--transition-timing-function), box-shadow var(--transition-speed-normal) var(--transition-timing-function);
    display: flex;
    flex-direction: column;
    text-align: center; /* Center content inside the card */
}

.card:hover {
    transform: translateY(-10px) scale(1.02); /* Subtle morph/lift */
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    height: 220px; /* Fixed height for image containers */
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area, might crop */
    transition: transform var(--transition-speed-slow) var(--transition-timing-function);
}
.card:hover .card-image img {
    transform: scale(1.1); /* Zoom effect on image hover */
}

.card-content {
    padding: var(--spacing-lg);
    flex-grow: 1; /* Allows content to take remaining space */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes 'read more' down if present */
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.card p {
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.read-more {
    font-family: var(--font-family-headings);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    margin-top: auto; /* Pushes to bottom */
    padding: var(--spacing-xs) 0;
    position: relative;
}
.read-more::after {
    content: '→';
    margin-left: var(--spacing-xs);
    transition: margin-left var(--transition-speed-fast) var(--transition-timing-function);
}
.read-more:hover::after {
    margin-left: calc(var(--spacing-xs) + 5px);
}
.read-more:hover {
    color: var(--secondary-color);
}

/* Features Section */
.features-slider-wrapper { /* Basic styling for slider placeholder */
    display: flex; /* This would be managed by a JS slider */
    overflow-x: auto; /* Temporary for showing slides */
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-sm); /* For scrollbar if visible */
}
.feature-slide {
    flex: 0 0 300px; /* Fixed width for slides, adjust as needed */
    background-color: var(--bg-color-medium);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.feature-icon {
    width: 80px; /* Adjust as per HTML */
    height: 80px; /* Adjust as per HTML */
    margin: 0 auto var(--spacing-md);
    object-fit: contain;
}
.feature-slide h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}
.features-note {
    margin-top: var(--spacing-md);
    font-style: italic;
}

/* Innovation Section */
.innovation-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}
.innovation-gallery .image-container img {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Research Section */
.research-highlights {
    margin-top: var(--spacing-lg);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}
.research-item {
    background-color: var(--bg-color-medium);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}
.research-item h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

/* Statistics Section */
.statistics-section {
    background-image: linear-gradient(rgba(var(--bg-color-dark-rgb, 52, 58, 64), 0.9), rgba(var(--bg-color-dark-rgb, 52, 58, 64), 0.95)), url('image/stats-background-blurry-plinko.jpg');
    /* fallback if image not available or --bg-color-dark-rgb not set */
    background-color: var(--bg-color-dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    data-prompt: "Abstract, blurry background with subtle Plinko elements, dark tones suitable for white text overlay.";
}
.stats-widgets-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    text-align: center;
}
.stat-widget {
    padding: var(--spacing-md);
}
.stat-value {
    font-family: var(--font-family-headings);
    font-size: 3.5rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--accent-color); /* Bright color for numbers */
    margin-bottom: var(--spacing-xs);
    line-height: 1;
}
.stat-label {
    font-family: var(--font-family-headings);
    font-size: 1.1rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-color-light);
    margin-bottom: var(--spacing-xs);
}
.stat-description {
    font-size: 0.9rem;
    color: var(--text-color-light);
    opacity: 0.8;
}


/* Events Section */
.events-list {
    max-width: 800px;
    margin: 0 auto;
}
.event-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
}
.event-item:last-child {
    border-bottom: none;
}
.event-date {
    flex-shrink: 0;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--bg-color-light);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-md);
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-sm);
}
.event-date .month {
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    display: block;
}
.event-date .day {
    font-size: 1.8rem;
    font-weight: var(--font-weight-bold);
    display: block;
    line-height: 1;
}
.event-details h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.3rem;
}
.event-details p {
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
}
.event-time-location {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: var(--font-weight-medium);
}


/* External Resources Section */
.resources-list .resource-item {
    padding: var(--spacing-md) 0;
    border-bottom: 1px dashed var(--border-color);
}
.resources-list .resource-item:last-child {
    border-bottom: none;
}
.resource-item h4 a {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
}
.resource-item h4 a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}
.resource-item p {
    font-size: 0.9rem;
    margin-top: var(--spacing-xs);
    margin-bottom: 0;
}


/* Contact Section */
.contact-section .contact-form {
    max-width: 700px;
    margin: 0 auto; /* Center form */
}
.contact-wrapper { /* For side-by-side form and details on larger screens */
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}
.contact-form-container {
    flex: 2; /* Takes more space */
    min-width: 300px; /* Ensure it doesn't get too squished */
}
.contact-details-container {
    flex: 1;
    min-width: 280px;
    background-color: var(--bg-color-medium);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
}
.contact-details-container h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}
.contact-details-container ul {
    list-style: none;
    padding-left: 0;
}
.contact-details-container ul li {
    margin-bottom: var(--spacing-sm);
    word-break: break-word;
}
.contact-details-container ul li strong {
    color: var(--text-color);
}


/* Footer */
.site-footer {
    background-color: var(--bg-color-dark);
    color: var(--text-color-light);
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}
.footer-widget h4 {
    color: var(--bg-color-light);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
    position: relative;
}
.footer-widget h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    margin-top: var(--spacing-xs);
}
.footer-widget p {
    color: var(--text-color-light);
    opacity: 0.8;
    font-size: 0.95rem;
    margin-bottom: 0;
}
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-nav li {
    margin-bottom: var(--spacing-xs);
}
.footer-nav a {
    color: var(--text-color-light);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity var(--transition-speed-fast) var(--transition-timing-function), color var(--transition-speed-fast) var(--transition-timing-function);
}
.footer-nav a:hover, .footer-nav a:focus {
    opacity: 1;
    color: var(--primary-color);
}
.social-links-text { /* Text-based social links */
    list-style: none;
    padding: 0;
    margin: 0;
}
.social-links-text li {
    margin-bottom: var(--spacing-xs);
}
.social-links-text a {
    color: var(--text-color-light);
    opacity: 0.8;
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}
.social-links-text a:hover, .social-links-text a:focus {
    opacity: 1;
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}


/* Specific Page Styles */
/* privacy.html, terms.html */
.page-content.section-padding { /* For single pages like privacy, terms */
    padding-top: calc(var(--header-height) + var(--spacing-xxl)); /* Account for fixed header */
}
.page-content h1.section-title {
    text-align: left; /* Usually page titles are left aligned */
}
.page-content h1.section-title::after {
    margin-left: 0; /* Adjust underline */
}

/* success.html */
body.success-page { /* Add this class to body in success.html */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body.success-page .main-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
body.success-page main {
    flex-grow: 1;
    display: flex;
    align-items: center; /* Vertical centering */
    justify-content: center; /* Horizontal centering */
}
.success-message-container {
    /* Styles are inlined in HTML, but can be moved here */
    text-align: center;
}
.success-message-container img {
    margin-left: auto;
    margin-right: auto;
}
.success-message-container h1.section-title {
    text-align: center;
}
.success-message-container h1.section-title::after {
    margin-left: auto;
    margin-right: auto;
}


/* Cookie Popup - Basic Styles from HTML moved here for completeness if preferred */
/* #cookie-popup styles already in HTML, but here's how they'd look: */
/*
#cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0,0,0,0.85);
    color: white;
    padding: 20px;
    text-align: center;
    z-index: 9999;
    box-sizing: border-box;
}
#cookie-popup p {
    margin: 0 0 15px 0;
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    color: white;
}
#accept-cookie {
    background-color: var(--secondary-color); // Using theme color
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
}
#accept-cookie:hover {
    background-color: var(--primary-color);
}
*/


/* Responsive Design */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    .hero-title { font-size: 3rem; }
    h2 { font-size: 2rem; }
    .section-padding {
        padding-top: var(--spacing-xl);
        padding-bottom: var(--spacing-xl);
    }
    .column.is-two-thirds {
        width: 100%; /* Stack columns */
    }
    .about-us-section .columns {
        flex-direction: column;
    }
     .about-us-section .column:last-child {
        margin-top: var(--spacing-lg);
    }
    .contact-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    html { font-size: 15px; }
    h1 { font-size: 2.2rem; }
    .hero-title { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }

    .main-navigation .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-color-light);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: var(--spacing-xl) 0;
        transform: translateX(100%);
        transition: transform var(--transition-speed-normal) var(--transition-timing-function);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }
    .main-navigation .nav-menu.active {
        transform: translateX(0);
    }
    .main-navigation .nav-menu li {
        margin: var(--spacing-sm) 0;
    }
    .main-navigation .nav-menu a {
        font-size: 1.2rem;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    .nav-toggle {
        display: block;
    }
    .hero-section {
        min-height: 70vh;
        padding-top: calc(var(--header-height) + var(--spacing-md));
        padding-bottom: var(--spacing-md);
    }
    .stats-widgets-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: var(--spacing-md);
    }
    .stat-value { font-size: 2.8rem; }

    .event-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .event-date {
        margin-bottom: var(--spacing-sm);
        width: auto; /* Full width or content width */
        padding: var(--spacing-xs) var(--spacing-sm);
        height: auto;
        flex-direction: row;
        gap: var(--spacing-sm);
    }
    .event-date .day { font-size: 1.5rem; }
    .event-date .month { font-size: 0.8rem; }

    .footer-widgets {
        grid-template-columns: 1fr; /* Stack footer widgets */
        text-align: center;
    }
    .footer-widget h4::after {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    html { font-size: 14px; }
    h1 { font-size: 2rem; }
    .hero-title { font-size: 2.2rem; }
    h2 { font-size: 1.6rem; }
    .btn, button, input[type="submit"], input[type="button"] {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    .hero-section .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    .services-grid, .insights-grid, .innovation-gallery, .research-highlights {
        grid-template-columns: 1fr; /* Single column for cards on small screens */
    }
}

header ul{
    flex-wrap: wrap;
}