/* CSS Variables */
:root {
    /* Light mode colors */
    --header-bg: #f1f1f1;
    --header-text: #333;
    --header-text-inverted: #333;
    --body-bg: #f1f1f1;
    --body-text: #4b4b4b;
    --menu-bg: #f1f1f1;
    --menu-hover-color: #FFF;
    --menu-hover-bg: #0088CC;
    --border-color: #dbdbdb;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --link-color: #1F5DDD;
}

/* Dark mode colors */
body.dark-mode {
    --header-bg: #252526;
    --header-text: white;
    --body-bg: #252526;
    --body-text: #e0e0e0;
    --menu-bg: #000;
    --menu-hover-color: #fff;
    --menu-hover-bg: #0088CC;
    --border-color: #444;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --link-color: #4482FF;
}

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

body {
    font-family: Roboto, sans-serif;
    line-height: 1.6;
    font-size: 17px;
    background: var(--body-bg);
    color: var(--body-text);
    transition: background-color 0.3s, color 0.3s;
    min-width: 400px;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

p {
    margin-bottom: 1rem;
}

hr {
    height: 1px;
    background-image: -webkit-linear-gradient(left, transparent, var(--border-color), transparent);
    background-image: linear-gradient(to right, transparent, var(--border-color), transparent);
    border: 0;
    margin: 22px 0;
}

/* Header */
.header {
    background: var(--header-bg);
    color: var(--header-text);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s;
}

.header-content {
    font-size: 14px;
    font-style: normal;
    line-height: 20px;
    font-weight: 700;
    padding: 1rem 0;
}

/* Logo */
.logo {
    font-size: 1.4rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.logo a {
    color: var(--body-text);
}
.logo a:hover {
    text-decoration: none;
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: absolute;
    right: 2rem;
    top: 2.1rem;
    transform: translateY(-50%);
}

/* Dark Mode Toggle */
.dark-toggle {
    background: none;
    border: none;
    color: var(--header-text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.dark-toggle:hover {
    transform: scale(1.3);
}

/* Burger Menu Button */
.burger {
    display: none;
    background: none;
    border: none;
    color: var(--header-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Menu */
.main-menu {
    display: flex;
    list-style: none;
    margin: 0 3rem 0 0;
}

.main-menu li {
    margin-right: 0.5rem;
}

.main-menu a {
    color: var(--header-text);
    text-decoration: none;
    padding: 0.5rem 0.4rem;
    display: block;
    transition: color 0.2s;
    border-radius: 4px;
}

.main-menu .active {
    color: var(--menu-hover-color);
    background-color: var(--menu-hover-bg);
}

.main-menu a:hover {
    color: var(--menu-hover-color);
    background-color: var(--menu-hover-bg);
}

/* Main Content */
.container-flow {
    width: 100%;
}

.container {
    margin: 0 auto;
}

/* Mobile Styles */
@media (max-width: 1024px) {
    .burger {
        display: block;
    }

    .main-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--menu-bg);
        padding: 1rem 2rem;
        box-shadow: 0 2px 5px var(--shadow-color);
        transition: background-color 0.3s;
        width: 100%;
    }

    .main-menu.active {
        display: flex;
    }

    .main-menu li {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .main-menu a {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .main-menu li:last-child a {
        border-bottom: none;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* For extra large screens */
@media (max-width: 1170px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 1140px) {
    .container {
        width: 1140px;
        margin: 0 auto;
    }
}

/* Responsive max 3 column Grid  */
.grid-2-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem; /* Space between items */
}

.grid-2-item {
    flex: 1 1 100%; /* 1 column on mobile */
}

/* 2 columns on tablets */
@media (min-width: 768px) {
    .grid-2-item {
        flex: 1 1 calc(50% - 2rem);
    }
}



/* Responsive max 3 column Grid  */
.grid-2-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem; /* Space between items */
}

.grid-2-item, .grid-2-item-25, .grid-2-item-75 {
    flex: 1 1 100%; /* 1 column on mobile */
}

/* 2 columns on tablets */
@media (min-width: 768px) {
    .grid-2-item {
        flex: 1 1 calc(50% - 2rem);
    }
    .grid-2-item-25 {
        flex: 0 0 calc(25% - 2rem);
    }
    .grid-2-item-75 {
        flex: 0 0 calc(75% - 4rem);
    }
    .grid-2-item-60 {
        flex: 0 0 calc(60% - 2rem);
    }
    .grid-2-item-40 {
        flex: 0 0 calc(40% - 4rem);
    }
}



/* Responsive max 3 column Grid  */
.grid-3-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem; /* Space between items */
}

.grid-3-item {
    flex: 1 1 100%; /* 1 column on mobile */
}

/* 2 columns on tablets */
@media (min-width: 768px) {
    .grid-3-item {
        flex: 1 1 calc(50% - 0.6rem);
    }
}

/* 3 columns on desktop */
@media (min-width: 1024px) {
    .grid-3-item {
        flex: 1 1 calc(33.333% - 0.6rem);
    }
}

/* two columns, left and right aligned */
.flex-2-cols {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.flex-simple {
    display: flex;
    gap: 1rem;
}


/* Utilities */

.p1 {
    padding: 0.5rem;
}

.p2 {
    padding: 1rem;
}

.pt1 {
    padding-top: 0.5rem;
}

.mb1 {
    margin-bottom: 0.5rem;
}

.mb2 {
    margin-bottom: 10rem;
}

.pb1 {
    padding-bottom: 0.5rem;
}

.pb2 {
    padding-bottom: 1rem;
}

.pb3 {
    padding-bottom: 1.5rem;
}

.ptb1 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.ptb2 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.fs1 {
    font-size: 12px;
}

.fs2 {
    font-size: 14px;
}

.fs3 {
    font-size: 16px;
}

.fs4 {
    font-size: 18px;
}

.fs5 {
    font-size: 22px;
}

.fs6 {
    font-size: 24px;
}

.fs7 {
    font-size: 28px;
}

.fsxxl {
    font-size: 60px;
}

.bld {
    font-weight: bold;
}

.up {
    text-transform: uppercase;
}

.tj {
    text-align: justify;
}

.tc {
    text-align: center;
}