/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --header-height: 120px;
    --footer-height: 150px;
    --primary-color: #2b557f;
    --secondary-color: #3498db;
    --card-background: #f8f9fa;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height);
    min-height: 100vh;
}

/* Header Styles */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    display: flex;
    align-items: center;
   
}

.header-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    color: #2b557f;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
     
}

.logo:hover img {
    transform: scale(2);
}

#logo-img {
    max-height: 100%;
    
    margin-left: 10px;
    max-width: 250px;
    object-fit: contain;
    
   
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* Navigation Styles */
.main-nav {
    background: var(--primary-color);
    position: sticky;
    top: var(--header-height);
    z-index: 999;
    box-shadow: var(--shadow);
}

.nav-level-1 {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: block;
    padding: 15px 25px;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.nav-item > a:hover,
.nav-item > a.active {
    background-color: var(--secondary-color);
}

.nav-item i {
    font-size: 12px;
    margin-left: 5px;
}

/* Submenu Styles */
.submenu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 250px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.nav-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.3s, padding-left 0.3s;
    border-bottom: 1px solid #eee;
}

.submenu li:last-child a {
    border-bottom: none;
}

.submenu li a:hover {
    background-color: var(--light-bg);
    padding-left: 25px;
    color: var(--secondary-color);
}

/* Main Content */
#main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

/* Page Styles */
.page {
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeIn 0.6s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.page-title {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--secondary-color);
}

/* Content Box Styles */
.content-box {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

/* Side by Side Layout */
.layout-sidebyside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.text-box {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

 

.text-box h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.text-box h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.text-box p {
    margin-bottom: 18px;
    line-height: 1.2;
}

.text-box li {
    margin-bottom: 12px;
    line-height: 1.2;
    margin-left: 20px;
}


.image-sbs-box{
   position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);

}

.image-sbs-box img {
     
    height: 400px;
    display: block;
    transition: transform 0.3s;
}

.image-sbs-box:hover img {
    transform: scale(1.1);
}


.image-box {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.image-box img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.image-box:hover img {
    transform: scale(1.05);
}

/* Vertical Layout */
.layout-vertical .text-box,
.layout-vertical .image-box {
    margin-bottom: 30px;
}

/* Loading Indicator */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2em;
    color: var(--secondary-color);
}

.loading.hidden {
    display: none;
}

.loading i {
    margin-right: 10px;
}

/* Footer Styles */
#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--footer-height);
    background: var(--primary-color);
    color: var(--white);
    z-index: 998;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    height: calc(var(--footer-height) - 30px);
}

.footer-section h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.footer-section p {
    font-size: 0.9em;
    margin-bottom: 5px;
}

.footer-section i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    font-size: 1.5em;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 5px;
    background: rgba(0,0,0,0.2);
    font-size: 0.85em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .layout-sidebyside {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 80px;
        --footer-height: auto;
    }

    body {
        padding-top: var(--header-height);
        padding-bottom: 0;
    }

    .header-content {
        padding: 0 15px;
    }

    .logo {
        height: 60px;
    }

    #logo-img {
        max-width: 150px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Mobile Navigation */
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - var(--header-height));
        background: var(--primary-color);
        transition: left 0.3s;
        overflow-y: auto;
    }

    .main-nav.active {
        left: 0;
    }

    .nav-level-1 {
        flex-direction: column;
    }

    .nav-item > a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }

    .nav-item.active .submenu {
        max-height: 500px;
    }

    .submenu li a {
        padding: 10px 20px 10px 40px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        color: var(--white);
    }

    .submenu li a:hover {
        background: rgba(255,255,255,0.1);
        padding-left: 45px;
    }

    .page-title {
        font-size: 1.8em;
    }

    .content-box {
        padding: 20px;
    }

    .text-box {
        padding: 20px;
    }

    /* Footer */
    #footer {
        position: relative;
        height: auto;
        margin-top: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        height: auto;
        padding: 30px 20px 20px;
    }

    .footer-section {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.5em;
    }

    .content-box {
        padding: 15px;
    }

    .text-box {
        padding: 15px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Overlay for mobile menu */
.nav-overlay {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

.nav-overlay.active {
    display: block;
}

@media (min-width: 769px) {
    .nav-overlay {
        display: none !important;
    }
}

/****** news ****/
        
 
  
  
  
  
  .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 1rem 1rem;
        }

        h1, h2 {
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
        }

        /* --- 2. Header and Title --- */
       
        /* --- 3. Filter Buttons --- */
       

        /* --- 4. Article Grid (The Responsive Magic) --- */
        .article-grid {
            display: grid;
            /* 
              This is the key to responsiveness:
              - 'auto-fit' creates as many columns as will fit.
              - 'minmax(320px, 1fr)' means each column must be at least 320px wide, 
                and they will all share the remaining space equally (1fr).
            */
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 2rem;
        }

        /* --- 5. Article Card Styling --- */
        .card {
            background-color: var(--card-background);
            border-radius: 12px;
            box-shadow: 0 4px 15px var(--shadow-color);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .card:hover {
            transform: translateY(-8px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        .card-image {
            width: 100%;
            height: 200px;
            object-fit: cover; /* Prevents image distortion */
        }
        
        .card-content {
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            flex-grow: 1; /* Makes card content expand to fill space */
        }

        .card-category {
            display: inline-block;
            background-color: var(--secondary-color);
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: 700;
            margin-bottom: 1rem;
            align-self: flex-start;
        }

        .card-title {
            font-size: 1.3rem;
            margin-bottom: 0.75rem;
            color: var(--text-color);
        }

        .card-excerpt {
            color: var(--subtle-text-color);
            flex-grow: 1; /* Pushes the 'read more' link to the bottom */
            margin-bottom: 1.5rem;
        }

        .card-read-more {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 700;
            align-self: flex-start;
            transition: color 0.3s ease;
        }
        
        .card-read-more:hover {
            text-decoration: underline;
        }