/* ===========================
   GLOBAL / GENERAL STYLES
   =========================== */

/* Variables (needed because some styles use var(...)) */
:root {
    --primary-dark: #001f3f;
    --primary-navy: #0a2540;
    --accent-green: #00ff00;
    --accent-green-dark: #00cc00;
    --accent-teal: #00b8a9;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #666666;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Global reset */
* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

/* Base layout helpers */
.container {
    width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

.legal-content-section {
    margin: 20px 0;
}

.flex_wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 100px;
    justify-content: center;
}

/* Base elements */
a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    text-decoration: underline;
}

img {
    height: auto;
}

h1, h2, h3, h4 {
    color: #003366;
    margin-bottom: 0.8em;
}

/* ===========================
   HERO (used across pages)
   =========================== */

.hero {
    background-color: #004080;
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
    background-image: url('../img/hero_background_abstract.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

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

.hero h1 {
    font-size: 2.8em;
    margin-bottom: 0.5em;
    color: #ffffff;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 1.5em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Subpage hero */
.page-hero {
    background-color: #004080;
    color: #ffffff;
    padding: 50px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5em;
    margin-bottom: 0.3em;
    color: #ffffff;
}

.page-hero p {
    font-size: 1.1em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
   BUTTONS (shared)
   =========================== */

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1em;
    text-align: center;
    transition: background-color 0.3s ease;
    margin: 10px 10px;
}

.btn-primary {
    background-color: #00cc99;
    color: #ffffff;
    border: 2px solid #00cc99;
}

.btn-primary:hover {
    background-color: #00b386;
    border-color: #00b386;
    color: #ffffff;
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #003366;
    text-decoration: none;
}

/* ===========================
   TABLES (shared)
   =========================== */

.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-navy));
    color: var(--text-light);
}

th {
    padding: 1.2rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-green);
}

td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-color);
}

tbody tr:hover {
    background-color: var(--bg-light);
}

tbody tr:nth-child(even) {
    background-color: rgba(0, 255, 0, 0.02);
}

/* ===========================
   ABOUT / TIMELINE (shared pages)
   =========================== */

.about-content-section {
    padding: 40px 0;
    background-color: #ffffff;
}

.about-content-section h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #00cc99;
    padding-bottom: 10px;
    display: inline-block;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.team-member-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.team-member-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
    background-color: #ccc;
}

.team-member-card h3 {
    font-size: 1.4em;
    color: #003366;
    margin-bottom: 5px;
}

.team-member-card h4 {
    font-size: 1em;
    color: #555;
    margin-bottom: 10px;
    font-weight: normal;
}

.team-member-card p {
    text-align: justify;
}

.milestones-list {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
}

.milestones-list li {
    margin-bottom: 10px;
}

.story_container h1 {
    text-align: center;
    font-size: 40px;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 70px auto;
    overflow-x: hidden;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: #ccc;
}

.milestone {
    opacity: 0;
    position: relative;
    width: 50%;
    padding: 20px;
    box-sizing: border-box;
    transition: opacity 1s ease, transform 1s ease;
    line-height: 1.6rem;
}

.milestone .content {
    background: #f4f4f4;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.milestone h3 {
    margin-top: 0;
    color: #1a1a1a;
    text-align: left !important;
    margin-bottom: 10px;
}

.milestone.left {
    left: 0;
}

.milestone.right {
    left: 50%;
}

.milestone.visible {
    opacity: 1;
    transform: translateY(0);
}

.milestone.left.visible {
    transform: translateX(-20px);
}

.milestone.right.visible {
    transform: translateX(20px);
}

/* ===========================
   CONTACT (shared)
   =========================== */

.contact-form-section, .faq-section {
    padding: 40px 0;
    background-color: #ffffff;
}

.contact-flex-container {
    display: flex;
    gap: 40px;
}

.contact-details {
    flex: 1;
}

.contact-details h2 {
    margin-top: 0;
}

.contact-form-container {
    flex: 1.5;
}

.contact-form-container h2 {
    margin-top: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

.form-group textarea {
    resize: vertical;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.faq-item {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.faq-item h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #0056b3;
}

/* Misc */
.team-member-card img {
    border: 3px solid #00cc99;
}

/* ===========================
   RESPONSIVE (general)
   =========================== */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2em;
    }
    .hero p {
        font-size: 1em;
        text-align: justify;
    }
}

@media (max-width: 768px) {
    .contact-flex-container {
        flex-direction: column;
    }
}

@media screen and (max-width: 1000px) {
    .container {
        width: 100%;
    }
}

@media screen and (max-width: 900px) {
    body {
        padding: 0;
        margin: 0;
    }
}

@media screen and (max-width: 700px) {
    .story_container {
        padding: 10px;
    }
    .timeline {
        padding: 0;
    }
    .milestone {
        width: 100%;
    }
    .milestone.left.visible {
        left: 50%;
        transform: translateX(-50%);
    }
    .milestone.right.visible {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media screen and (max-width: 600px) {
    .container {
        width: 100%;
    }
    .hero h1 {
        font-size: 1.5em;
        margin-bottom: 50px;
    }
}

@media screen and (max-width: 450px) {
    body {
        padding: 0;
        margin: 0;
    }
    .auth-container {
        width: 300px;
    }
}
