/* Universal Styles & Base */
:root {
    --primary-blue: #007BFF;
    --primary-green: #28A745;
    --text-dark: #333333;
    --background-light: #F8F9FA;
    --background-dark: #212529;
    --border-light: #E0E0E0;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* A modern, clean sans-serif */
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-green);
}

h1, h2, h3, h4 {
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

h1 { font-size: 3em; }
h2 { font-size: 2.2em; text-align: center; margin-bottom: 40px; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.4em; }

p {
    margin-bottom: 15px;
}

section {
    padding: 80px 0;
    text-align: center;
}

aligned-center {
    text-align: center;
}

.divider {
    width: 50%;
    border: none;
    height: 2px;
    background-color: #ccc;
    margin: 20px auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #0056b3; /* Slightly darker blue */
}

.btn-secondary {
    background-color: var(--primary-green);
    color: var(--white);
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: #218838; /* Slightly darker green */
}

/* Header */
.main-header {
    background-color: var(--background-dark);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Subtle shadow for sleekness */
}

    .main-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.logo {
    display: flex;
    align-items: center;
    color: var(--text-white);
}

    .logo img {
        height: 40px; /* Adjust as needed */
        margin-right: 10px;
    }

    .logo span {
        font-size: 1.8em;
        font-weight: bold;
        color: var(--text-dark);
        letter-spacing: 1px;
    }

.main-nav .nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

    .main-nav .nav-links li {
        margin-left: 30px;
    }

    .main-nav .nav-links a {
        color: var(--white);
        font-weight: 600;
        padding: 5px 0;
        position: relative;
    }

        .main-nav .nav-links a.active {
            color: var(--primary-blue);
        }

        .main-nav .nav-links a:hover {
            color: var(--primary-green);
        }

        .main-nav .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--primary-blue);
            transition: width 0.3s ease;
        }

        .main-nav .nav-links a:hover::after,
        .main-nav .nav-links a.active::after {
            width: 100%;
        }

.nav-toggle {
    display: none;
    background: var(--dark);
    border: none;
    font-size: 1.8em;
    color: var(--white);
    cursor: pointer;
    justify-content: flex-end;
    margin-left: auto;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    color: var(--white);
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px; /* Adjust height as needed */
    position: relative;
    overflow: hidden; /* For potential background images/videos */
}

.hero-section::before { /* Subtle background overlay for text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2); /* Darker overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5em;
    margin-bottom: 10px;
}

.hero-content p {
    color: var(--white);
    font-size: 1.3em;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* News & Updates Section */
.news-updates-section {
    background-color: var(--white);
    padding: 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 10px;
    margin: 0 auto;
    width: fit-content;
    max-width: 1200px;
}

.news-card {
    margin-top: 10px;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: left;
    transition: transform 0.3s ease;
    max-width: 350px;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 200px; /* Consistent image height */
    object-fit: cover;
}

.news-card h4 {
    padding: 15px 20px 0;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.news-card .date {
    font-size: 0.85em;
    color: #888;
    padding: 0 20px;
    margin-bottom: 10px;
}

.news-card p {
    font-size: 0.9em;
    color: #555;
    padding: 0 20px 15px;
    margin-bottom: 0;
}

.news-card .read-more {
    display: block;
    padding: 10px 20px 20px;
    color: var(--primary-blue);
    font-weight: bold;
}

.news-card .read-more:hover {
    color: var(--primary-green);
}

/* CTA Community Section */
.cta-community-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.cta-community-section h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.cta-community-section p {
    color: var(--white);
    font-size: 1.1em;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto 30px;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 1em;
    outline: none;
}

.newsletter-form button {
    border-radius: 0 5px 5px 0;
    padding: 12px 25px;
    background-color: var(--primary-blue); /* Can also use a contrasting color like white text on primary green button */
    color: var(--white);
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #0056b3;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    color: var(--white);
    font-size: 1.8em;
    margin: 0 15px;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: #f0f0f0; /* Slightly lighter white on hover */
}

/* Footer */
.main-footer {
    background-color: var(--background-dark);
    color: var(--white);
    padding: 50px 0 20px;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2em;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #CCCCCC; /* Lighter grey for links */
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-blue);
}

.footer-col p {
    color: #CCCCCC;
    font-size: 0.9em;
}

.main-footer .social-links a {
    color: #CCCCCC;
    font-size: 1.5em;
    margin-right: 15px;
    margin-top: 10px;
}

.main-footer .social-links a:hover {
    color: var(--primary-blue);
}

.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.85em;
    color: #999999;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3em;
    }
    .hero-content p {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        display: flex;
    }

    .main-nav {
        width: 100%;
        order: 3; /* Push navigation below logo/toggle */
        text-align: center;
    }

    .nav-toggle {
        display: block; /* Show hamburger on smaller screens */
    }

    .main-nav .nav-links {
        display: none; /* Hide by default */
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
        background-color: var(--white);
        border-top: 1px solid var(--border-light);
        padding-top: 10px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.05);
    }

    .main-nav .nav-links.active {
        display: flex; /* Show when active */
    }

    .main-nav .nav-links li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-light);
        padding-bottom: 10px;
    }

    .main-nav .nav-links li:last-child {
        border-bottom: none;
    }

    .main-nav .nav-links a {
        padding: 10px 0;
        display: block;
    }
    
    .hero-section {
        padding: 80px 0;
        min-height: 200px;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        margin: 10px 0;
        width: 80%; /* Make buttons wider */
    }

    h2 {
        font-size: 1.8em;
    }

    .highlights-grid, .news-grid {
        grid-template-columns: 1fr; /* Stack columns on small screens */
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form input[type="email"] {
        border-radius: 5px;
        margin-bottom: 15px;
        width: 80%;
    }

    .newsletter-form button {
        border-radius: 5px;
        width: 80%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h4 {
        margin-top: 20px;
    }
    
    .footer-col ul {
        padding-bottom: 20px;
        border-bottom: 1px solid #333;
        margin-bottom: 20px;
    }
    .footer-col ul li:last-child {
        margin-bottom: 0;
    }
    .footer-col:last-child ul {
        border-bottom: none;
    }
    .footer-col:last-child p {
        margin-bottom: 20px;
    }

    .footer-col .social-links.desktop-only {
        display: block; /* Show social links here on mobile if desired */
    }
    .social-links { /* Ensure social links are still centered in CTA section */
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Hide social links on mobile header if they are in the footer too for cleaner look */
@media (max-width: 768px) {
    .main-nav .nav-links li:nth-last-child(1), /* Search icon */
    .main-nav .nav-links li:nth-last-child(2) /* User icon */ { 
        display: block; /* Keep search and user if they are always desired in nav */
    }

    .desktop-only {
        display: none; /* Hide desktop-specific social links on mobile */
    }
    .main-footer .social-links { /* Adjust spacing for mobile footer social links if needed */
        justify-content: center;
        margin-top: 0;
    }
    .main-footer .social-links a {
        margin: 0 10px;
    }
}

/* General Sub-Page Hero Section */
.page-hero-section {
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    color: var(--white);
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.page-hero-section .container {
    position: relative;
    z-index: 2;
}

.page-hero-section h1 {
    color: var(--white);
    font-size: 3em;
    margin-bottom: 15px;
}

.page-hero-section p {
    color: var(--white);
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto;
}

/* About Us Section */
.about-intro-section {
    background-color: var(--background-white);
    padding-bottom: 40px;
}

.about-intro-section h2 {
    text-align: center;
}

.about-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
    margin-top: 40px;
}

.about-content-grid img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Panel Section */
.panel-section {
    background-color: var(--white);
    padding: 20px;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.panel-member-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: center;
    padding: 20px;
}

.panel-member-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--primary-blue);
}

.panel-member-card h3 {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.panel-member-card p {
    font-size: 0.9em;
    color: #666;
}

/* FAQ Section */
.faq-section {
    background-color: var(--white);
    padding: 20px;
}

.faq-accordion {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: left;
}

.faq-item {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-toggle {
    display: none; /* Hide the actual checkbox */
}

.faq-question {
    display: block;
    padding: 20px;
    background-color: var(--background-light);
    color: var(--text-dark);
    font-weight: bold;
    cursor: pointer;
    position: relative;
    padding-right: 50px; /* Space for the arrow */
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-question::after {
    content: '\25BC'; /* Down arrow */
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.faq-toggle:checked + .faq-question::after {
    content: '\25B2'; /* Up arrow */
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--white);
    padding: 0 20px;
}

.faq-toggle:checked + .faq-question + .faq-answer {
    max-height: 200px; /* Adjust based on expected content length */
    padding: 20px;
    border-top: 1px solid var(--border-light);
}

.faq-answer p {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 0;
}

/* Legal Content Sections */
.legal-content-section {
    background-color: var(--white);
    padding-top: 60px;
    text-align: left; /* Align text left for readability */
}

.legal-text-block {
    max-width: 900px; /* Constrain width for better readability */
    margin: 0 auto;
    padding: 20px 0;
}

.legal-text-block h2 {
    text-align: left; /* Override center alignment for general H2s */
    font-size: 2.2em;
    margin-bottom: 30px;
    color: var(--primary-blue);
}

.legal-text-block h3 {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-green);
}

.legal-text-block h4 {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.legal-text-block p,
.legal-text-block ul {
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 1em;
    color: #444;
}

.legal-text-block ul {
    margin-left: 25px;
    list-style: disc; /* Use bullet points */
}

.legal-text-block ul li {
    margin-bottom: 10px;
}

.legal-text-block a {
    font-weight: 600;
}

/* Responsive adjustment for legal pages */
@media (max-width: 768px) {
    .legal-text-block {
        padding: 0 15px; /* More padding on smaller screens */
    }
    .legal-text-block h2 {
        font-size: 1.8em;
        text-align: center; /* Re-center for small screens */
    }
    .legal-text-block h3 {
        font-size: 1.5em;
    }
    .legal-text-block h4 {
        font-size: 1.2em;
    }
}

/* Responsive adjustment for Mobile-specific styles */
@media (max-width: 768px) {
    .main-nav .nav-links {
        display: none;
        background-color: var(--background-dark);
        width: 100%;
        position: absolute;
        top: 60px; 
        left: 0;
        padding: 20px;
        box-sizing: border-box;
        text-align: center;
    }

        .main-nav .nav-links.active {
            display: block;
        }


        .main-nav .nav-links li {
            margin: 10px 0;
        }

        /* Style the links inside the dropdown */
        .main-nav .nav-links a {
            color: var(--white);
            font-size: 1.2em;
        }

    .nav-toggle {
        display: block;
    }
}



/* Split Screen */

.split-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.split-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.4s ease;
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--text-light);
}

    .split-panel::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1;
    }

    .split-panel > * {
        position: relative;
        z-index: 2;
    }

    .split-panel.left {
        background-image: url('/images/controller.png');
    }

    .split-panel.right {
        background-image: url('/images/software.png');
    }

        .split-panel.left:hover,
        .split-panel.right:hover {
            flex: 1.1;
        }

    .split-panel h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        color: white;
    }

    .split-panel p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        color: white;
    }

.enter-button {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    color: white;
}

.split-panel.left .enter-button {
    background-color: var(--accent-green);
    color: white;
}

.split-panel.right .enter-button {
    background-color: var(--accent-purple);
    color: white;
}

.split-panel.left .enter-button:hover {
    background-color: #00cc7a;
}

.split-panel.right .enter-button:hover {
    background-color: #7326b3;
}

@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
    }

    .split-panel.left,
    .split-panel.right {
        border-right: none;
        border-bottom: 2px solid var(--dimmed);
    }
}

section {
    margin: 0;
    padding: 0;
}