/* CSS Variables cho Đảng bộ UEH */
:root {
    --primary-green: rgba(0, 75, 65, 0.95);
    --primary-orange: #f26f33;
    --dark-green: #00362e;
    --light-green: rgba(0, 75, 65, 0.05);
    --text-main: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --font-main: 'Be Vietnam Pro', sans-serif;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--primary-orange);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.mt-50 { margin-top: 60px; }
.text-center { text-align: center; }

/* Top Bar */
.top-bar {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    padding: 10px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-links a {
    color: var(--text-light);
    margin: 0 8px;
    font-weight: 500;
}

.top-links a:hover {
    color: var(--primary-green);
}

.top-search form {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    padding: 4px 12px;
    transition: var(--transition);
}

.top-search form:focus-within {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px var(--light-green);
}

.search-input {
    border: none;
    outline: none;
    padding: 5px;
    font-size: 13px;
    width: 180px;
    background: transparent;
    font-family: inherit;
    color: var(--text-main);
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-orange);
    display: flex;
    align-items: center;
}

/* Header */
.header {
    background-color: var(--bg-white);
    padding: 25px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-cpv img {
    height: 90px;
    object-fit: contain;
}

.site-title h1 {
    font-size: 24px;
    color: var(--primary-green) !important;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.site-title p {
    font-size: 14px;
    color: var(--bg-white);
    font-weight: 600;
    background-color: var(--primary-orange);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.logo-ueh {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-ueh img {
    height: 70px;
    object-fit: contain;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-green) !important;
    border-radius: 3px;
    transition: var(--transition);
}

/* Navigation */
.main-nav {
    background: var(--primary-green) !important;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.nav-list {
    display: flex;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: block;
    color: var(--bg-white);
    padding: 18px 24px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background-color: var(--primary-orange);
    transition: var(--transition);
}

.nav-item:hover > a::after {
    width: 100%;
}

.nav-item:hover > a {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    min-width: 280px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    border-top: 4px solid var(--primary-orange);
    border-radius: 0 0 8px 8px;
    z-index: 101;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    border-bottom: 1px solid var(--border-color);
}

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

.dropdown a {
    display: block;
    padding: 14px 20px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
}

.dropdown a:hover {
    background-color: var(--light-green);
    color: var(--primary-green) !important;
    padding-left: 25px;
}

/* News Ticker */
.news-ticker {
    background-color: var(--bg-white);
    color: var(--text-main);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.ticker-wrapper {
    display: flex;
    align-items: center;
}

.ticker-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    background-color: var(--primary-orange);
    color: var(--bg-white);
    padding: 4px 12px;
    border-radius: 20px;
    margin-right: 15px;
    white-space: nowrap;
}

.ticker-content {
    flex-grow: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker-content a {
    color: var(--text-main);
    font-weight: 500;
}

.ticker-content a:hover {
    color: var(--primary-orange);
}

/* Hero Banner */
.hero-banner {
    margin-bottom: 50px;
}

.hero-image {
    width: 100%;
    height: 450px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Adding a soft gradient overlay for readability if text is on top */
.hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 75, 65, 0.4), rgba(0,0,0,0));
}

.hero-overlay {
    position: relative;
    z-index: 1;
}

.hero-overlay h2 {
    color: var(--bg-white);
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
    max-width: 900px;
    padding: 0 20px;
    line-height: 1.3;
}

/* Main Content & Grid */
.section-title {
    font-size: 22px;
    color: var(--primary-green) !important;
    text-transform: uppercase;
    border-bottom: 3px solid var(--border-color);
    margin-bottom: 40px;
    position: relative;
}

.section-title span {
    display: inline-block;
    background-color: var(--primary-green) !important;
    color: var(--bg-white);
    padding: 10px 24px;
    border-radius: 8px 8px 0 0;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background-color: var(--primary-orange);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

/* Info Cards */
.info-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 25px;
    border-top: 5px solid var(--primary-green) !important;
    transition: var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--bg-white);
}

.plan-icon { background-color: var(--primary-green) !important; }
.noti-icon { background-color: var(--primary-orange); }
.event-icon { background-color: var(--dark-green); }

.card-header h4 {
    font-size: 17px;
    color: var(--primary-green) !important;
    text-transform: uppercase;
    font-weight: 700;
}

.post-list li {
    margin-bottom: 18px;
    position: relative;
    padding-left: 20px;
}

.post-list li::before {
    content: '❯';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-orange);
    font-size: 12px;
    font-weight: bold;
}

.post-list a {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    display: inline-block;
}

.badge.new {
    background-color: var(--primary-orange);
    color: var(--bg-white);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
    font-weight: 700;
}

.read-more {
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-green) !important;
    text-transform: uppercase;
}

.read-more::after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* Thematic Sections */
.theme-card {
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.theme-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
}

.theme-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.theme-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.theme-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-white);
}

.theme-content h4 {
    font-size: 17px;
    color: var(--primary-green) !important;
    line-height: 1.5;
    font-weight: 700;
}

/* Document List Card */
.list-card {
    padding: 25px;
}

.theme-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    color: var(--primary-orange);
}

.theme-header svg {
    margin-right: 12px;
}

.theme-header h4 {
    font-size: 17px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary-green) !important;
}

.document-list li {
    margin-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 15px;
}

.document-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.document-list a {
    font-size: 15px;
    font-weight: 600;
    display: block;
    position: relative;
    padding-left: 25px;
}

.document-list a::before {
    content: '📄';
    position: absolute;
    left: 0;
    font-size: 14px;
}

.document-list a:hover {
    color: var(--primary-orange);
    transform: translateX(5px);
}

/* Footer */
.footer {
    background-color: var(--dark-green);
    color: #e2e8f0;
    margin-top: 80px;
    padding-top: 50px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-info h3 {
    color: var(--primary-orange);
    font-size: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.footer-info p {
    margin-bottom: 12px;
    font-size: 15px;
    opacity: 0.9;
}

.footer-info strong {
    color: var(--bg-white);
}

.footer-links h4 {
    color: var(--bg-white);
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e0;
    font-size: 15px;
    display: inline-block;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-orange);
    transform: translateX(5px);
}

.footer-bottom {
    background-color: rgba(0,0,0,0.3);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .logo-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .site-title h1 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
    }
    
    .top-bar-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Mobile Navigation */
    .mobile-menu-btn {
        display: flex;
    }
    
    .main-nav {
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
    }
    
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        border-top: none;
        background-color: rgba(255,255,255,0.05);
    }
    
    .nav-item.active .dropdown {
        display: block;
    }
    
    .dropdown a {
        color: var(--bg-white);
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .logo-ueh {
        display: none; /* Hide on very small screens for space */
    }
    
    .hero-image {
        height: 300px;
    }
    
    .hero-overlay h2 {
        font-size: 24px;
    }
}
