/* Root variables */
:root {
    --primary: #0A1A3A;
    --secondary: #15376d;
    --accent: #2b8fe0;
    --light: #f5f7fa;
    --text: #2d3748;
}

/* Global resets */
html {
    scroll-behavior: smooth;
}

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

img, svg, video, canvas {
    max-width: 100%;
    height: auto;
}

body {
    font-family: Segoe UI, Arial, sans-serif;
    color: var(--text);
    background: #ffffff;
    line-height: 1.6;
}

a:focus {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* Layout container */
.container {
    width: 80%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
header {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    justify-content: center;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent);
    border-bottom: 3px solid var(--accent);
}

nav .active a {
    color: var(--primary);
    background-color: var(--light);
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.hamburger {
	display:none;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #0A1A3A, #15376d);
    color: #ffffff;
    padding: 3rem 3rem 3rem 5%;
    min-height: 300px;
    overflow-x: hidden;
position:relative;
height:500px;
}

/* Slides container */
.slides {
    position: relative;
}

/* Individual slide */
.slide {
    width: 80%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    align-items: center;
    opacity: 0;
    transition: opacity 0.6s ease;

    position: absolute;
    inset: 0;
}

.slide.active {
    opacity: 1;
    position: relative;
}

/* Slide text */
.slide-text {
    grid-column: span 8;
}

.slide-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.slide-text h2 {
    margin-bottom: 1rem;
    font-weight: 400;
}

.slide-text ul {
    padding-left: 1.5rem;
}

.slide-text li {
    margin-bottom: 0.5rem;
}

/* Slide graphic */
.slide-graphic {
    grid-column: span 4;
}

.slide-graphic svg * {
    fill: none;
    stroke: var(--accent);
    stroke-width: 4;
    animation: draw 2s ease forwards;
}

.slide-graphic svg text {
    fill: var(--accent);
    stroke: var(--accent);
    stroke-width: 0.5;
}

/* Slide indicators */
.slide-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
}

.indicator {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    width: 60px;
    border-radius: 10px;
    background: linear-gradient(
        to right,
        var(--accent) var(--progress, 0%),
        #ffffff var(--progress, 0%)
    );
}

/* Main content */
.content {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    padding: 4rem 0;
}

.content-main {
    grid-column: span 8;
}

.content-main h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.content-main p {
    margin-bottom: 1rem;
    max-width: 65ch;
}

/* Sidebar */
.sidebar {
    grid-column: span 4;
    background: var(--light);
    padding: 1.5rem;
    border-left: 4px solid var(--accent);
    border-radius: 6px;
}

.sidebar h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 0.75rem;
}

.sidebar a {
    text-decoration: none;
    color: var(--secondary);
}

.sidebar a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--primary);
    color: #ffffff;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* SVG animation */
@keyframes draw {
    from { stroke-dasharray: 500; stroke-dashoffset: 500; }
    to { stroke-dashoffset: 0; }
}

/* Tablet breakpoint */
@media (max-width: 1024px) {
    .hero {
        padding:1rem;
    }

    .container {
        max-width: 95%;
    }
     .slides {
        position: relative;
        height: auto;
    }


   .slide {
        width: 100%;
        max-width: 100%;
        grid-template-columns: repeat(2,1fr);
        gap: 1rem;
        position: absolute;
        inset: unset;
    }



    .slide-text,
    .slide-graphic {
        grid-column: span 1;
    }

    .slide-text h1 {
        font-size: 2rem;
    }

    .content {
        grid-template-columns: 1fr 1fr;
        padding: 2rem 0;
    }

    .content-main,
    .sidebar {
        grid-column: span 4;
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
	.logo {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
}


    .hero {
        padding: 1rem;
    }

    .container {
        max-width: 95%;
    }

     .slides {
        position: relative;
        height: auto;
    }

    .slide {
        position: static;
        inset: unset;
        top: auto;
        left: auto;
        transform: none;
        opacity: 1;
    }

    .slide:not(.active) {
        display: none;
    }

    .slide-text h1 {
        font-size: 2rem;
    }
/* Sidebar Mobile*/
.content-main,
    .sidebar {
        grid-column: span 4;
    }


    .sidebar a {
        padding: 0.5rem 0;
        display: block;
    }

    /* Hamburger */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 5rem;
        height: 22px;
        background: none;
        border: none;
        cursor: pointer;
        padding-left:2rem;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    .nav-menu {
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.4s ease;
    }

    .nav-menu.open {
        max-height: 500px;
    }
}

/* Hamburger animation */
.hamburger span {
    display: block;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Search bar */
.search-btn {
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    margin-left: 1rem;
}

.search-btn::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
}

.search-btn::after {
    content: "";
    width: 10px;
    height: 3px;
    background: #ffffff;
    position: absolute;
    bottom: 4px;
    right: 2px;
    transform: rotate(45deg);
}

.search-bar {
    width: 100%;
    background: var(--light);
    padding: 0.75rem 1rem;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.search-bar.open {
    display: block;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid var(--accent);
    border-radius: 6px;
}

/* Highlighting */
.highlight mark {
    background: var(--accent);
    color: #ffffff;
    padding: 0 2px;
    border-radius: 3px;
}
