* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Basic Reset (Must contain the overflow fix) --- */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
  overflow-x: hidden;
  /* FIX: Prevents horizontal scrolling */
}



a {
  color: inherit;
  text-decoration: none;
}

/* slideshow buttons */
/* Custom styles for the button's appearance and interaction */
.custom-button {
  padding: 0.75rem 1.7rem;
  font-size: 1.125rem;
  font-weight: 600;

  /* Custom appearance */
  background-color: #3b82f6;
  /* Blue-600 */
  color: white;
  border: none;

  /* Rounded Corners */
  border-radius: 9999px;
  /* Fully rounded/pill shape */

  /* Shadow and transition */
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  /* Soft shadow based on blue */
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  user-select: none;
}

/* Active/Click effect */
.custom-button:active {
  background-color: #1d4ed8;
  /* Blue-800 on active */
  box-shadow: 0 2px 10px rgba(29, 78, 216, 0.4);
  transform: translateY(0);
}

/* Site Portals */
/* Container for the entire section */
.portal-section {
  padding: 60px 20px;
  color: white;
  text-align: center;
  /* Added !important for guaranteed background visibility */
  background: linear-gradient(135deg, #2a2a72 0%, #009ffd 100%) !important;
}

/* Constrain width of content for better readability */
.portal-container {
  max-width: 1200px;
  /* Increased max width to fit 5 items */
  margin: 0 auto;
}

/* Heading style */
.portal-section h2 {
  font-family: sans-serif;
  font-size: 2.5em;
  margin-bottom: 40px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Flexbox for the links */
.portal-links {
  display: flex;
  justify-content: center;
  /* Center the entire group */
  gap: 20px;
  /* Space between links */
  flex-wrap: wrap;
  /* Allows links to wrap to the next line */
}

/* Style for individual portal links (buttons) */
.portal-link {
  /* The math for 5 per line: 
               100% / 5 items = 20% width. 
               We subtract a small amount to account for the 'gap' (20px) 
            */
  flex-basis: calc(20% - 16px);
  min-width: 150px;
  /* Ensures they don't get too small */

  display: block;
  padding: 15px 10px;
  /* Reduced horizontal padding */
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  font-family: sans-serif;
  color: #2a2a72;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* === HOVER EFFECT (Works only outside of inline styles) === */
.portal-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  background-color: #f0f0f0;
}

/* === MEDIA QUERY FOR RESPONSIVENESS (Adjusted for mobile) === */
@media (max-width: 900px) {

  /* Switch to a 3-per-line layout on medium screens */
  .portal-link {
    flex-basis: calc(33.33% - 14px);
  }
}

@media (max-width: 600px) {

  /* Stack links vertically on small screens */
  .portal-links {
    flex-direction: column;
  }

  .portal-link {
    width: 100%;
  }
}

/* ===== 1. Outlined Text ===== */
.outlined-text {
  color: rgb(0, 6, 95);
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: rgb(0, 162, 255);
  font-size: 20px;
  font-family: sans-serif;
}

/* ===== 2. Top Header ===== */
.top-header {
  background-color: #ffdb8f;
  padding: 10px 0;
  color: rgb(0, 10, 148);
  font-family: Arial, sans-serif;
  font-size: 14px;
  /* Changed from 'small' for consistency */
}

/* ===== 3. Header Content ===== */
.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== 4. Right-side Buttons ===== */
.right-buttons-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Base styles for all buttons */
.right-side-button {
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  white-space: nowrap;
  border: none;
  background-color: #5cb85c;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover effect */
.right-side-button:hover {
  background-color: #4cae4c;
  transform: scale(1.05);
}

/* ===== 5. Responsive Mobile ===== */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  /* Stack social icons above text/buttons */
  .social-icons {
    order: 1;
  }

  /* Stack buttons vertically */
  .right-buttons-container {
    order: 3;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    align-items: stretch;
  }

  .right-side-button {
    width: 100%;
    text-align: center;
  }
}


/* Navbar */
.navbar {
  position: relative;
  /* Changed from static to relative for dropdown positioning */
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #000080;
  color: white;
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 16px;
}

.nav-links a {
  padding: 6px 10px;
  border-radius: 6px;
  color: white;
  opacity: 0.95;
  text-decoration: none;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Donate Now Button - Special Styling */
.donate-nav-button {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%) !important;
  color: white !important;
  font-weight: bold;
  padding: 8px 20px !important;
  border-radius: 25px !important;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
  transition: all 0.3s ease;
  opacity: 1 !important;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.donate-nav-button:hover {
  background: linear-gradient(135deg, #f7931e 0%, #ff6b35 100%) !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
  border-color: rgba(255, 255, 255, 0.6);
}

.donate-nav-button:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 2px 10px rgba(255, 107, 53, 0.4);
}

/* Responsive */
@media (max-width: 700px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

/*Notice-------------*/
/* Notice Bar */
.notice-bar {
  background: #ffa114;
  color: #ff0000;
  /* Text color */
  text-shadow: 0 0 15px rgb(255, 255, 255);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  padding: 10px 0;
  font-weight: 600;
  border-bottom: 1px solid #ddd;
}

.notice-content {
  display: inline-block;
  padding-left: 100%;
  animation: scrollNotice 18s linear infinite;
}

@keyframes scrollNotice {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

.notice-bar:hover .notice-content {
  animation-play-state: paused;
}

/* PRC title */
.PRC-Title h6 {
  font-size: 3em;
  font-weight: bold;
  font-family: "Times New Roman";
  text-align: left;
}

/* What We Do Section */
.what-we-do {
  background-color: #0077ff;
  border-color: aliceblue;
  border-top-color: #ddd;

  padding: 20px;

  border-top: 0px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.what-we-do h5 {
  color: #ffffff;
  font-size: 1.6em;
  font-family: 'Times New Roman', Times, serif;
  text-align: center;
}


.what-we-do p6 {
  color: #ffffff;
  font-size: 1.2em;
  font-family: 'Times New Roman', Times, serif;
  text-align: justify;
}



/* University of Philosophy Section */
.university-of-philosophy {
  background-color: #cfcfcf;
  border-color: rgb(255, 255, 255);
  border-top-color: #ffffff;

  padding: 20px;

  border-top: 30px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.university-of-philosophy h2 {
  color: #0300b3;
  font-size: 1.6em;
  font-family: 'Times New Roman', Times, serif;
  text-align: center;
}

.university-of-philosophy p7 {
  color: #000000;
  font-size: 1.2em;
  font-family: 'Times New Roman', Times, serif;
  text-align: justify;
}

/* our-affiliations Section */
.our-affiliations {
  background-color: #ffffff;
  padding: 20px;
  border-top: 30px solid #ffffff;
  text-align: center;
}

.our-affiliations h2 {
  color: #0300b3;
  font-size: 1.6em;
  font-family: 'Times New Roman', Times, serif;
  text-align: center;
}

.our-affiliations h3 {
  color: #00ac1d;
  font-size: 1.6em;
  font-family: 'Times New Roman', Times, serif;
  text-align: center;
}

.our-affiliations img {
  display: inline-block;
  margin: 10px 15px;
  vertical-align: middle;
}


/* our-prestigious Section */
.our-prestigious {
  background-color: #cfcfcf;
  padding: 20px;
  border-top: 30px solid #ffffff;
  text-align: center;
}

.our-prestigious h3 {
  color: #00ac1d;
  font-size: 1.6em;
  font-family: 'Times New Roman', Times, serif;
  text-align: center;
}

.our-prestigious h2 {
  color: #0300b3;
  font-size: 1.6em;
  font-family: 'Times New Roman', Times, serif;
  text-align: center;
}

.our-prestigious img {
  display: inline-block;
  margin: 10px 15px;
  vertical-align: middle;
}




/* === Restored Pure CSS Slideshow === */
.slideshow {
  position: relative;

  width: 100%;
  /* FIX: Changed from 99vw/100vw to 100% */

  /* FIX: Remove these centering lines as 100% width makes them unnecessary */
  left: 0;
  transform: none;

  /* Responsive Height - Baseline for large screens */
  height: 800px;

  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 0px 0px rgba(11, 118, 239, 0.12);
}

.slideshow .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;

  /* Animation settings (4 seconds per slide, 5 slides total = 20s cycle) */
  animation: slideAnimation 20s infinite;
}

/* Set specific delays for each slide to create the sequence */
.slideshow .slide:nth-child(1) {
  animation-delay: 0s;
}

.slideshow .slide:nth-child(2) {
  animation-delay: 4s;
}

.slideshow .slide:nth-child(3) {
  animation-delay: 8s;
}

.slideshow .slide:nth-child(4) {
  animation-delay: 12s;
}

.slideshow .slide:nth-child(5) {
  animation-delay: 16s;
}


.slideshow .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 0;
}

.slideshow .slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.slideshow .slide-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  padding: 10px 20px;
  border-radius: 5px;
  width: 90%;
  box-sizing: border-box;
}

.slideshow .slide-text h1 {
  font-size: 32px;
  font-weight: bold;
  margin: 0 0 10px 0;
}

.slideshow .slide-text p {
  font-size: 24px;
  font-weight: normal;
  margin: 0 0 20px 0;
  line-height: 1.4;
}

/* Button Wrapper for Responsiveness */
.button-wrapper {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* --- Keyframes for Animation (4s display, 1s fade-in/out) --- */
@keyframes slideAnimation {

  /* Step 0: Fade in (Starts at 0s) */
  0% {
    opacity: 0;
  }

  /* Step 1: Hold (Ends at 3s) */
  5% {
    opacity: 1;
  }

  /* Step 2: Start fade out (Starts at 4s - 1s = 3s) */
  20% {
    opacity: 1;
  }

  /* Step 3: Fully faded out (Starts at 4s) */
  25% {
    opacity: 0;
  }

  /* Step 4: Keep hidden for the rest of the cycle */
  100% {
    opacity: 0;
  }
}

/* --- Media Queries (Copied from the responsive block for completeness) --- */

/* Tablet View (e.g., screens up to 1024px) */
@media (max-width: 1024px) {
  .slideshow {
    height: 600px;
  }

  .slideshow .slide-text h1 {
    font-size: 28px;
  }

  .slideshow .slide-text p {
    font-size: 20px;
  }
}

/* Mobile View (e.g., screens up to 768px) */
@media (max-width: 768px) {
  .slideshow {
    height: 400px;
  }

  .slideshow .slide-text h1 {
    font-size: 24px;
  }

  .slideshow .slide-text p {
    font-size: 18px;
  }

  .button-wrapper {
    gap: 15px;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .custom-button {
    width: 80%;
    max-width: 300px;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }
}

/* Tiny Mobile View (e.g., screens up to 480px) */
@media (max-width: 480px) {
  .slideshow {
    height: 300px;
  }

  .slideshow .slide-text h1 {
    font-size: 20px;
  }

  .slideshow .slide-text p {
    font-size: 16px;
  }
}



/* PRC Logo Navbar */
.PRC-logo img {
  width: 70px;
  height: 70px;
  background-blend-mode: color;
}



/* Multi-level Dropdown Menu */

.menu {
  position: relative;
  display: inline-block;
  margin-right: 20px;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #000000;
  /* Change dropdown background color here */
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.menu:hover .dropdown {
  display: block;
}

.main-heading {
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  color: rgb(255, 255, 255);
  /* Change main heading text color here */

  cursor: pointer;
}

.main-heading:hover {
  background-color: orange;
  /* Change hover background for main heading here */
}

.dropdown-option {
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  color: #000000;
  /* Change dropdown option text color here */
  background-color: rgb(192,
      0,
      0);
  /* Change dropdown option background color here */
}

.sub-menu {
  position: relative;
}

.sub-dropdown {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background-color: #000000;
  /* Change sub-dropdown background color here */
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
}

.sub-menu:hover .sub-dropdown {
  display: block;
}

.sub-option {
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  color: #ffffff;
  /* Change sub-option text color here */
}

/*=========================
   FOOTER
========================= */

/* --- General Footer Styling --- */
footer {
  background: linear-gradient(180deg, #000080 50%, #006eff 100%) !important;
  color: white;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
}

/* --- Main Center Heading Styling (H2) --- */
.footer-main-heading {
  max-width: 1200px;
  margin: 0 auto 30px;
  text-align: center;
  border-bottom: 2px solid #ffd000;
  padding-bottom: 10px;
}

.footer-main-heading h2 {
  font-size: 1.8em;
  font-family: 'Times New Roman', Times, serif;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --- Container for Sections --- */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

/* --- Individual Section Styling --- */
.footer-section {
  flex-basis: 200px;
  flex-grow: 1;
}

/* --- Heading Styling (NOW USING H1) --- */
.footer-section h1 {
  font-size: 1.1em;
  color: #1abc9c;
  margin-top: 0;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- List Styling --- */
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* --- Social Icons Styling --- */
.social-icons {
  margin-top: 15px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  /* Circle shape */
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  color: white;
  /* Default text color */
  background-color: #bdc3c7;
  /* Default background */
  transition: transform 0.2s, background-color 0.3s;
}

.social-icons a:hover {
  transform: translateY(-3px);
}

/* Applying Brand Colors for recognition */
.social-icons .wikipedia {
  background-color: #919191;
}

.social-icons .youtube {
  background-color: #ff0000;
}

.social-icons .facebook {
  background-color: #006eff;
}

.social-icons .instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icons .x {
  background-color: #000000;
}

/* --- Copyright/Bottom Section --- */
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  border-top: 1px solid #4a637a;
  padding-top: 20px;
  text-align: center;
  font-size: 1.2em;
  color: #bdc3c7;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
  }
}

/* ===================================
   MINIMAL RESPONSIVE NAV STYLES
   =================================== */

/* 1. Hide hamburger icon by default but style it for animation */
.hamburger-menu {
  display: none;
  width: 30px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1001;
  /* Ensure it stays above the menu overlay */
  padding: 0;
  /* Reset padding */
  border: none;
  background: transparent;
}

.hamburger-menu .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

/* Animation to Close Button (X) */
.hamburger-menu.open .bar:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.hamburger-menu.open .bar:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.open .bar:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* 2. Media query for mobile and tablet screens */
@media screen and (max-width: 1200px) {

  /* Make header items wrap */
  .navbar {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  /* Hide the desktop navigation links */
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    text-align: left;
    background-color: #00076d;
    /* <<< Light background for mobile menu */
    order: 3;
    /* Drop below logo and title */
  }

  /* Show the hamburger menu icon as flex */
  .hamburger-menu {
    display: flex;
  }

  /* This class is added by JavaScript */
  .nav-links.responsive {
    display: flex;
    position: absolute;
    top: 100%;
    /* Position exactly below the navbar */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    background-color: #000080;
    /* Match navbar color */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* 3. Make mobile dropdowns stack neatly */

  /* Make all top-level items full-width */
  .nav-links a,
  .nav-links .menu {
    width: 100%;
    padding: 15px 20px;
    /* Increased padding for better touch targets */
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle separator */
    color: white;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s ease;
  }

  .nav-links a:hover,
  .nav-links .menu:hover {
    background-color: rgba(255, 255, 255, 0.1);
    /* Hover effect */
    padding-left: 25px;
    /* Slide effect on hover */
  }

  .nav-links .menu .main-heading {
    width: 100%;
    padding: 0;
  }

  /* Change dropdowns from "pop-out" to "push-down" */
  .nav-links .dropdown,
  .nav-links .sub-dropdown {
    position: relative;
    /* Change from 'absolute' to 'relative' */
    display: none;
    /* Keep hidden until tapped */
    width: 100%;
    box-shadow: none;
    /* Remove desktop shadow */
    border: none;
    background-color: #c5c5c5;
    /* Indent color */
    padding-left: 20px;
    box-sizing: border-box;
  }

  /* Show dropdown when parent is tapped/hovered */
  .nav-links .menu:hover>.dropdown,
  .nav-links .sub-menu:hover>.sub-dropdown {
    display: block;
  }

  /* Fix Donate Button in Mobile Menu */
  .nav-links .donate-nav-button {
    width: 90% !important;
    margin: 12px auto !important;
    display: block;
    text-align: center;
    border-radius: 50px !important;
    /* Keep pill shape */
    padding: 12px 20px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  }
}