/* ===== GENERAL PAGE STYLES ===== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Justify main content text */
main, section, p, li {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.6;
}

/* ===== SECONDARY NAVIGATION ===== */
.secondary-nav {
    background: #004d40;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    flex-wrap: wrap;
}

.secondary-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.secondary-nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.secondary-nav ul li a:hover {
    color: #ffcc00;
}

/* Search form styles */
.search-form {
    display: flex;
    align-items: center;
}

.search-form input {
    padding: 5px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.search-form button {
    padding: 5px 10px;
    border: none;
    background: #ffcc00;
    color: #004d40;
    font-weight: bold;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.search-form button:hover {
    background: #ffb300;
}

/* ===== MAIN HEADER ===== */
.site-header {
    background: #002b36;
    color: white;
    padding: 10px 20px;
}

.site-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Logo + Journal Name section */
.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 80px;
    height: auto;
    border-radius: 8px;
}

.journal-name {
    font-size: 1.2rem;
    font-weight: bold;
    max-width: 300px;
    line-height: 1.3;
}

/* ===== MAIN MENU ===== */
.main-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.main-menu li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.main-menu li a:hover {
    color: #ffcc00;
}

/* Mobile Styles */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
        font-size: 28px;
        background: none;
        border: none;
        color: #fff;
        cursor: pointer;
    }

    .main-menu {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease-in-out, opacity 0.3s ease;

        display: flex;
        flex-direction: column;
        width: 100%;
        background-color: #002b36;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 9999;
        padding: 0 20px;
    }

    .main-menu.active {
        max-height: 500px;
        opacity: 1;
        padding: 10px 20px;
    }

    .main-menu li {
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid #444;
        text-align: center;
    }

    .main-menu li a {
        color: #fff;
        font-size: 16px;
    }
}

/* ===== RESPONSIVE STYLES ===== */
/* ===== MOBILE NAV FIX ===== */
@media (max-width: 991px) {

  .menu-toggle {
    display: block;
    font-size: 28px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
  }

  .main-menu {
    display: none;
    flex-direction: column;
    background: #0b3a5b;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 15px 0;
  }

  .main-menu.active {
    display: flex;
  }

  .main-menu li {
    text-align: center;
    padding: 12px 0;
  }

  .main-menu li a {
    color: #fff;
    font-size: 16px;
  }
}

nav {
  position: relative;
}


.hero{
    position:relative;
    height:75vh;              /* desktop height */
    min-height:420px;
    max-height:700px;
    overflow:hidden;
}

/* background */
.hero-bg{
    position:absolute;
    inset:0;
    background:url("Journal-logo.jpg") center/cover no-repeat;
    filter:brightness(.45);
    z-index:1;
}

/* image frame */
.image-layer{
    position:absolute;
    inset:0;
    z-index:2;
    display:flex;
    justify-content:center;
    align-items:center;
}

/* image constrained to frame */
.zoom-slide{
    position:absolute;
    max-width:70%;
    max-height:70%;
    width:auto;
    height:auto;
    object-fit:contain;
    opacity:0;
    transform:scale(1);
    transition:opacity 1.5s, transform 6s;
}

.zoom-slide.active{
    opacity:1;
    transform:scale(1.08);
}

/* text */
.overlay{
    position:relative;
    z-index:3;
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:#fff;
    padding:20px;
}

.overlay h1{
    font-size:2.1rem;
    margin-bottom:.6rem;
    max-width:850px;
}

.overlay p{
    font-size:1.05rem;
    max-width:650px;
}

/* MOBILE */
@media(max-width:768px){
    .hero{
        height:60vh;
        min-height:360px;
    }

    .zoom-slide{
        max-width:85%;
        max-height:55%;
    }

    .overlay h1{
        font-size:1.6rem;
    }

    .overlay p{
        font-size:.95rem;
    }
}


/* Sections */
section {
    padding: 40px 20px;
    background: white;
    margin: 20px auto;
    max-width: 1100px;
    border-radius: 8px;
    animation: fadeInUp 1s ease-in-out;
}

/* Force equal height cards in same row */
.h-100 {
    display: flex;
    flex-direction: column;
  }
  
  /* Ensure slideshow images fit */
  .slideshow-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 420px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 1;
     transform: scale(0.98);
    transition: opacity 1s ease, transform 1s ease;
    padding: 15px;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}



.slide img {
    max-width: 100%;
    max-height: 75%;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 6px;
    background-color: #f8f9fa;
}



.caption {
    margin-top: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    min-height: 48px;   /* keeps all captions aligned */
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .slideshow-container {
        height: 300px;
    }

    .caption {
        font-size: 0.85rem;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .slideshow-container {
        height: 260px;
    }
}

/* Footer */
footer {
    background: #002b36;
    color: white;
    padding: 20px;
    text-align: center;
}


.aim, .mission {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    animation: bgZoom 10s infinite alternate ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aim-mission {
    display: flex;
    flex-wrap: wrap;
    min-height: 300px;
}

/* Shared styles */
.aim, .mission {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bgFade 15s infinite;
}

/* Overlay for text */
.overlay {
    background: rgba(0,0,0,0.5);
    padding: 30px;
    color: white;
    text-align: center;
    max-width: 80%;
    border-radius: 8px;
    animation: textSlide 3s ease infinite;
}

/* AIM Background Slideshow */
.aim {
    animation-name: aimBg;
}

/* MISSION Background Slideshow */
.mission {
    animation-name: missionBg;
}

/* Fade transition for backgrounds */
@keyframes bgFade {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.6; }
}

/* Text animation */
@keyframes textSlide {
    0% { opacity: 0; transform: translateY(20px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-20px); }
}

/* Responsive layout */
@media (max-width: 768px) {
    .aim-mission {
        flex-direction: column;
    }
    .overlay {
        max-width: 90%;
    }
}
.about-links {
    text-align: center;
    padding: 40px 20px;
    background: #f8f8f8;
}

.about-links h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.about-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.about-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.about-card h3 {
    padding: 15px;
    font-size: 18px;
}

.about-card:hover {
    transform: translateY(-5px);
}


/* cuurent editions */
.list-group-item:hover {
    background-color: #f8f9fa;
  }
  .fade-in {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
  }
  
  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }
  


  /* Parallax section with fade */

  
  
  
  .info-section {
    position: relative;
    background-color:#2f3e46;
    color: #ffffff;
    padding: 60px 0;
}

.info-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.15),
        rgba(0,0,0,0.35)
    );
}

.info-section .container {
    position: relative;
    z-index: 2;
}

.info-section h3 {
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffcc00;

}

.info-section p,
.info-section li {
    color: #e8edf2;
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-section a {
    color: var(--ajodeps-accent);
    text-decoration: none;
}

.info-section a:hover {
    text-decoration: underline;
}

.info-section li {
    color: white; /* list items white */
}




/* ===== AIM & MISSION ===== */
.aim-mission { padding: 60px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.aim, .mission { flex: 1 1 250px; padding: 20px; border-radius: 8px; color: white; }
.aim { background: #0d6efd; }
.mission { background: #198754; }

/* ===== EDITORIAL COMMITTEE ===== */
.slideshow-container { position: relative; overflow: hidden; }
.slide { display: none; text-align: center; }
.slide.active { display: block; }
.slide img { width: 100%; border-radius: 5px; }
.caption { margin-top: 8px; font-weight: bold; font-size: 0.95rem; }

/* Editorial Committee container */
.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 420px;   /* desktop height */
    margin: 0 auto;
    overflow: hidden;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    max-height: 75%;
    width: auto;
    border-radius: 5px;
}

.caption {
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 0.95rem;
}

.slideshow-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.slideshow-container .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-container .slide.active {
    opacity: 1;
    z-index: 2;
}

.guidelines-section {
    background: #f8f9fa;
    padding: 90px 0;
}

.guidelines-header h2 {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.guidelines-header .subtitle {
    max-width: 720px;
    margin: 10px auto 40px;
    color: #555;
}

.guidelines-accordion .accordion-item {
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.guidelines-accordion .accordion-button {
    font-weight: 600;
    background: #ffffff;
}

.guidelines-accordion .accordion-body {
    font-size: 0.95rem;
    line-height: 1.7;
}

.guideline-list li {
    margin-bottom: 8px;
}

.accordion-item.danger {
    border-left: 5px solid #dc3545;
}

.accordion-item.success {
    border-left: 5px solid #198754;
}

.guidelines-footer {
    margin-top: 50px;
    font-size: 0.9rem;
    color: #ffffff;
}


/* ===============================
   AJODEPS ARTICLE PAGE STYLING
   =============================== */

.ajodeps-article {
  max-width: 1000px;
  margin: 40px auto;
  padding: 30px;
  background-color: #ffffff;
  border-left: 5px solid #0d6efd; /* matches Bootstrap primary */
}

.ajodeps-article h1 {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.article-meta {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 25px;
}

.article-meta span {
  display: block;
  margin-bottom: 4px;
}

.article-section-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 10px;
  color: #0d6efd;
}

.article-abstract {
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
}

.article-download {
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.article-download a {
  text-decoration: none;
  padding: 10px 18px;
  background-color: #0d6efd;
  color: #fff;
  border-radius: 4px;
  font-weight: 500;
}

.article-download a:hover {
  background-color: #084298;
}

