/* --------------------
   Elevated Modern Design (Fixed)
-------------------- */

:root {
  --bg: #ffffff;
  --primary-color: #1D4E89; /* Deep Blue */
  --accent-color: #50C9C3;  /* Teal */
  --muted: #64748b;
  --text-color: #333333;
  --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  --gradient-bg: linear-gradient(120deg, #50C9C3, #1D4E89); /* Teal to Deep Blue */
  --hover-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
  --radius-lg: 16px;
  --transition-fast: 300ms ease-in-out;
  --container-width: 1120px;
  --lightteal:  #e0f2f1
}

/* Global Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  background: #f9f9f9; /* Light Background */
  color: var(--text-color);
  line-height: 1.6;
}

/* Header */
.header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--gradient-bg);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0 20px;
}

.brand {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
}



.title .name {
  font-weight: 700;
  font-size: 1.5rem;
  color: #ffffff;
  margin-left: 20px;   
  display: flex;
  flex-direction: column;
  justify-content: center; 
}

.title .sub {
  font-weight: 500;
  font-size: 1.0rem;
  color: #ffffff;
  margin-left: 20px;   
  display: flex;
  flex-direction: column;
  justify-content: center; 
}

/* ==============================
   NAVBAR
============================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 0;
}

/* Normal nav links */
.navbar a {
  color: #ffffff;
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 25px;
  text-decoration: none;
  transition: background-color 0.25s ease;
}

.navbar a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* CTA button */
.navbar .cta {
  background-color: var(--accent-color);
  padding: 12px 20px;
  border-radius: 25px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.navbar .cta:hover {
  box-shadow: var(--hover-shadow);
}


/* Dropdown container */
.dropdown {
  position: relative;
}

/* Dropdown button */
.dropbtn {
  color: #fff;
  font-weight: 600;
  padding: 10px 23px;
  border-radius: 25px;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: background 0.3s;
  font-size: 1.0rem;
}

/* Optional hover style for button */
.dropbtn:hover {
  background-color: rgba(255,255,255,0.1);
}

/* Dropdown menu */
.dropdown-content {
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  border-radius: 12px;
  overflow: hidden;
  max-height: 0;
  padding: 0 15px; /* collapsed */
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  z-index: 200;

  /* FIX: background always gradient, start invisible */
  background: var(--gradient-bg);
  opacity: 0;
  pointer-events: none;
}

/* Open state */
.dropdown-content.open {
  max-height: 500px; /* enough for content */
  padding: 10px 15px; /* expanded */
  opacity: 1;
  pointer-events: auto;
  background: var(--gradient-bg);
}

/* Dropdown links hover effect */
.dropdown-content a {
  color: #fff;
  padding: 10px 15px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.dropdown-content a:hover {
  background: var(--lightteal); /* full gradient background */
  color: #080000;                 /* ensure text remains visible */
  transform: translateX(5px);     /* subtle movement */
  box-shadow: 0 6px 15px rgba(0,0,0,0.2); /* slight depth */
}

/* ==============================
   MOBILE
============================== */
@media (max-width: 980px) {
  .navbar {
    flex-direction: column;
    align-items: center;
  }

  .navbar a,
  .dropbtn {
    width: 100%;
    text-align: center;
  }

  .dropdown-content {
    position: static;
    width: 100%;
    box-shadow: none;
    margin-top: 5px;
  }
}


/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 80px 20px;
  background: var(--gradient-bg);
  color: #ffffff;
  text-align: left;
  border-radius: 0;
}

.hero-left {
  max-width: 700px;
  animation: fadeInLeft 1s ease-in-out;
  border-radius: 0;
}

.hero h1 {
  font-size: 3rem;
  margin: 0;
  font-weight: 800;
}

.hero p {
  font-size: 1.2rem;
  margin: 15px 0;
}

.hero .btn {
  background: linear-gradient(135deg, #021818, #02615c);
  color: #ffffff;
  padding: 15px 25px;
  border-radius: 25px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.hero .btn:hover {
  transform: scale(1.05);
  box-shadow: var(--hover-shadow);
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  
}

/* Card Section - Full Width Side by Side */
/* Index page cards: 4 per row */
.cards-grid {
  display: flex;               /* use flexbox instead of grid */
  justify-content: flex-start; /* other cards align left */
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
}
/* Hover effect for cards in the 'Recent Academic Leadership' section */
.section.alt .cards-grid .card:hover {
  transform: translateY(-8px);        /* slight lift */
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);  /* stronger shadow */
  background: linear-gradient(135deg, #50C9C3, #a7cdfb); /* scholorship cards */
}

/* Optional: keep card styling */
.cards-grid .card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  color: var(--text-color);
  text-align: left;
   flex: 1 1 calc(25% - 30px);
}

.cards-grid .card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
  background: linear-gradient(135deg, #50C9C3, #1D4E89); /* index cards */
  color: #ffffff;
}

.cards-grid .card h3 {
  color: var(--primary-color);
}

.cards-grid .card p {
  color: var(--muted);
}


  
  

/* Optional: make hover pop */


/* Recommended card text */




@media(max-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on medium screens */
  }
}
/* Bottom Row Layout */
.bottom-row {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

/* Left and middle cards */
.left-card,
.middle-card {
  flex: 1; /* Equal width */
}

/* Middle card (recommended blog) */
.middle-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Right stacked courses */
.right-courses {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1; /* Same width as left/middle */
  margin-bottom: 10px;
}

.right-courses .course-card {
  flex: 1; /* Each course card takes half height of right column */
}

/* Optional: Styling for all cards */
.bottom-row .card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.bottom-row .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  background: linear-gradient(135deg, #50C9C3, #1D4E89);
  color: #fff;
}
/* Recommended blog card */
#random-blog {
  background-color: #ffffff;   /* Light blue background */
  padding: 50px 25px;           /* Adjust padding */
  border-radius: 15px;           /* Make it more “card-like” */
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  max-width: 400px;             /* Limit width */
  margin: 0 auto;               /* Center horizontally */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 105%;                /* Full height */
  width: calc(100vw - 400px);  /* full width minus 20px padding on each side */
  align-items: flex-start;
  gap: 15px;
}


/* Responsive */
@media(max-width: 1024px) {
  .bottom-row {
    flex-direction: column;
  }
  .right-courses {
    flex-direction: row;
  }
  .right-courses .course-card {
    flex: 1;
  }
}



.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
  background-color: var(--accent-color);  /* Teal background on hover */
  color: #ffffff;  /* Change text color to white on hover for visibility */
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);  /* Deep blue for titles */
}

.card p {
  font-size: 1rem;
  color: var(--muted);  /* Muted color for text */
}

.card:hover h3, .card:hover p {
  color: #ffffff; /* Ensure text color remains white when hovering over the card */
}

.card .btn {
  margin-top: 15px;
  background-color: var(--accent-color);
  color: #ffffff; 
  padding: 12px 20px;
  border-radius: 25px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.card .btn:hover {
  transform: scale(1.05);
  box-shadow: var(--hover-shadow);
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 1.5rem; /* adjust as needed */
}

.checklist li {
  padding-left: 20px;
  position: relative;
}

.checklist li::before {
  content: "✔️";
  position: absolute;
  left: 0;
  top: 0;
}

/* Teal Accents for Specific Sections */
.section.alt {
  background-color: black;
  color: var(--bg);
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  margin-top: 40px;
}

.section.alt h2 {
  color: var(--bg);
}

/* Footer */


.site-footer {
  background: linear-gradient(135deg, #021818, #02615c);
  padding: 40px 20px;
  color: #ffffff;
  text-align: center;
  width: 100%;
  margin-top: auto;
}

.site-footer .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: none; /* Remove any max-width constraint */
  width: 100%;     /* Make it fill full width */
  margin: 0 auto;  /* Center content if needed */
  padding: 0 20px; /* Optional padding inside */
}




.footer-logo-img {
  width: 150px;  /* Adjust to your image size */
  height: auto;
  border-radius: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;  /* <-- THIS makes them vertical */
  gap: 12px;               /* spacing between icons */
  align-items: flex-start; /* optional: left-align them */
}

.footer-links {
  display: flex;
  gap: 20px;
}

.social-icons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;  /* <-- THIS makes them vertical */
  gap: 50px;               
  align-items: flex-start; 
}

.social-icons li {
  display: inline-block;
}

.social-icons a {
  display: block;
  width: 40px;
  height: 40px;
}

.social-icons img {
  width: 250%;
  height: 140%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.social-icons img:hover {
  transform: scale(1.3);
} 

.footer-text {
  color: #ffffff;;
}

.footer-text span {
  font-weight: 600;
}

.footer-image{
  width: 10000px;
  height: auto;
  border-radius: 8px;
}


/* Animations */
@keyframes fadeInLeft {
  0% { opacity: 0; transform: translateX(-30px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Mobile Styles */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .navbar {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
    background-color: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
  }
}

/* Hero Card with Contact Info Box and Image */
.hero-card {
  background: var(--beige); 
  padding: 20px;
  box-shadow: var(--card-shadow);
  display: flex;
  gap: 20px;
  align-items: flex-start; 
  flex-wrap: wrap;
  border-radius: var(--radius-lg);
}

.profile-photo {
  flex-shrink: 0;
  height: 280px;  
  width: 300px;   
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  margin-top: -20px; 
}

.profile-photo img {
  width: 100%;  
  height: 100%; 
  object-fit: cover; 
}

.contact-info-box {
  flex-grow: 1;
  padding: 20px;
  background: rgb(226, 248, 250);
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}


.contact-info-box h3 {
  margin: 0 0 12px 0;
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
}

.contact-info-box p {
  font-size: 1rem;
  color: var(--muted);
}

.contact-info-box .hint {
  margin-bottom: 8px;
  color: var(--text-color);
}

/* Logo Image Styling */
.logo-img {
  height: 90px;       
  width: 80px;        
  object-fit: cover;   
  border-radius: 20px; 
  display: block;
}
/* Additional Custom Styles */
    /* Modify the background or text color for the Spiritual & Islāmic Psychological Support section */
    #spiritual-psychological-support {
      background-color: #e0f7fa; /* Light teal */
      color: #333333; /* Dark text for readability */
      padding: 40px 20px;
      border-radius: 10px;
    }

    /* Modify the background or text color for the Educational & Developmental Services section */
    #educational-developmental-services {
      background-color: #f1f8e9; /* Light greenish background */
      color: #fffbfb; /* Dark text for readability */
      padding: 40px 20px;
      border-radius: 10px;
    }



/* General Card Styling */
.card {
  background-color: #ffffff;
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  transition: all var(--transition-fast);
  color: var(--text-color);
  cursor: pointer;
  text-align: left;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
  background-color: var(--accent-color); /* Background change on hover */
  color: #ffffff; /* Text color change on hover for visibility */
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.card p {
  font-size: 1rem;
  color: var(--muted);
}


.profile-photo {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #A2D9D9, #50C9C3);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



.contact-profile {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  border: 3px solid rgba(255,255,255,0.8);
}

.contact-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.services-container {
  padding: 50px 20px;
  background: linear-gradient(135deg, #1e726e, #00c8ff);
  color: #ffffff;
}

.services-container h2 {
  text-align: center;
  margin-bottom: 40px;
}

/* Grid */
.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ALWAYS 3 per row */
  gap: 30px;
  margin-bottom: 100px;
}

/* Card */
.service-card {
  background: #ffffff;
  color: #021818;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  background: linear-gradient(135deg, #50C9C3, #a7cdfb);
}

/* Plus icon */
.service-card::after {
  content: "+";
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 1.6rem;
  font-weight: bold;
  color: #1D4E89;
  transition: transform 0.3s ease;
}

.service-card.open::after {
  transform: rotate(45deg);
}

/* Text */
.service-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #1D4E89;
}

.service-card p {
  margin-bottom: 10px;
  color: #555;
}

/* Dropdown */
.service-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.service-card.open .service-dropdown {
  max-height: 550px ;
}

.service-dropdown ul {
  padding-left: 20px;
  margin: 15px 0 0;
}

.service-dropdown li {
  margin-bottom: 8px;
}

/* Contact + Form Section */
.contact-form-section {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 40px;
  color:#021818
}


.services-contact-info-box {
  flex: 1;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 25px;
  border-radius: 16px;
  background: linear-gradient(135deg, #5fd5d5, #02615c);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.contact-profile {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.8);
  margin-bottom: 15px;
}

.contact-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Simple Shortcut Form */
.contact-form {
  flex: 1;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #ffffff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.contact-form button {
  padding: 12px 20px;
  border-radius: 25px;
  background: linear-gradient(135deg, #50C9C3, #1D4E89);
  color: #ffffff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s;
}

.contact-form button:hover {
  transform: scale(1.05);
  box-shadow: var(--hover-shadow);
}

/* Responsive */
@media(max-width: 1024px) {
  .services-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-form-section {
    flex-direction: column;
    gap: 20px;
  }
}

@media(max-width: 768px) {
  .services-cards-grid {
    grid-template-columns: 1fr;
  }
}
:root {
  --bg: #fefefe;
  --primary: #1D4E89; /* Deep Blue */
  --accent: #50C9C3;  /* Teal */
  --muted: #64748b;
  --text: #333;
  --card-shadow: 0 8px 20px rgba(0,0,0,0.08);
  --hover-shadow: 0 12px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --transition: 0.3s ease;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* Header */
.header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}



.title .name {
  font-size: 1.4rem;
  font-weight: 700;
}

.title .sub {
  font-size: 0.9rem;
  font-weight: 400;
  color: #e0e0e0;
}

/* Navbar */
.navbar a {
  color: #fff;
  padding: 10px 15px;
  border-radius: 25px;
  transition: all var(--transition);
  text-decoration: none;
}

.navbar a:hover,
.navbar a.active {
  background-color: rgba(255,255,255,0.2);
}

.navbar .cta {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 12px 20px;
}

.navbar .cta:hover {
  box-shadow: var(--hover-shadow);
}

/* Hero Sections (index first herto card thing ) */
.hero {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--accent), var(--primary)); /* index top hero */
  color: #fff;
  text-align: center;
  border-radius: 0px;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Section Titles */
.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary);
  text-align: center;
}

/* Qualification Cards */
.qual-list, .section .card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  animation: fadeInLeft 1s ease-in-out;
}
.card.qual{
  background-color: #d5e7e6;
  padding: auto px;
}
.card.qual p {
  color: black;
}
.card.qual h3 {
  margin-bottom: 6px;
}

.card.qual .sub {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0rem;
}

.card.qual .inst {
  font-style: italic;
  opacity: 0.8;
  font-size: 0.95rem;
}
 /* body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; 
  margin: 0;
} */

/* Main content should expand to fill available space */
main {
  flex: 1;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.body-grid {
  display: grid;
  grid-template-rows: auto 1fr auto; /* header | content | footer */
  min-height: 100vh; /* full viewport height */
}

main.container {
  /* ensure content fills the middle row */
  width: 100%;
}
body.qual-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Ensure full height */
}

/* Make main content grow to fill available space */
body.qual-page main {
  flex: 1;
}

/* Ensure footer sticks to the bottom */
body.qual-page .site-footer {

  min-height: 150px; /* Minimum height you want for the footer */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Vertically center footer content */
  padding: 40px 20px;
  background: linear-gradient(135deg, #021818, #02615c);
  color: #ffffff;
  text-align: center;
}
.section.alt.scholarships-section {
  border-radius: 0;
}


.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--hover-shadow);
  background: linear-gradient(135deg, #50C9C3, #a7cdfb); /* scholorship cards */
  color: #050000;
}

.card strong {
  color: var(--primary);
}

/* Alternate Sections */
.section.alt {
  background: linear-gradient(135deg, var(--accent), var(--primary)); /* prof , scholorship , selectedpastroels */
  color: #c70707;
  padding: 40px 20px;
  border-radius: 0;
  
}
.fellowships-section {
  background-color: #e0f2f1; /* light teal/green */
  padding: 40px 20px;
  border-radius: var(--radius);
}
.fellowships-section .card:hover {
  background-color: var(--gradient-bg);
  color: #ffffff;              /* Make text visible on hover */
  box-shadow: var(--hover-shadow);
  transform: translateY(-8px);
}
.prof-section {
  background-color: #f0f4f4; /* light grayish */
  padding: 40px 20px;
  

}
.prof-section .card:hover {
  background: linear-gradient(135deg, #e2e3e6,#6f9d9b );
  color: #0c0505;              /* Make text visible on hover */
  box-shadow: var(--hover-shadow);
  transform: translateY(-8px);
}


/* Scholarship Metrics */
.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.metrics .card {
  flex: 1 1 200px;
  text-align: center;
}

/* Footer
.site-footer {
  background: var(--primary);
  color: #fff;
  padding: 30px 20px;
  text-align: center;
  font-size: 0.9rem;
} */

/* Responsive */
@media(max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .section h2 {
    font-size: 1.5rem;
  }
}


 /* Publications Page Styles */

  
.doi { 
  font-size:0.75rem; 
  color:#555; 
  margin-left:6px;
   display:none;
}
.pub-list { 
  display:grid;
  gap:12px;
  margin-top:8px;
}

.pub-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #2e8989; /* soft light text for contrast */
  margin: 60px 0 25px;
  padding-left: 18px;
  position: relative;
  top: -30px; /* moves the title up */
  letter-spacing: 0.4px;
}

/* Teal accent bar */
.pub-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 65%;
  border-radius: 6px;
  background: linear-gradient(
    180deg,
    var(--accent-color),
    rgba(22, 22, 22, 0.7)
  );
}

.pub-title {
  text-shadow: 0 2px 10px rgba(0, 200, 200, 0.15);
}

/* Container for all year buttons */
.year-list {
  display: flex;
  gap: 10px;
  overflow-x: auto; /* horizontal scroll if too many */
  padding: 10px 0;
  margin-bottom: 15px;
  scroll-behavior: smooth;
}

.year-buttons {
  display: flex;
  flex-wrap: wrap;       /* allows buttons to go to the next line */
  gap: 10px;             /* space between buttons */
  margin-bottom: 20px;
}

.year-btn {
  flex: 1 1 100px;       /* grow to fill row, shrink if needed, base width 100px */
  padding: 20px 0;       /* vertical padding */
  background: var(--gradient-bg);
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;     /* ↑ increased text size */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.year-btn:hover {
  transform: translateY(-8px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.year-btn.active {
  transform: translateY(-10px);  /* raises the button */
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);  /* stronger shadow for depth */
}

/* Optional: smooth scroll when selecting a button */
.year-list::-webkit-scrollbar {
  height: 6px;
}

.year-list::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}


.book-entry {
  background-color: #e0f2f1;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 5px;
  
}
.book-entry em {
  font-style: normal;
  font-weight: bold;
  color:  #11b050;
  margin-right: 5px;
}

.book-entry .meta {
  font-weight: bold;
  font-size: 0.9rem;
}

.book-entry .doi {
  font-style: italic;
  font-size: 0.8rem;
  color: #555;
}

.book-entry:hover .doi {
  display:inline;
}

.book-section {
  background-color: #ffffff; /* light teal/green */
  padding: 40px 20px;
  border-radius: var(--radius);
}
.book-section .card:hover {
  background-color: var(--gradient-bg);
  color: #ffffff;              /* Make text visible on hover */
  box-shadow: var(--hover-shadow);
  transform: translateY(-8px);
}

.year-toggle .arrow {
  display: inline-block;
  margin-left: 5px;      /* space between year and arrow */
  transition: transform 0.3s ease;
}

/* Rotate arrow when dropdown is open */
.year-toggle.open .arrow {
  transform: rotate(180deg); /* rotates arrow horizontally */
}
.type-toggle {
 background: linear-gradient(135deg, #35605b, #0ba69e);
  color: rgb(255, 255, 255);
  border: none;
  padding: 40px 15px;
  width: 100%;
  text-align: left;
  font-size: 18px;
  cursor: pointer;
  margin-bottom: 5px;
  border-radius: 5px;
   margin-bottom: 10px
}

.type-toggle .arrow {
  float: right;
  transition: transform 0.3s;
}

.type-toggle.open .arrow {
  transform: rotate(180deg);
}

.type-content {
  display: none;
  margin-left: 10px;
}

.read-link {
  display: inline-block;
  margin-top: 5px;
  padding: 5px 12px;
  background: linear-gradient(135deg, #024545, #02615c);
  color: white; /* text color */
  text-decoration: none; /* remove underline */
  border-radius: 5px;
  font-weight: bold;
  margin-left: 15px;
  transition: background-color 0.3s;
}

.read-link:hover {
  background-color: #a04e45; /* slightly darker on hover */
}

.read-link:visited {
  color: white; /* prevent blue color after click */
}

.read-link:active {
  color: white;
}


/* Row layout */
.publications-row {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  align-items: start;
}

/* Cards grid stays the same */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Featured book */

/* Responsive */
@media (max-width: 980px) {
  .publications-row {
    grid-template-columns: 1fr;
  }

  .featured-book-wrapper {
    justify-content: center;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Container for the title + bar */
.blog-section-title {
  display: flex;
  align-items: center; /* vertically aligns the text and the bar */
  gap: 10px;           /* space between text and bar */
  text-align: left;    /* ensures text stays left-aligned */
  margin-bottom: 20px; /* space below */
}

/* The little bar */
.blog-section-title .bar {
  flex-shrink: 0;        /* prevent shrinking */
  width: 50px;           /* length of the bar */
  height: 3px;           /* thickness */
  background-color: var(--primary-color); /* teal/blue */
}

.blog-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #2e8989; /* teal */
  margin: 40px 0 25px; /* adjust spacing */
  padding-left: 24px; /* space for bar */
  position: relative;
  letter-spacing: 0.4px;
  text-shadow: 0 2px 10px rgba(0, 200, 200, 0.15);
  display: inline-block; /* makes ::before work nicely */
}

/* Teal accent bar */
.blog-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0; /* align with top of text */
  width: 6px;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(
    180deg,
    var(--accent-color),
    rgba(22, 22, 22, 0.7)
  );
}

.card img {
  max-width: 174px;
  height: auto;
}
.cta-button.small {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #021818, #02615c);
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
}
.cta-button.small:hover {
  box-shadow: var(--hover-shadow);
  transform: scale(1.1);
  transition: transform 0.9s ease;
}
.shelf-image {
  width: 600px;        /* adjust as needed */
  height: 350px;
  max-width: 200%;
  border-radius: 80px;
  object-fit: cover;
}