/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
    --accent-gold: #6D5F32;
    --dark-green: #1e3c33;
    --text-main: #333333;
    --text-muted: #666666;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    color: var(--text-main);
}
/* ==========================================================================
   GLOBAL VARIABLES (NAVBAR ONLY)
   ========================================================================== */
:root {
    --brand-gold: #6D5F32;
}
/* ==========================================================================
   2. NAV-PILL (FIXED AT TOP)
   ========================================================================== */
.nav-pill {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #ffffff;
    padding: 8px 22px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: auto;
    max-width: 95%;
    z-index: 1030;
}

.nav-pill.scrolled {
    background: rgba(255, 255, 255, 0.75) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    top: 10px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
}

.navbar-brand img {
    border-radius: 8px;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-collapse {
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
}

.navbar-nav {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-item {
    list-style: none;
}

.navbar-nav .nav-link {
    color: #6D5F32 !important;
    font-weight: 500;
    padding: 8px 12px !important;
    transition: all 0.3s ease;
    font-size: 15px;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--brand-gold);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 60%;
}

.navbar-nav .nav-link:hover {
    color: #d4af37 !important;
}

.nav-pill.scrolled .navbar-nav .nav-link {
    color: var(--brand-gold) !important;
}

.nav-pill.scrolled .navbar-nav .nav-link::after {
    background-color: var(--brand-gold);
}

.src-container {
    display: flex;
    align-items: center;
    background-color: #f5f5f0;
    border-radius: 30px;
    padding: 6px 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    gap: 5px;
}

.nav-pill.scrolled .src-container {
    background-color: transparent;
    border: 1px solid var(--brand-gold);
}

.nav-pill.scrolled .src-btn {
    color: var(--brand-gold);
}

.nav-pill.scrolled .src-container input {
    color: var(--brand-gold);
}

.nav-pill.scrolled .src-container input::placeholder {
    color: var(--brand-gold);
    opacity: 0.7;
}

.src-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #6D5F32;
    font-size: 14px;
    transition: all 0.3s ease;
}

.src-btn:hover {
    color: #d4af37;
    transform: scale(1.1);
}

.src-container input {
    background-color: transparent;
    border: none;
    outline: none;
    width: 0;
    opacity: 0;
    padding: 0;
    transition: all 0.3s ease;
    font-size: 13px;
}

.src-container.active input {
    width: 150px;
    opacity: 1;
    padding: 4px 8px;
}

.mobile-dropdown-container {
    position: relative;
    display: none;
    flex-shrink: 0;
}

.mobile-menu-btn {
    display: none;
    align-items: center;
    gap: 8px;
    background: rgba(109, 95, 50, 0.1);
    border: none;
    border-radius: 40px;
    padding: 8px 16px;
    font-weight: 500;
    color: #6D5F32;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-pill.scrolled .mobile-menu-btn {
    color: var(--brand-gold);
    background: transparent;
    border: 1px solid var(--brand-gold);
}

.mobile-menu-btn:hover {
    background: rgba(109, 95, 50, 0.2);
    transform: translateY(-2px);
}

.mobile-menu-btn i {
    font-size: 18px;
}

.mobile-menu-btn span {
    font-size: 14px;
}

.mobile-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1050;
    overflow: hidden;
}

.mobile-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #6D5F32;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid rgba(178, 161, 108, 0.1);
    transition: all 0.3s ease;
}

.mobile-dropdown-item:last-child {
    border-bottom: none;
}

.mobile-dropdown-item:hover {
    background: rgba(178, 161, 108, 0.15);
    padding-left: 28px;
}

/* ============================================
   HERO BANNER
   ============================================ */
.news-hero {
    background-image: url('../images/NewsBanner.png');
    height: 400px;
    width: 100%;
    position: relative;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    margin-top: 0;
    left: 0;
    border: none;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.4);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.hero-description {
    max-width: 800px;
    margin: 20px auto 0;
    font-size: 1.25rem;
    opacity: 0.9;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content {
    animation: fadeInUp 0.9s ease-out;
    border: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   NEWS HEADLINE SECTION (Two-Column Layout)
   ============================================ */
.news-headline-section {
    max-width: 1200px;
    margin: 30px auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.headline-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    min-height: 450px;
}

/* LEFT SIDE - Image with Hover Overlay */
.headline-image-container {
    position: relative;
    width: 100%;
    min-height: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.headline-image {
    width: 100%;
    height: 100%;
    min-height: 450px;
    background-image: url('../images/TRIGONO WEBSITE HOME.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}


.headline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(109, 95, 50, 0.95);
    display: flex;
    align-items: center;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.headline-image-container:hover .headline-overlay {
    opacity: 1;
}

.overlay-content {
    color: white;
    max-width: 500px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.headline-image-container:hover .overlay-content {
    transform: translateY(0);
}

.overlay-label {
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.overlay-project {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.overlay-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid white;
    display: inline-block;
    padding-bottom: 10px;
}

.overlay-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    font-style: italic;
    opacity: 0.9;
}

.overlay-read-more {
    display: inline-block;
    background: white;
    color: #6D5F32;
    text-decoration: none;
    padding: 12px 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.overlay-read-more:hover {
    background: #6D5F32;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* RIGHT SIDE - Rectangular Container */
/* ============================================
   FIXED HEIGHT FOR HEADLINE SIDEBAR
   ============================================ */
.headline-sidebar {
    background: white;
    border-radius: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    min-height: 450px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-content {
    text-align: center;
    padding: 30px;
    width: 100%;
}

/* ============================================
   LATEST ANNOUNCEMENT STYLES
   ============================================ */

/* Announcement Container */
.announcement-wrapper {
    text-align: center;
    width: 100%;
}

/* Announcement Badge */
.announcement-badge {
    background: #6D5F32;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* Announcement Image */
.announcement-image {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Announcement Icon (fallback) */
.announcement-icon {
    font-size: 3rem;
    color: #6D5F32;
    opacity: 0.4;
    margin-bottom: 12px;
    display: block;
}

/* Announcement Category Tag */
.announcement-category-tag {
    background: #f5f0e8;
    padding: 2px 10px;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 10px;
}

.announcement-category-tag span {
    font-size: 0.65rem;
    color: #6D5F32;
}

/* Announcement Title */
.announcement-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    margin: 12px 0 8px;
    line-height: 1.3;
}

/* Announcement Date */
.announcement-date {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 15px;
}

/* Announcement Read More Button */
.announcement-read-more {
    background: #6D5F32;
    color: white;
    text-decoration: none;
    padding: 7px 18px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
}

.announcement-read-more:hover {
    background: #8B7B4A;
    transform: translateY(-2px);
    color: white;
}

/* Clickable Image Hover Effect */
.announcement-image-link {
    text-decoration: none;
    display: block;
}

.announcement-image-link .announcement-image {
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.announcement-image-link:hover .announcement-image {
    opacity: 0.85;
}

/* Custom scrollbar for sidebar */
.headline-sidebar::-webkit-scrollbar {
    width: 5px;
}

.headline-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.headline-sidebar::-webkit-scrollbar-thumb {
    background: #6D5F32;
    border-radius: 10px;
}

/* Make left side also fixed height to match */
.headline-image-container {
    position: relative;
    width: 100%;
    min-height: 450px;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.headline-image {
    width: 100%;
    height: 100%;
    background-image: url('../images/TRIGONO WEBSITE HOME.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   MAIN LAYOUT
   ============================================ */
.news-container {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* ============================================
   LATEST NEWS SECTION
   ============================================ */
.latest-news-section {
    background: transparent;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #6D5F32;
    border-radius: 2px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(109, 95, 50, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(109, 95, 50, 0.12);
}

.news-item-image {
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-item-image i {
    font-size: 3rem;
    color: #6D5F32;
    opacity: 0.5;
}

.news-item-content {
    padding: 20px 20px 20px 0;
}

.news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #666;
}

.news-meta i {
    margin-right: 5px;
    color: #6D5F32;
}

.news-item-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
    line-height: 1.4;
}

.news-item-excerpt {
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px;
    font-size: 0.95rem;
}

.read-more {
    color: #6D5F32;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 8px;
    color: #8B7B4A;
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background: transparent;
    border: 2px solid #6D5F32;
    color: #6D5F32;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.load-more-btn:hover {
    background: #6D5F32;
    border-color: #6D5F32;
    color: white;
}

/* ============================================
   SIDEBAR STYLES
   ============================================ */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: white;
    border-radius: 4px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(109, 95, 50, 0.08);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.widget-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #6D5F32;
}

/* Search Widget */
.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #6D5F32;
}

.search-box button {
    background: #6D5F32;
    border: none;
    color: white;
    width: 45px;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.search-box button:hover {
    opacity: 0.9;
}

/* Recent News Widget */
.recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.recent-posts li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-posts li:first-child {
    padding-top: 0;
}

.recent-posts a {
    text-decoration: none;
    display: block;
}

.recent-post-title {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.recent-post-date {
    display: block;
    color: #999;
    font-size: 0.8rem;
}

.recent-posts a:hover .recent-post-title {
    color: #6D5F32;
}

/* Categories Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    text-decoration: none;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.category-list a i {
    color: #6D5F32;
    width: 20px;
    margin-right: 8px;
}

.category-list a:hover {
    color: #6D5F32;
}

.category-list a.active-category {
    color: #6D5F32;
    font-weight: 600;
}

.category-list a.active-category .category-count {
    background: #6D5F32;
    color: white;
}

.show-all-cats:hover {
    text-decoration: underline !important;
}

.category-count {
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #666;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    text-align: center;
    background: #6D5F32;
    color: #ffffff;
    padding: 20px 0;
    font-weight: 500;
    margin-top: 50px;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #d4af37;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .news-container {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .nav-pill {
        padding: 6px 16px !important;
        width: 95% !important;
    }
    
    .collapse.navbar-collapse {
        display: none !important;
    }
    
    .mobile-dropdown-container {
        display: block !important;
    }
    
    .mobile-menu-btn {
        display: flex !important;
    }
    
    .navbar-nav {
        display: none !important;
    }
    
    .src-container input {
        width: auto !important;
        opacity: 1 !important;
    }
    
    .news-container {
        grid-template-columns: 1fr;
    }
    
    .headline-container {
        grid-template-columns: 1fr 250px;
        min-height: 400px;
    }
    
    .overlay-project {
        font-size: 1.8rem;
    }
    
    .overlay-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .nav-pill {
        width: 95% !important;
        top: 10px;
    }
    
    .headline-container {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 20px;
    }
    
    .headline-image-container {
        height: auto;
        min-height: 350px;
    }
    
    .headline-sidebar {
        height: auto;
        min-height: auto;
    }
    
    .news-headline-section {
        margin-top: 30px;
    }
    
    .news-item {
        grid-template-columns: 1fr;
    }
    
    .news-item-image {
        height: 200px;
    }
    
    .news-item-content {
        padding: 20px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .nav-pill {
        padding: 5px 12px !important;
        width: 95% !important;
    }
    
    .mobile-menu-btn span {
        display: none;
    }
    
    .navbar-brand img {
        width: 35px;
        height: 35px;
    }
    
    .src-container {
        max-width: 110px;
    }
    
    .src-container input {
        font-size: 11px;
    }
    
    .headline-image-container {
        min-height: 300px;
    }
    
    .overlay-content {
        padding: 20px;
    }
    
    .overlay-project {
        font-size: 1.5rem;
    }
    
    .overlay-title {
        font-size: 1.5rem;
    }
    
    .overlay-description {
        font-size: 0.9rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 400px) {
    .nav-pill {
        padding: 4px 10px !important;
        gap: 8px !important;
    }
    
    .src-container {
        max-width: 90px;
        padding: 4px 8px !important;
    }
    
    .mobile-menu-btn {
        padding: 5px 8px;
    }
}