/* Basic Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa; /* Light grey background */
}

h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    margin-bottom: 15px;
    color: #003366; /* Darker blue for headings */
}

p {
    margin-bottom: 15px;
    color: #555;
}

section {
    padding: 60px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

section:nth-child(even) {
    background-color: #fff; /* Alternate section background */
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, #0052cc 0%, #003366 100%); /* Professional blue gradient */
    color: white;
    padding-bottom: 20px; /* Space for hero content */
    text-align: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

nav .logo {
    font-size: 1.8em;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #b3daff; /* Lighter blue for hover */
}

.hero-content {
    padding: 40px 20px;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3em;
    color: #e0e0e0;
}

/* Hero SVG Animation */
#hero-svg {
    width: 80%;
    max-width: 600px;
    height: auto;
    margin-top: 20px;
}
.hero-text-anim {
    opacity: 0;
    animation: fadeInText 2s 1s ease-out forwards;
}
@keyframes fadeInText {
    to { opacity: 1; }
}


/* Section-specific styles */
#about p, #future p, #learning-objectives ul {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}
#learning-objectives ul {
    list-style-position: inside;
}


/* Pillars Section */
.pillars-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    margin-top: 30px;
}

.pillar-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    width: calc(33.333% - 40px); /* Adjust for 3 columns, then less for smaller screens */
    min-width: 280px; /* Minimum width for cards */
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.pillar-card h3 {
    color: #0052cc; /* Main blue for pillar titles */
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 1.3em;
}
.pillar-card .feature {
    font-style: italic;
    color: #444;
    margin-bottom: 8px;
}
.pillar-card .advantage {
    color: #007bff; /* Brighter blue for advantage */
    font-weight: 600;
    margin-bottom: 8px;
}
.pillar-card .benefit {
    color: #28a745; /* Green for benefit */
    font-size: 0.9em;
}

.pillar-svg {
    width: 80px;
    height: 80px;
    display: block;
    margin: 0 auto 15px auto;
}
.pillar-svg .svg-bg {
    fill: #007bff; /* Main blue for SVG background */
    transition: fill 0.3s ease;
}
.pillar-card:hover .pillar-svg .svg-bg {
    fill: #0052cc; /* Darker blue on hover */
}
.pillar-svg .svg-icon-anim {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawIcon 1.5s 0.5s ease-out forwards;
}
.pillar-svg .seal { animation-delay: 1s; }
.pillar-svg .shield { animation-delay: 1s; }
.pillar-svg .check { animation-delay: 1s; }
.pillar-svg .keyhole { animation-delay: 1s; }

@keyframes drawIcon {
    to {
        stroke-dashoffset: 0;
    }
}

/* How It Works SVG Flowchart */
#tir-flow-svg {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin-top: 30px;
    overflow: visible; /* Important for markers */
}

.flow-node rect {
    fill: #e9ecef; /* Light grey for nodes */
    stroke: #0052cc; /* Dark blue border */
    stroke-width: 2;
}

.flow-node text {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    fill: #333;
}
.flow-node .node-desc {
    font-family: 'Open Sans', sans-serif;
    font-size: 10px;
    fill: #555;
}

.flow-path-anim-base {
     stroke: #007bff; /* Blue for path */
}

#truck-animated {
    transform-origin: center;
}

.etir-line {
    stroke: #28a745; /* Green for eTIR line */
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawLine 2s 10s ease-out forwards; /* Delayed animation */
}
.etir-text {
    font-size: 12px;
    fill: #28a745;
    opacity: 0;
    animation: fadeInText 1s 11s ease-out forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* Benefits Section */
.benefits-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: left;
    gap: 30px;
    margin-top: 30px;
}
.benefit-group {
    width: calc(50% - 30px);
    min-width: 280px;
    background: #f8f9fa;
    padding: 20px;
    border-left: 5px solid #007bff;
    border-radius: 5px;
}
.benefit-group h3 {
    color: #0052cc;
}
.benefit-group ul {
    list-style: disc;
    padding-left: 20px;
}

/* Icons (placeholder - use actual SVG or font icons) */
[class^="icon-"]::before {
    margin-right: 8px;
    font-weight: normal; /* Example */
}
.icon-info::before { content: "ℹ️"; }
.icon-pillars::before { content: "🏛️"; }
.icon-flow::before { content: "🌊"; } /* Flow symbol */
.icon-benefits::before { content: "🌟"; }
.icon-future::before { content: "🚀"; }
.icon-learn::before { content: "🎓"; }


/* Footer */
footer {
    background-color: #003366; /* Dark blue footer */
    color: #ccc;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 992px) {
    .pillar-card {
        width: calc(50% - 20px); /* 2 columns */
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }
    nav ul {
        margin-top: 15px;
        flex-direction: column;
        align-items: center;
    }
    nav ul li {
        margin: 10px 0;
    }
    .hero-content h1 {
        font-size: 2.8em;
    }
    .hero-content p {
        font-size: 1.1em;
    }
    .pillars-container, .benefits-container {
        flex-direction: column;
        align-items: center;
    }
    .pillar-card, .benefit-group {
        width: 90%;
        margin-bottom: 20px;
    }
    #tir-flow-svg {
        height: auto; /* Allow SVG to scale height */
    }
    .flow-node text { font-size: 12px; }
    .flow-node .node-desc { font-size: 9px; }
    .etir-text { font-size: 10px; }
}