/* Custom styles for AGRA website - floating translucent header */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #1e1e1e;
    line-height: 1.6;
}
/* Download Button Styling */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #07743F;
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(7, 116, 63, 0.3);
    margin-top: 1rem;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #07743F;
    flex-shrink: 0;
}

.btn-icon svg { width: 18px; height: 18px; }

.btn-download:hover {
    background: #055a31;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(7, 116, 63, 0.4);
}


/* ---------- FLOATING TRANSLUCENT NAVBAR WITH BORDER RADIUS ---------- */
.navbar {
    background-color: #FFFFFF61 !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.8rem 1.5rem;
    position: fixed;
    width: calc(100% - 3rem);
    top: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    border-radius: 50px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
}

.navbar .container-fluid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.navbar-brand {
    padding: 0;
    margin-right: 3rem;
}

.logo {
    height: 45px;
    width: auto;
}

/* If logo has colors, remove the filter above and use this instead:
.logo {
    height: 45px;
    width: auto;
}
*/

.navbar-nav {
    margin-left: auto;
    gap: 2.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0 !important;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: white !important;
    border-bottom-color: #e9b85b;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- HERO SECTION (100vh) ---------- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    margin-top: 0;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.hero-title {
    font-size: 3em;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0em;
    color: white;
    margin-bottom: 1.5rem;
    /* text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); */
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: white;
    max-width: 50rem;
    margin-bottom: 2.5rem;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* "Our Presence" tag */
.presence-tag {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.icon-placeholder {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    width: 28px;
    height: 28px;
    display: inline-block;
}

.presence-tag .line {
    height: 2px;
    width: 50px;
    background-color: #e9b85b;
    margin-left: 0.5rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
    .navbar {
        width: calc(100% - 2rem);
        top: 1rem;
        left: 1rem;
        border-radius: 30px !important;
    }
    
    .navbar-nav {
        gap: 1rem;
        margin-top: 1rem;
        padding: 0.5rem 0;
    }
    
    .nav-link {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.6rem 1rem;
    }
    
    .logo {
        height: 35px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-subtitle br {
        display: none; /* Remove line break on mobile */
    }
}

@media (max-width: 576px) {
    .navbar {
        width: calc(100% - 1rem);
        top: 0.5rem;
        left: 0.5rem;
        border-radius: 25px !important;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .presence-tag {
        font-size: 0.8rem;
        gap: 0.5rem;
    }
    
    .icon-placeholder {
        width: 24px;
        height: 24px;
    }
    
    .presence-tag .line {
        width: 30px;
    }
}

/* Navbar scroll effect - becomes slightly more opaque */
.navbar.scrolled {
    /* background-color: #07743F !important; */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ---------- FLAG CIRCLES - BOTTOM RIGHT ---------- */
.our-presence {
    position: absolute;
    bottom: 40px;
    right: 40px;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.flag-circles {
    display: flex;
    gap: 12px;
}

.flag-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flag-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Hero section position relative for absolute positioning */
/* .hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    margin-top: 0;
    position: relative;
} */

/* Responsive adjustments for flags */
@media (max-width: 768px) {
    .flag-circles {
        bottom: 20px;
        right: 20px;
        gap: 8px;
    }
    
    .flag-circle {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .flag-circles {
        bottom: 15px;
        right: 15px;
        gap: 6px;
    }
    
    .flag-circle {
        width: 28px;
        height: 28px;
        border-width: 1.5px;
    }
}

/* For very small screens, wrap the flags */
@media (max-width: 400px) {
    .flag-circles {
        flex-wrap: wrap;
        max-width: 150px;
        justify-content: flex-end;
    }
}

.footer {
  background-color: #07743F;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

.footer-text {
  /* font-size: 13.6px; */
  font-weight: 400;
  line-height: 100%;
}

/* ---------- COUNTRY DRAWER - SLIDE FROM RIGHT ---------- */
.country-drawer {
    position: fixed;
    top: 0;
    right: -600px;
    width: 550px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    overflow-y: auto;
    padding: 2rem;
}

.country-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.drawer-title {
    font-size: 2rem;
    font-weight: 600;
    color: #07743F;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    text-transform: capitalize;
}

.drawer-flag {
    display: block;
    margin: 1rem auto 1.5rem auto;
    width: 240px;
    height: auto;
}

.drawer-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.drawer-close img {
    width: 24px;
    height: 24px;
    transition: opacity 0.2s ease;
}

.drawer-close:hover img {
    opacity: 0.7;
}

.drawer-description {
    font-size: 1.2rem;
    font-weight: 400;
    color: #1e1e1e;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
}

.drawer-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: black;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.drawer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.drawer-list li {
    font-size: 1rem;
    font-weight: 400;
    color: #4a4a4a;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
}

.drawer-list li::before {
    content: "";
    background-image: url('images/right-arrow.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    position: absolute;
    left: 0;
    top: -0.2rem;
}

/* Drawer overlay */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Flag circles clickable */
.flag-circle {
    cursor: pointer;
}

/* Responsive adjustments for right drawer */
@media (max-width: 768px) {
    .country-drawer {
        width: 100%;
        right: -100%;
        padding: 1.5rem;
    }
    
    .drawer-title {
        font-size: 1.8rem;
    }
    
    .drawer-description {
        font-size: 1.1rem;
    }
    
    .drawer-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .country-drawer {
        padding: 1rem;
    }
    
    .drawer-title {
        font-size: 1.5rem;
    }
    
    .drawer-close {
        font-size: 2rem;
    }
    
    .drawer-description {
        font-size: 1rem;
    }
    
    .drawer-subtitle {
        font-size: 1.1rem;
    }
    
    .drawer-list li {
        font-size: 0.95rem;
    }
}

/* Add smooth scrolling to drawer */
.country-drawer {
    scrollbar-width: thin;
    scrollbar-color: #07743F #F9F6F0;
}

.country-drawer::-webkit-scrollbar {
    width: 6px;
}

.country-drawer::-webkit-scrollbar-track {
    background: #F9F6F0;
}

.country-drawer::-webkit-scrollbar-thumb {
    background-color: #07743F;
    border-radius: 20px;
}


/* ---------- ABOUT SECTION - ACCORDION WITH DYNAMIC IMAGE ---------- */
.about-section {
    background-image: url('images/about/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    margin-top: 0; 
    position: relative;
    width: 100%;
}

.about-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

/* Left column - Accordion Styles */
.about-left {
    width: 100%;
}

.accordion {
    --bs-accordion-border-color: rgba(0, 0, 0, 0.1);
    --bs-accordion-border-radius: 12px;
    --bs-accordion-inner-border-radius: 12px;
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-active-bg: transparent;
    --bs-accordion-active-color: #07743F;
    --bs-accordion-btn-focus-border-color: transparent;
}

.accordion-item {
    background-color: transparent;
    border: none;
    margin-bottom: 1rem;
    border-radius: 12px !important;
    overflow: hidden;
}

.accordion-header {
    border-radius: 12px;
    overflow: hidden;
}

.accordion-button {
    background-color: transparent;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 28px;
    padding: 1.25rem 1.5rem;
    border-radius: 12px !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: transparent;
    color: white;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    font-size: 32px;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    background-size: 1.2rem;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-body {
    background-color: transparent;
    padding: 1.5rem;
    border-top: none;
}

.accordion-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: white;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Right column - Image Styles */
.about-right {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 16px;
    overflow: hidden;
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.5s ease;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 16px;
}

.about-image.active {
    opacity: 1;
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-right {
        order: -1; /* Image on top for mobile */
    }
    
    .about-image-container {
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .accordion-button {
        font-size: 1.1rem;
        padding: 1rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px 0;
    }
    
    .about-container {
        padding: 0 1.5rem;
    }
    
    .accordion-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .about-section {
        padding: 40px 0;
    }
    
    .about-container {
        padding: 0 1rem;
    }
    
    .accordion-button {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
    
    .accordion-text {
        font-size: 0.9rem;
    }
}


/* ---------- COUNTRY HIGHLIGHTS SECTION ---------- */
.highlights-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/highlight/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    position: relative;
    width: 100%;
}

.highlights-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.highlights-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.highlights-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    line-height: 1.5;
}


/* Map Container - relative so hotspots anchor to it */
.map-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    display: block; /* not flex - keeps the SVG flush */
}

/* SVG wrapper fills the container */
.africa-svg-wrapper {
    width: 100%;
    line-height: 0; /* removes inline gap below svg */
}

.africa-svg-wrapper svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Hotspots - use inline style for left/top set in HTML */
.map-hotspot {
    position: absolute;
    cursor: pointer;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%);
}

.hotspot-dot {
    width: 14px;
    height: 14px;
    background-color: #72BF44;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(113, 190, 67, 0.6);
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
    display: block;
}

.map-hotspot:hover .hotspot-dot {
    transform: scale(1.4);
    background-color: #07743F;
}

.hotspot-label {
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    margin-top: 4px;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.65);
    padding: 2px 8px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.map-hotspot:hover .hotspot-label {
    opacity: 1;
}

/* Pulse Animation */
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(114, 191, 68, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(114, 191, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(114, 191, 68, 0); }
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .hotspot-dot {
        width: 10px;
        height: 10px;
        border-width: 1.5px;
    }
    .hotspot-label {
        font-size: 0.65rem;
        padding: 1px 5px;
    }
}

@media (max-width: 480px) {
    .hotspot-label { display: none; }
    .hotspot-dot   { width: 12px; height: 12px; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .highlights-title {
        font-size: 2.5rem;
    }
    
    .highlights-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .highlights-subtitle br {
        display: none;
    }
    
    .hotspot-dot {
        width: 12px;
        height: 12px;
    }
    
    .hotspot-label {
        font-size: 0.7rem;
        padding: 0.15rem 0.3rem;
    }
}

@media (max-width: 576px) {
    .highlights-title {
        font-size: 2rem;
    }
    
    .highlights-section {
        padding: 60px 0;
    }
    
    .hotspot-dot {
        width: 10px;
        height: 10px;
        border-width: 1.5px;
    }
    
    .hotspot-label {
        font-size: 0.6rem;
        padding: 0.1rem 0.25rem;
    }
}

/* Optional: Make hotspots more touch-friendly on mobile */
@media (max-width: 480px) {
    .hotspot-dot {
        width: 8px;
        height: 8px;
    }
    
    .hotspot-label {
        display: none; /* Hide labels on very small screens */
    }
}
    