/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0066B3;
    --secondary-blue: #1E88E5;
    --accent-teal: #00ACC1;
    --dark-blue: #003A75;
    --light-blue: #E3F2FD;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #757575;
    --dark-gray: #222222;
    --emergency-red: #D32F2F;
    --success-green: #388E3C;
    --whatsapp-green: #25D366;
    --gold: #FFD700;
    --silver: #C0C0C0;
    --bronze: #CD7F32;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 2rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: none;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--light-blue);
}

/* ===== EMERGENCY ALERT ===== */
.emergency-alert {
    background-color: var(--emergency-red);
    color: var(--white);
    padding: 10px 0;
    text-align: center;
    font-weight: 600;
    position: relative;
}

.emergency-alert .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.close-alert {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    margin-left: 20px;
    font-size: 1.2rem;
}

/* ===== HEADER ===== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-blue);
}

/* ===== OFFICIAL LOGO & BRANDING ===== */
.official-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.official-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-container {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.logo-text-container {
    display: flex;
    flex-direction: column;
}

.organization-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-blue);
    line-height: 1.2;
}

.organization-slogan {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--accent-teal);
    font-weight: 600;
    margin-top: 3px;
}

/* ===== OFFICIAL FLAG ===== */
.official-flag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 15px;
    background-color: var(--light-blue);
    border-radius: 20px;
    font-weight: 600;
    color: var(--dark-blue);
}

.flag-icon {
    font-size: 1.5rem;
    color: var(--emergency-red);
}

/* ===== LANGUAGE SWITCHER ===== */
.header-utilities {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-switcher {
    display: flex;
    gap: 5px;
}

.lang-btn {
    padding: 6px 12px;
    border: 1px solid var(--light-blue);
    background: var(--white);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.lang-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* ===== NAVIGATION ===== */
.header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-menu li a {
    font-weight: 600;
    color: var(--dark-blue);
    position: relative;
    padding-bottom: 5px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.nav-menu li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-teal);
    transition: width 0.3s ease;
}

.nav-menu li a:hover:after,
.nav-menu li a.active:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--dark-blue);
    background: none;
    border: none;
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-1 {
    background-image: linear-gradient(rgba(0, 58, 117, 0.7), rgba(0, 102, 179, 0.6)), 
                      url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
}

.hero-slide-2 {
    background-image: linear-gradient(rgba(0, 58, 117, 0.7), rgba(0, 102, 179, 0.6)), 
                      url('https://images.unsplash.com/photo-1577896851231-70ef18881754?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
}

.hero-slide-3 {
    background-image: linear-gradient(rgba(0, 58, 117, 0.7), rgba(0, 102, 179, 0.6)), 
                      url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.slide-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.slide-indicator.active {
    background-color: var(--white);
    transform: scale(1.2);
}

/* ===== UN STATUS BANNER ===== */
.un-status {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 15px 0;
}

.un-status-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 600;
}

.un-status-content i {
    font-size: 1.5rem;
    color: var(--gold);
}

/* ===== QUICK LINKS ===== */
.quick-links {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.link-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    color: var(--dark-gray);
}

.link-card:hover {
    transform: translateY(-10px);
    color: var(--primary-blue);
}

.link-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.link-card h3 {
    margin-bottom: 10px;
    color: var(--dark-blue);
}

/* ===== ABOUT PREVIEW ===== */
.about-preview {
    padding: 80px 0;
    background-color: var(--white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 30px;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--medium-gray);
}

/* ===== PRIORITIES PREVIEW ===== */
.priorities-preview {
    padding: 80px 0;
    background-color: var(--light-blue);
}

.priorities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.priority-item {
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.priority-item:hover {
    transform: translateY(-5px);
}

.priority-item i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.priority-item h3 {
    font-size: 1.2rem;
    color: var(--dark-blue);
}

/* ===== CONTENT PAGES ===== */
.content-header {
    background: linear-gradient(rgba(0, 58, 117, 0.9), rgba(0, 102, 179, 0.8)), 
                url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.content-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.content-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

.content-body {
    padding: 80px 0;
    background-color: var(--white);
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 50px;
}

.content-section h2 {
    color: var(--dark-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent-teal);
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.content-section ul, .content-section ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.content-section li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ===== PRESIDENTIAL SEAL ===== */
.presidential-seal {
    text-align: center;
    padding: 40px;
    background-color: var(--light-blue);
    border-radius: var(--border-radius);
    margin: 40px 0;
}

.seal-container {
    display: inline-block;
    padding: 30px;
    background-color: var(--white);
    border-radius: 50%;
    box-shadow: var(--box-shadow);
}

.seal-icon {
    font-size: 4rem;
    color: var(--primary-blue);
}

.seal-text {
    margin-top: 20px;
    font-weight: 600;
    color: var(--dark-blue);
}

/* ===== DEPARTMENTS PAGE ===== */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.department-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 5px solid var(--accent-teal);
}

.department-card h3 {
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.department-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-blue);
    font-weight: 600;
}

/* ===== HUMANITY AWARDS PAGE ===== */
.awards-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.award-category {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.award-gold {
    border-top: 5px solid var(--gold);
}

.award-silver {
    border-top: 5px solid var(--silver);
}

.award-bronze {
    border-top: 5px solid var(--bronze);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-branding .organization-name {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer-branding .organization-slogan {
    color: var(--accent-teal);
    margin-bottom: 15px;
}

.footer-branding p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: var(--accent-teal);
    transform: translateY(-5px);
}

.footer-links h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--light-blue);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a:hover {
    color: var(--accent-teal);
    padding-left: 5px;
    transition: all 0.2s;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-icon {
    color: var(--accent-teal);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.tech-credit {
    color: var(--accent-teal);
    font-weight: 600;
    margin: 10px 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
    
    .content-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .official-branding {
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .content-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}
/* ============================================
   More from WHC Section (UN.org style cards)
   ============================================ */

.more-from-whc {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.more-from-whc .heading-block {
    text-align: center;
    margin-bottom: 60px;
}

.more-from-whc h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #1a365d;
    line-height: 1.2;
    margin-bottom: 15px;
}

.more-from-whc .intro {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Card Container */
.whc-home-square {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.whc-home-square:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Image */
.whc-home-square a img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-bottom: 3px solid #0047AB;
}

/* Category Tag */
.whc-home-square .category {
    display: inline-block;
    margin: 20px 20px 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0047AB;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Content */
.whc-home-square .field-content {
    padding: 0 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.whc-home-square h4 {
    margin: 0 0 15px 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1.4;
}

.whc-home-square h4 a {
    color: #1a365d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.whc-home-square h4 a:hover {
    color: #0047AB;
    text-decoration: underline;
}

.whc-home-square p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Grid Layout */
.third-row {
    margin-bottom: 40px;
}

.bottommargin-med {
    margin-bottom: 50px;
}

.section-bottom-border {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 40px;
}

.border-indent {
    padding-left: 15px;
    padding-right: 15px;
}

/* Responsive Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.col-md-4 {
    position: relative;
    width: 100%;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-md-offset-3 {
        margin-left: 25%;
    }
}

/* Utility Classes */
.topmargin {
    margin-top: 20px;
}

.bottommargin-sm {
    margin-bottom: 30px;
}

.text-center {
    text-align: center;
}

/* ============================================
   Footer Flag Styling
   ============================================ */

.official-flag-footer {
    text-align: center;
    margin: 20px 0;
}

.official-flag-footer img {
    max-width: 150px;
    height: auto;
    border-radius: 4px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.official-flag-footer img:hover {
    transform: scale(1.03);
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 992px) {
    .more-from-whc h2 {
        font-size: 2.2rem;
    }
    
    .more-from-whc .intro {
        font-size: 1rem;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .more-from-whc {
        padding: 60px 0;
    }
    
    .more-from-whc h2 {
        font-size: 2rem;
    }
    
    .col-md-offset-3 {
        margin-left: 0;
    }
    
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .whc-home-square a img {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .more-from-whc {
        padding: 40px 0;
    }
    
    .more-from-whc h2 {
        font-size: 1.8rem;
    }
    
    .whc-home-square {
        margin-bottom: 25px;
    }
    
    .whc-home-square h4 {
        font-size: 1.2rem;
    }
    
    .official-flag-footer img {
        max-width: 120px;
    }
}

/* ============================================
   Color Variables (for consistency)
   ============================================ */

:root {
    --primary-blue: #0047AB;
    --dark-blue: #1a365d;
    --medium-blue: #2c5282;
    --light-blue: #4299e1;
    --gray-dark: #4a5568;
    --gray-medium: #718096;
    --gray-light: #e2e8f0;
    --gray-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.12);
}

/* ============================================
   Animation for Card Hover Effect
   ============================================ */

@keyframes cardLift {
    0% {
        transform: translateY(0);
        box-shadow: 0 4px 12px var(--shadow);
    }
    100% {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px var(--shadow-hover);
    }
}

.whc-home-square:hover {
    animation: cardLift 0.3s ease forwards;
}

/* ============================================
   Image Loading Placeholder
   ============================================ */

.whc-home-square a img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}