/* --- Header Logo Styles --- */
.pkp_site_name img {
    max-height: 120px !important; 
    width: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.3));
}

/* Remove focus outlines on logo */
.pkp_site_name a:focus, .pkp_site_name a:active,
.pkp_site_name a:visited, .pkp_site_name a:target {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Updated Header Wrapper Section */
.has_site_logo .pkp_head_wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding-right: 6.714rem;
}

/* Desktop alignment fix added here */
@media (min-width: 992px) {
    .has_site_logo .pkp_head_wrapper {
        max-width: 1200px;
        padding-right: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- Highlights Section --- */
.highlights {
    width: 100%;           /* Matches parent width */
    margin: 0;             /* No side margins */
    padding: 40px 0;
    box-sizing: border-box;
    background: rgba(230,240,238,0.95);
}

.highlights > .swiper {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
}

.swiper-slide {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
}

.swiper-slide-image {
    flex: 1 1 0%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px;
}

.swiper-slide-content {
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 32px;
    text-align: justify;
}

@media (max-width: 900px) {
    .highlights > .swiper {
        flex-direction: column;
        max-width: 100%;
        padding: 0 4px;
    }
    .swiper-slide {
        flex-direction: column;
        align-items: stretch;
    }
    .swiper-slide-image,
    .swiper-slide-content {
        max-width: 100%;
        padding: 16px 8px;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
}

/* Arrow color: black */
.highlights .swiper-button-next,
.highlights .swiper-button-prev {
    color: #222 !important;
    fill: #222 !important;
    opacity: 0.9;
}

.highlights .swiper-pagination-bullet {
    width: 18px;
    height: 18px;
    margin: 0 8px !important;
    background: #9ca3af;    /* Default dot color (gray) */
    opacity: 0.7;
}

.highlights .swiper-pagination-bullet-active {
    background: #fff;       /* Active dot color */
    opacity: 1;
    box-shadow: 0 0 4px #3332;
}

/* OPTIONAL: if you want green or black for the active dot */
.highlights .swiper-pagination-bullet-active {
    background: #16a34a;   /* green */
    /* or background: #222; for black */
    box-shadow: 0 0 4px #16a34a66;
}

.pkp_site_name a:focus,
.pkp_site_name a:active,
.pkp_site_name a:visited,
.pkp_site_name a:target {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Also for the image itself, in case the browser styles the image */
.pkp_site_name a img:focus,
.pkp_site_name a img:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* This is for additional content image */
.indexinglist {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    list-style: none;
    padding-left: 0;
    align-items: center;
    margin-bottom: 2em;
}

.indexinglist li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    flex: 1 1 100%;
}

.indexinglist img {
    display: inline-block;
    max-height: 70px;
    max-width: 180px;
    height: auto;
    margin: 0 4px 4px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    background: #fff;
}

@media (max-width: 600px) {
    .indexinglist {
        gap: 12px;
    }
    .indexinglist li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .indexinglist img {
        max-width: 100%;
        max-height: 48px;
        margin-bottom: 8px;
    }
}

/* Archives Desktop Styles */
.issues_archive {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.obj_issue_summary {
  flex: 0 1 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

.obj_issue_summary .cover {
  display: block;
  width: auto;
}

.obj_issue_summary .cover img {
  max-height: 250px;
  max-width: 100%;
}

.obj_issue_summary h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.43rem;
  font-weight: 400;
}

.obj_issue_summary .series {
  margin-bottom: .357rem;
  color: rgba(0, 0, 0, 0.54);
}

.obj_issue_summary .title {
  font-family: "Noto Serif", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
  font-weight: 700;
  text-decoration: none;
}

/* Mobile Responsive Styles */
@media (max-width: 700px) {
  .issues_archive {
    gap: 1rem;
  }
  .obj_issue_summary {
    flex: 1 1 98vw;
    max-width: 99vw;
    padding: 0.6rem 0.1rem;
    margin-bottom: 1rem;
  }
  .obj_issue_summary .cover img {
    max-width: 98vw;
    max-height: 180px;
    border-radius: 6px;
  }
  .obj_issue_summary h2 {
    font-size: 1.05rem;
    line-height: 1.5rem;
  }
}

/* Custom Block - Stats */
.custom-stats-block {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 16px;
  padding: 2rem;
  margin: 1rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.custom-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.custom-stats-grid p {
  margin: 0;
  background: rgba(255, 255, 255, 0.9);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  border-left: 4px solid #3b82f6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.custom-stats-grid p:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
  border-left-color: #1d4ed8;
}

.custom-stats-grid p strong {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  display: block;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.custom-stats-grid p span {
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.custom-stats-grid p:nth-child(1) { border-left-color: #10b981; } 
.custom-stats-grid p:nth-child(1):hover { border-left-color: #059669; }
.custom-stats-grid p:nth-child(2) { border-left-color: #f59e0b; } 
.custom-stats-grid p:nth-child(2):hover { border-left-color: #d97706; }
.custom-stats-grid p:nth-child(3) { border-left-color: #8b5cf6; } 
.custom-stats-grid p:nth-child(3):hover { border-left-color: #7c3aed; }
.custom-stats-grid p:nth-child(4) { border-left-color: #06b6d4; } 
.custom-stats-grid p:nth-child(4):hover { border-left-color: #0891b2; }
.custom-stats-grid p:nth-child(5) { border-left-color: #ef4444; } 
.custom-stats-grid p:nth-child(5):hover { border-left-color: #dc2626; }
.custom-stats-grid p:nth-child(6) { border-left-color: #14b8a6; } 
.custom-stats-grid p:nth-child(6):hover { border-left-color: #0d9488; }

@media (max-width: 768px) {
  .custom-stats-block {
    padding: 1.5rem;
    margin: 0.75rem;
  }
  .custom-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .custom-stats-grid p {
    padding: 1rem;
  }
}

@media (prefers-color-scheme: dark) {
  .custom-stats-block {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #f8fafc;
  }
  .custom-stats-grid p {
    background: rgba(30, 41, 59, 0.8);
    color: #f8fafc;
  }
  .custom-stats-grid p strong {
    color: #f8fafc;
  }
}

/* Flag Counter Container */
.flag-counter-wrapper {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.6);
  text-align: center;
  transition: all 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.flag-counter-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.flag-counter-wrapper .counter-title {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.flag-counter-wrapper img {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  max-width: 100%;
  height: auto;
  border: none;
}

.flag-counter-wrapper a:hover img {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .flag-counter-wrapper {
    padding: 1.25rem;
    margin: 0.75rem;
  }
}

@media (prefers-color-scheme: dark) {
  .flag-counter-wrapper {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #f8fafc;
  }
  .flag-counter-wrapper .counter-title {
    color: #f8fafc;
  }
}

.dorsu-footer-clean {
    background-color: transparent; /* Tanggal ang black background */
    color: #333333;               /* Gi-dark ang text color para makita sa white background */
    padding: 20px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    border-top: none;             /* Tanggal ang blue border */
    width: 100%;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.left-info {
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    max-height: 80px;
    width: auto;
}

.right-info {
    text-align: right;
}

.footer-link {
    color: #004a99; /* Blue color for the email link */
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-section p {
    margin: 0;
    line-height: 1.5;
}

/* Mobile Layout */
@media (max-width: 850px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .left-info {
        flex-direction: column;
    }
    .right-info {
        text-align: center;
    }
}