:root {
    --navy: #1a1a4b;
    --action-blue: #00a3ff;
    --dark-grey: #333333;
    --light-grey: #f4f4f4;
    --white: #ffffff;
    --text-dark: #1f2937;
    --text-light: #f9fafb;
    --red-accent: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header & Nav */
header {
    width: 100%;
    z-index: 1000;
}

.top-bar {
    background-color: var(--dark-grey);
    color: var(--white);
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.main-nav {
    background-color: var(--white);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1001;
}

.logo img {
    height: 45px;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--navy);
    cursor: pointer;
}

/* Hero Slider */
.hero {
    position: relative;
    height: 500px;
    background-color: #000;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 10%;
    color: var(--white);
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-cta {
    background-color: var(--action-blue);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-cta:hover {
    background-color: var(--navy);
}

/* Sectors Grid */
.sectors-section {
    padding: 60px 5%;
    background-color: var(--light-grey);
}

.section-title {
    text-align: center;
    color: var(--navy);
    margin-bottom: 40px;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.sector-card {
    background-color: var(--navy);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    transition: 0.3s;
    cursor: pointer;
}

.sector-card:hover {
    transform: translateY(-5px);
    background-color: var(--action-blue);
}

/* Main Content Area */
.main-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    padding: 60px 5%;
}

.news-card {
    border-bottom: 1px solid #ddd;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.news-card img {
    width: 100%;
    border-radius: 8px;
}

/* Sidebar */
.sidebar-box {
    background: var(--light-grey);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.search-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Footer */
footer {
    background-color: var(--navy);
    color: var(--white);
    padding: 60px 5% 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
    }
}

/* Brands Carousel */
.brands-section {
    padding: 40px 5%;
    background: white;
    overflow: hidden;
    border-top: 1px solid #eee;
}

.brands-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    animation: scrollBrands 30s linear infinite;
    width: max-content;
}

.brand-item img {
    height: 40px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s;
}

.brand-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--navy);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.modal-body img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
}

@keyframes scrollBrands {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}