/* ALCRC Website Styles - Professional Minimalist Design */

/* ============================================
   1. CSS RESET & BASE STYLES
============================================ */
/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} */

:root {
    /* Colors - Professional palette inspired by tralac */
    --primary-color: #a89160;
    --secondary-color: #d7c042;
    --accent-color: #ff6600;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --text-white:white;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-black: #343a40;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    
    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Georgia', serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

/* ============================================
   2. LAYOUT & CONTAINER
============================================ */
.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.main-content {
    min-height: calc(100vh - 400px);
}

/* ============================================
   3. TOP BAR
============================================ */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-xs) 0;
    font-size: 0.875rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span {
    margin-right: var(--spacing-md);
}

.top-bar-left i {
    margin-right: 0.3rem;
}

.header-search {
    float: right;
  }


.social-link {
    color: white;
    margin-left: var(--spacing-sm);
    font-size: 1rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--accent-color);
}

/* ============================================
   4. HEADER & NAVIGATION
============================================ */
.main-header {
    background-color: var(--bg-black);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-img {
    height: 60px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Navigation */
.main-nav {
    display: flex;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    color: var(--text-white);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    display: block;
    transition: var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
    color: var(--secondary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    list-style: none;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    color: var(--text-dark);
    padding: var(--spacing-sm);
    display: block;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--secondary-color);
    padding-left: 1.5rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* ============================================
   5. BUTTONS
============================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-link {
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* ============================================
   6. HERO SECTION
============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004080 100%);
    color: white;
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/hero-pattern.svg') center/cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.hero-tagline {
    font-style: italic;
    opacity: 0.9;
}

/* ============================================
   7. SECTIONS
============================================ */
section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.8;
}

.section-header {
    margin-bottom: var(--spacing-lg);
}

.text-center {
    text-align: center;
    margin-top: var(--spacing-md);
}

/* ============================================
   8. MISSION & VISION
============================================ */
.mission-vision-section {
    background-color: var(--bg-light);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.mission-box,
.vision-box {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
}

.icon-wrapper i {
    font-size: 2rem;
    color: white;
}

.mission-box h2,
.vision-box h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   9. SDG SECTION
============================================ */
.sdg-section {
    background-color: var(--primary-color);
}

.section-intro {
    max-width: 900px;
    margin: 0 auto var(--spacing-lg);
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
}

.sdg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.sdg-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.sdg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sdg-badge {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
}

.sdg-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.sdg-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* ============================================
   10. ABOUT PREVIEW
============================================ */
.about-preview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: var(--spacing-xl) 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-sm);
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

/* ============================================
   11. COUNTRY PROFILES SLIDER
============================================ */
.country-profiles-section {
    background-color: var(--bg-white);
}

.country-slider-wrapper {
    position: relative;
    margin: var(--spacing-lg) 0;
}

.country-slider {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: var(--spacing-sm) 0;
    scrollbar-width: thin;
}

.country-slider::-webkit-scrollbar {
    height: 8px;
}

.country-slider::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.country-slider::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.country-card {
    min-width: 280px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--spacing-md);
    text-align: center;
    transition: var(--transition);
}

.country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.country-flag {
    width: 80px;
    height: 60px;
    margin: 0 auto var(--spacing-sm);
    overflow: hidden;
    border-radius: 4px;
}

.country-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.country-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.country-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--secondary-color);
    color: white;
}

.slider-prev {
    left: -20px;
}

.slider-next {
    right: -20px;
}

/* ============================================
   12. RESEARCH GRID
============================================ */
.research-section {
    background-color: var(--bg-light);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.research-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.research-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.research-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.research-type {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.research-content {
    padding: var(--spacing-md);
}

.research-meta {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    color: var(--text-light);
    font-size: 0.875rem;
}

.research-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1.25rem;
}

.research-card p {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   13. PROJECTS GRID
============================================ */
.projects-section {
    background-color: var(--bg-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-status {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.status-ongoing {
    background-color: var(--success-color);
}

.status-completed {
    background-color: var(--secondary-color);
}

.status-planned {
    background-color: var(--warning-color);
}

.project-content {
    padding: var(--spacing-md);
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1.25rem;
}

.project-card p {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   14. CTA SECTION
============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004080 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-sm);
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   15. FOOTER
============================================ */
.main-footer {
    background-color: var(--primary-color);
    color: white;
}

.footer-content {
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-column h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.footer-column h4 {
    font-size: 1rem;
    margin: var(--spacing-sm) 0 var(--spacing-xs);
    color: white;
}

.footer-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    opacity: 0.9;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer-countries {
    columns: 2;
}

.view-all {
    font-weight: 600;
    color: var(--accent-color) !important;
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xs);
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    margin-top: var(--spacing-xs);
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 0.9375rem;
}

.newsletter-form button {
    padding: 0.75rem 1rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: #ff8533;
}

/* SDG Icons in Footer */
.sdg-section {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: var(--spacing-md);
}

.sdg-section h3 {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.sdg-icons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.sdg-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.125rem;
    transition: var(--transition);
    cursor: pointer;
}

.sdg-icon:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

/* Footer Bottom */
.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: var(--spacing-sm) 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-legal {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-legal a {
    color: rgba(255,255,255,0.8);
}

.footer-legal span {
    color: rgba(255,255,255,0.5);
}

/* ============================================
   16. BACK TO TOP BUTTON
============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.back-to-top.visible {
    display: flex;
}

.search-input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
}

.search-btn {
    background: var(--secondary-color);
  color: white;
  border: none;
  padding: 0.4rem 2rem;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.3s;
}

.search-btn:hover {
    background: #e67e22;
}

.projects-hero {
    background: linear-gradient(rgba(0, 64, 128, 0.9), rgba(0, 64, 128, 0.85)),
        url('<?php echo SITE_URL; ?>/assets/images/projects-hero.jpg') center/cover;
    color: white;
    padding: 5rem 0;
    text-align: center;
}

/* In your responsive.css file add: */

/* Base mobile styles */
@media (max-width: 991px) {
    /* Hide desktop elements */
    .top-bar-right,
    .top-bar-left .top-bar-item:not(:first-child) {
        display: none;
    }
    
    .top-bar {
        padding: 8px 0;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo-text {
        display: none;
    }
    
    .main-header {
        padding: 10px 0;
    }
}

/* Tablet styles */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .main-nav {
        width: 70%;
    }
}

/* Mobile styles */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .main-nav {
        width: 85%;
    }
}

/* Very small screens */
@media (max-width: 575px) {
    .container {
        width: 100%;
        padding: 0 10px;
    }
    
    .main-nav {
        width: 100%;
    }
    
    .mobile-menu-toggle {
        margin-left: 10px;
    }
}