/* =========================================
   1. HERO SECTION
   ========================================= */
.explore-hero {
    background-image: url('../images/resources/Zuma-rock.png');
    background-size: cover;
    background-position: center;
    height: 90vh;
    position: relative;
    color: white;
    font-family: 'Montserrat', sans-serif;
}

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

.explore-hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1300px;
    gap: 40px;
}

.explore-hero-content {
    max-width: 800px;
}

.hero-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-breadcrumb:hover {
    text-decoration: underline;
    color: #ddd;
}

.explore-hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 700px;
}

.explore-hero-map {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px;
}

.explore-hero-map img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* =========================================
   2. NIGERIA INFO SECTION (Cards Grid)
   ========================================= */
.nigeria-info-section {
    padding: 60px 5%;
    max-width: 1500px;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
}

.nigeria-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

/* Common Card Styles */
.info-card-small,
.info-card-large {
    background-color: #F2F2F2;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease;
}

.president-card {
    background-color: #F2F2F2;
    border-radius: 8px;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.info-card-small:hover,
.info-card-large:hover,
.president-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    color: #025836;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.info-card-small h3,
.info-card-large h3,
.president-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
}

.info-card-small p,
.president-header p {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 0;
}

.president-header {
    padding: 20px;
}

/* Left Column Layout */
.grid-column-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.grid-row-top {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 20px;
}

.grid-row-middle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-card-large {
    flex-grow: 1;
}

.card-content {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
    margin-top: 10px;
}

.card-content strong {
    color: #000;
    font-weight: 700;
}

/* Center Column (Image) */
.grid-column-center {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    min-height: 100%;
}

.center-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.center-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: #fff;
}

/* Right Column Layout */
.grid-column-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.president-card {
    flex-grow: 1;
    position: relative;
    padding-bottom: 0;
    overflow: hidden;
    justify-content: space-between;
}

.president-image-container {
    margin-top: 20px;
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.president-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.flag-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    z-index: 1;
}

.flag-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

/* =========================================
   3. EXPLORE NIGERIA SECTION (States & Map)
   ========================================= */
.explore-nigeria-section {
    background-image: url('../images/resources/Explore-Nigeria-Section-background.png');
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.explore-nigeria-container {
    max-width: 1300px;
    /* Match other sections */
    width: 100%;
    margin: 0 auto;
}

.explore-nigeria-header {
    text-align: center;
    margin-bottom: 60px;
}

.explore-nigeria-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #025836;
    margin-bottom: 15px;
}

.explore-nigeria-header p {
    color: #000;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.explore-nigeria-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.explore-nigeria-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.explore-nigeria-states h2 {
    font-size: 2rem;
    color: #025836;
    font-weight: 700;
    margin-bottom: 30px;
}

.explore-nigeria-states-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.explore-nigeria-states-grid a {
    font-size: 1rem;
    color: #1a1a1a;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.explore-nigeria-states-grid a:hover {
    color: #025836;
    font-weight: 700;
}

.explore-nigeria-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.explore-nigeria-map {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
}

.explore-nigeria-map img {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
}

.explore-nigeria-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    width: 100%;
    margin-top: 50px;
}

.explore-nigeria-btn {
    padding: 16px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

.explore-nigeria-btn-primary {
    background-color: #025836;
    color: white;
}

.explore-nigeria-btn-primary:hover {
    background-color: #024630;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(2, 88, 54, 0.4);
}

.explore-nigeria-btn-secondary {
    background-color: transparent;
    color: #025836;
    border: 2.5px solid #025836;
}

.explore-nigeria-btn-secondary:hover {
    background-color: #025836;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(2, 88, 54, 0.3);
}

.explore-nigeria-btn::after {
    content: '→';
    font-size: 1.2rem;
}

/* Infinite Sliding Animation */

.grid-column-center {
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

.center-image-container {
    width: 100%;
    height: 100%;
}

.sliding-images-wrapper {
    display: flex;
    width: 400%;
    /* 4 images * 100% container width */
    height: 100%;
    animation: slideImages 12s ease-in-out infinite;
}

.sliding-images-wrapper .center-img {
    width: 25%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

@keyframes slideImages {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(0);
    }

    /* Pause at Image 1 */
    33% {
        transform: translateX(-25%);
    }

    /* Slide to Image 2 */
    58% {
        transform: translateX(-25%);
    }

    /* Pause at Image 2 */
    66% {
        transform: translateX(-50%);
    }

    /* Slide to Image 3 */
    91% {
        transform: translateX(-50%);
    }

    /* Pause at Image 3 */
    100% {
        transform: translateX(-75%);
    }

    /* Slide to Image 4 (Loop back) */
}

/* =========================================
   4. MEDIA QUERIES
   ========================================= */

/* Large Tablets / Small Laptops */
@media (max-width: 1200px) {
    .explore-nigeria-content {
        gap: 50px;
    }

    .explore-nigeria-header h1 {
        font-size: 3rem;
    }

    .explore-nigeria-states-grid {
        gap: 20px 30px;
    }

    .explore-nigeria-map {
        min-height: 350px;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .nigeria-grid-layout {
        grid-template-columns: 1fr 1fr;
    }

    .grid-column-center {
        grid-column: span 2;
        height: 400px;
        order: -1;
    }

    .explore-nigeria-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .explore-nigeria-header {
        margin-bottom: 30px;
    }

    .explore-nigeria-header h1 {
        font-size: 2.5rem;
    }

    .explore-nigeria-header p {
        font-size: 1.1rem;
    }

    .explore-nigeria-states h2 {
        font-size: 1.6rem;
    }

    .explore-nigeria-states-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px 25px;
    }

    .explore-nigeria-buttons {
        gap: 15px;
    }

    .explore-nigeria-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {

    /* Hero Section */
    .explore-hero-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .explore-hero-overlay {
        padding-top: 40px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .explore-hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .explore-hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        display: block;
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .explore-hero-map {
        width: 80%;
        margin-top: 20px;
    }

    /* Info Grid Section */
    .nigeria-grid-layout {
        grid-template-columns: 1fr;
    }

    .grid-column-center {
        grid-column: span 1;
        height: 300px;
    }

    .grid-row-top,
    .grid-row-middle {
        grid-template-columns: 1fr;
    }

    .info-card-small,
    .info-card-large,
    .president-card {
        align-items: center;
        text-align: center;
    }

    .info-card-small h3,
    .info-card-large h3,
    .president-header h3 {
        text-align: center;
    }

    .card-content {
        text-align: center;
    }

    /* Explore Nigeria Section */
    .explore-nigeria-section {
        padding: 40px 15px;
        min-height: auto;
    }

    .explore-nigeria-header {
        margin-bottom: 25px;
    }

    .explore-nigeria-header h1 {
        font-size: 2rem;
    }

    .explore-nigeria-header p {
        font-size: 0.95rem;
    }

    .explore-nigeria-states-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 20px;
        text-align: center;
        /* Center states list items */
        justify-items: center;
        /* Center grid items */
    }

    .explore-nigeria-states-grid a {
        font-size: 0.9rem;
    }

    .explore-nigeria-states h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
        text-align: center;
    }

    .explore-nigeria-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .explore-nigeria-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .explore-nigeria-map {
        min-height: 300px;
    }

    .explore-nigeria-map img {
        max-width: 400px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .explore-nigeria-section {
        padding: 30px 15px;
    }

    .explore-nigeria-header h1 {
        font-size: 1.8rem;
    }

    .explore-nigeria-header p {
        font-size: 0.9rem;
    }

    .explore-nigeria-states-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px 15px;
    }

    .explore-nigeria-states h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .explore-nigeria-map {
        min-height: 250px;
    }

    .explore-nigeria-map img {
        max-width: 350px;
    }

    .explore-nigeria-right {
        gap: 30px;
    }
}

/* =========================================
   5. PAGINATION STYLES
   ========================================= */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 10px;
}

.pagination-btn {
    padding: 10px 15px;
    border: 2px solid #025836;
    background: white;
    color: #025836;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: #025836;
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn:disabled:hover {
    background: white;
    color: #025836;
}

@media (max-width: 768px) {
    .pagination-container {
        flex-wrap: wrap;
        gap: 5px;
    }

    .pagination-btn {
        min-width: 35px;
        padding: 8px 12px;
        font-size: 14px;
    }
}
