﻿/* =========================
   CSS VARIABLES
========================= */
:root {
    /* Fonts */
    --font-primary: Arial, sans-serif;
    --font-secondary: 'Segoe UI', Arial, sans-serif;
    /* Colors */
    --color-white: #fff;
    --color-black: #000;
    --color-text-dark: #333;
    --color-text-light: #666;
    --color-muted: #ccc;
    --color-border-light: #eee;
    --color-border-footer: rgba(255, 255, 255, 0.1);
    --color-primary-blue: #0088cc;
    --color-accent-orange: #f39c12;
    --color-orange-bg: #f7941d;
    --color-readmore: #ff9933;
    --color-readmore-hover: #e68a00;
    --color-footer-bg: #002133;
    --color-news-date: #8da4b4;
    /* Spacing */
    --space-0: 0;
    --space-5: 5px;
    --space-10: 10px;
    --space-15: 15px;
    --space-20: 20px;
    --space-25: 25px;
    --space-30: 30px;
    /* Font Sizes */
    --font-10: 10px;
    --font-12: 12px;
    --font-13: 13px;
    --font-14: 14px;
    --font-16: 16px;
    --font-18: 18px;
    --font-22: 22px;
    --font-24: 24px;
    /* Radius */
    --radius-4: 4px;
    --radius-8: 8px;
    /* Shadow */
    --shadow-light: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* =========================
   BASE
========================= */
body {
    font-family: var(--font-primary);
    margin: var(--space-0);
}

/* =========================
   HEADER
========================= */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-10) var(--space-20);
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border-light);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

    .logo img {
        height: 50px;
        margin-right: var(--space-10);
    }

.logo-text h1 {
    font-size: var(--font-24);
    margin: var(--space-0);
    text-transform: lowercase;
    font-style: italic;
    color: var(--color-text-dark);
}

.logo-text p {
    font-size: var(--font-10);
    margin: var(--space-0);
    color: var(--color-text-light);
}

/* Navigation */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: var(--space-20);
    margin: var(--space-0);
}

    .nav-menu ul li a {
        text-decoration: none;
        color: var(--color-text-dark);
        font-size: var(--font-14);
        font-weight: 500;
    }

        .nav-menu ul li a.active {
            color: var(--color-accent-orange);
        }

.nav-menu i {
    font-size: var(--font-12);
    margin-left: 3px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-15);
}

.add-news-btn {
    background-color: var(--color-primary-blue);
    color: var(--color-white);
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-4);
    text-decoration: none;
    font-size: var(--font-14);
    box-shadow: var(--shadow-light);
}



.search-btn {
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    padding: 8px 10px;
    border-radius: var(--radius-4);
    cursor: pointer;
}

/* Language Selector */
.lang-selector {
    display: flex;
    gap: var(--space-10);
    font-size: var(--font-13);
    font-weight: bold;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

    .lang-item img {
        width: 18px;
    }

/* =========================
   NAV BAR & BANNER
========================= */
.orange-bg {
    background-color: var(--color-orange-bg) !important;
    display: block !important;
    width: 100%;
}

.banner-section {
    color: var(--color-white) !important;
    padding: 0 var(--space-30) !important;
}
/*  'Add New news'  button */
.add-news-btn:hover {
    opacity: 0.9;
    color: var(--color-white);
}

.submit-btn {
    background-color: var(--color-primary-blue);
    color: var(--color-white);
    padding: 8px 15px;
    border-radius: var(--radius-4);
    text-decoration: none;
    font-weight: bold;
    font-size: var(--font-14);
}
/* =========================
   NEWS SECTION
========================= */
.profile-img {
    border-radius: var(--radius-8);
    width: 100%;
    max-width: 150px;
    height: auto;
    box-shadow: var(--shadow-light);
}

.news-title {
    font-weight: bold; /* ensures the heading is bold */
    font-size: 1.2rem;
    margin-bottom: var(--space-5);
}

    .news-title a {
        color: #000; /* black text */
        font-weight: bold; /* bold text for the link itself */
        text-decoration: none; /* remove underline */
    }

        .news-title a:hover {
            color: #000; /* keep black on hover */
            text-decoration: none; /* prevent underline on hover */
        }

.news-date {
    color: #0d6efd; /* Default Bootstrap button blue */

    font-size: 0.85rem;
    font-weight: 500;
}

.news-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Show only 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*---------------------------------------
    News Detail Page.css 
-----------------------------------------
*/

.news-detail-title {
    color: #0d6efd; /* Professional button/heading blue */
    font-weight: bold; /* Bold title */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Clean professional font */
    font-size: 1.75rem; /* H3-ish size; adjust if needed */
    line-height: 1.2; /* Tight line spacing for 1-2 lines */
    margin-bottom: 0.5rem; /* Spacing below title */
    display: -webkit-box; /* Multi-line clamp */
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
/*New detail image */
.news-detail-img {
    border-radius: 8px; /* soft rounded corners */
    height: auto;
    object-fit: cover;
}
.read-more {
    color: var(--color-readmore);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
}

    .read-more:hover {
        color: var(--color-readmore-hover);
        text-decoration: underline;
    }



/* =========================
   FOOTER
========================= */
.main-footer {
    background-color: var(--color-footer-bg);
    color: var(--color-white);
    padding: var(--space-20) 0 var(--space-10);
    font-family: var(--font-secondary);
}

.footer-logo {
    font-size: var(--font-22);
    font-weight: bold;
    margin-bottom: var(--space-5);
}

.journal-info {
    font-size: var(--font-13);
    color: var(--color-muted);
    margin-bottom: var(--space-10);
}

.open-access {
    font-size: var(--font-14);
}

.footer-heading {
    font-weight: bold;
    margin-bottom: var(--space-20);
    font-size: var(--font-16);
}

.footer-links {
    list-style: none;
    padding: var(--space-0);
}

    .footer-links li {
        margin-bottom: 1px;
    }

    .footer-links a {
        color: var(--color-white);
        text-decoration: none;
        font-size: var(--font-14);
    }

/* Newsletter */
.custom-field {
    background-color: var(--color-white) !important;
    border: none !important;
    height: 45px;
    padding-left: var(--space-20) !important;
    font-size: var(--font-14);
    color: var(--color-text-dark) !important;
}

.subscribe-btn {
    background-color: var(--color-primary-blue) !important;
    color: var(--color-white) !important;
    font-weight: bold;
    height: 45px;
    border: none;
    letter-spacing: 0.5px;
    cursor: pointer;
}

    .subscribe-btn:hover {
        opacity: 0.9;
    }

.footer-bottom {
    border-top: 1px solid var(--color-border-footer);
    position: relative;
}

.copyright-text {
    font-size: var(--font-13);
    color: var(--color-muted);
}

.scroll-up-btn {
    position: absolute;
    right: 0;
    bottom: 15px;
    color: var(--color-primary-blue);
    font-size: var(--font-18);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .news-nav-container {
        flex-direction: column;
    }

    .next-news {
        text-align: left;
        margin-top: 10px;
    }
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
    .main-header {
        flex-direction: column;
        gap: var(--space-15);
        text-align: center;
    }

    .nav-menu ul {
        flex-wrap: wrap;
        justify-content: center;
        padding: var(--space-0);
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .submit-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .news-section {
        text-align: center;
    }

    .profile-img {
        margin-bottom: var(--space-20);
        max-width: 200px;
    }
   

    .banner-section .container {
        flex-direction: column;
        text-align: center;
        gap: var(--space-5);
    }

    .main-footer {
        text-align: center;
    }

    .footer-links {
        margin-bottom: var(--space-30);
    }

    .newsletter-form {
        max-width: 400px;
        margin: 0 auto;
    }

    .scroll-up-btn {
        position: static;
        margin-top: var(--space-20);
        display: block;
    }
}

.img-fluid {
    height: auto;
}

.container {
    overflow-x: hidden;
}
