*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

body{
  font-family:Arial, sans-serif;
  background:#f4f1e8;
  color:#111;
}

.hero{
  min-height:90vh;
  background:
    linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.35)),
    url("school-hero.jpg") center/cover no-repeat;
  position:relative;
  color:#fff;
}

.overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.10);
}

.topbar{
  position:relative;
  z-index:2;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:22px 6%;
}

.schoolBrand h1{
  font-size:26px;
}

.schoolBrand p{
  font-size:14px;
  color:#facc15;
}

.topbar a{
  color:#111;
  background:#facc15;
  text-decoration:none;
  padding:12px 20px;
  border-radius:999px;
  font-weight:700;
}

.heroContent{
  position:relative;
  z-index:2;
  max-width:760px;
  padding:130px 6% 80px;
}

.heroContent span{
  display:inline-block;
  background:#facc15;
  color:#111;
  padding:8px 14px;
  border-radius:999px;
  font-weight:700;
  margin-bottom:20px;
}

.heroContent h2{
  font-size:56px;
  line-height:1.05;
  margin-bottom:125px;
}

.heroContent p{
  font-size:20px;
  line-height:1.6;
  color:#f5f5f5;
}

main{
  padding:70px 6%;
}

.intro{
  text-align:center;
  max-width:720px;
  margin:0 auto 40px;
}

.intro h2{
  font-size:36px;
  margin-bottom:10px;
}

.intro p{
  color:#555;
  font-size:18px;
}

.categoryGrid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:22px;
}

.categoryCard{
  background:#fff;
  border:none;
  border-radius:24px;
  padding:24px;
  text-align:left;
  cursor:pointer;
  box-shadow:0 12px 30px rgba(0,0,0,.1);
  transition:.25s ease;
  min-height:190px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.categoryCard:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 45px rgba(0,0,0,.16);
}

.categoryTop span{
  display:inline-block;
  background:#111;
  color:#facc15;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  margin-bottom:12px;
}

.categoryCard h3{
  font-size:23px;
  margin-bottom:8px;
}

.categoryCard p{
  color:#555;
  line-height:1.5;
  font-size:15px;
}

.miniProgress{
  margin-top:18px;
}

.miniProgressTop{
  display:flex;
  justify-content:space-between;
  font-size:13px;
  font-weight:700;
  margin-bottom:8px;
}

.miniTrack{
  width:100%;
  height:9px;
  background:#eee;
  border-radius:99px;
  overflow:hidden;
}

.miniFill{
  height:100%;
  background:#16a34a;
  border-radius:99px;
}

.successSection{
  margin-top:80px;
}

.successHeader{
  text-align:center;
  max-width:760px;
  margin:0 auto 36px;
}

.successHeader span{
  color:#16a34a;
  font-weight:800;
}

.successHeader h2{
  font-size:36px;
  margin:8px 0;
}

.successHeader p{
  color:#555;
  line-height:1.6;
}

.successGrid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:24px;
}

.successCard{
  position:relative;
  background:#fff;
  border-radius:24px;
  padding:26px;
  box-shadow:0 12px 30px rgba(0,0,0,.1);
}

.successLogo{
  position:absolute;
  top:18px;
  right:18px;
  width:45px;
  height:45px;
  object-fit:contain;
}

.successBadge{
  display:inline-block;
  background:#16a34a;
  color:#fff;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  margin-bottom:22px;
}

.successCard h3{
  margin-bottom:10px;
}

.successCard p{
  color:#555;
  margin-bottom:18px;
  line-height:1.5;
}

.completedBar{
  width:100%;
  height:10px;
  background:#e5e5e5;
  border-radius:99px;
  overflow:hidden;
  margin-bottom:8px;
}

.completedFill{
  height:100%;
  width:100%;
  background:#16a34a;
}

.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.72);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:999;
  padding:20px;
}

.modal.active{
  display:flex;
}

.modalBox{
  background:#fff;
  width:min(1100px, 96vw);
  max-height:90vh;
  overflow:auto;
  border-radius:28px;
  padding:30px;
  position:relative;
}

.closeBtn{
  position:absolute;
  top:18px;
  right:18px;
  width:42px;
  height:42px;
  border:none;
  border-radius:50%;
  background:#111;
  color:#fff;
  font-size:24px;
  cursor:pointer;
}

.modalHeader{
  padding-right:55px;
  margin-bottom:25px;
}

.modalHeader span{
  display:inline-block;
  background:#facc15;
  color:#111;
  padding:7px 14px;
  border-radius:999px;
  font-weight:800;
  margin-bottom:12px;
}

.modalHeader h2{
  font-size:36px;
  margin-bottom:8px;
}

.modalHeader p{
  color:#555;
  font-size:17px;
}

.modalNeedsGrid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
  gap:20px;
}

.needCard{
  background:#f8f8f8;
  border:1px solid #e5e5e5;
  border-radius:22px;
  padding:22px;
}

.needTop{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  margin-bottom:12px;
}

.needTop h3{
  font-size:20px;
}

.tag{
  white-space:nowrap;
  border-radius:999px;
  padding:5px 10px;
  font-size:11px;
  font-weight:800;
}

.current{
  background:#dcfce7;
  color:#166534;
}

.urgent{
  background:#fee2e2;
  color:#991b1b;
}

.soon{
  background:#ffedd5;
  color:#9a3412;
}

.needCard p{
  color:#555;
  line-height:1.5;
  margin-bottom:16px;
}

.modernProgressBox{
  margin:18px 0;
}

.modernProgressTop{
  display:flex;
  justify-content:space-between;
  font-size:13px;
  font-weight:800;
  margin-bottom:8px;
}

.modernProgressTrack{
  height:10px;
  background:#e5e5e5;
  border-radius:999px;
  position:relative;
}

.modernProgressFill{
  height:100%;
  background:#16a34a;
  border-radius:999px;
}

.donateBtn{
  display:block;
  width:100%;
  text-align:center;
  border:none;
  background:#111;
  color:#fff;
  padding:13px;
  border-radius:14px;
  font-weight:800;
  cursor:pointer;
  text-decoration:none;
}

.donateBtn:hover{
  background:#facc15;
  color:#111;
}

footer{
  background:#111;
  color:#fff;
  text-align:center;
  padding:24px;
}

@media(max-width:700px){
  .topbar{
    flex-direction:column;
    gap:16px;
    align-items:flex-start;
  }

  .heroContent{
    padding-top:90px;
  }

  .heroContent h2{
    font-size:38px;
  }

  .heroContent p{
    font-size:17px;
  }

  main{
    padding:45px 5%;
  }

  .modalBox{
    padding:24px 18px;
  }

  .modalHeader h2{
    font-size:28px;
  }
}
/* Progress track */

.modernProgressTrack,
.miniTrack{
  position:relative;
  height:10px;
  background:#dc2626;
  border-radius:999px;
  overflow:visible;
}

/* Green funded portion */

.modernProgressFill,
.miniFill{
  position:relative;
  height:100%;
  background:#16a34a;
  border-radius:999px;
}

/* Blinking live dot */

.modernProgressFill::after,
.miniFill::after{
  content:"";
  position:absolute;
  right:-8px;
  top:50%;
  transform:translateY(-50%);
  width:16px;
  height:16px;
  border-radius:50%;
  background:#f97316;
  border:2px solid #fff;

  box-shadow:
    0 0 0 0 rgba(249,115,22,.8);

  animation:livePulse 1.4s infinite;
}

@keyframes livePulse{

  0%{
    transform:translateY(-50%) scale(1);
    box-shadow:
      0 0 0 0 rgba(249,115,22,.8);
  }

  70%{
    transform:translateY(-50%) scale(1.2);
    box-shadow:
      0 0 0 10px rgba(249,115,22,0);
  }

  100%{
    transform:translateY(-50%) scale(1);
    box-shadow:
      0 0 0 0 rgba(249,115,22,0);
  }
}
.modernProgressTop{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
  font-size:13px;
  font-weight:700;
  color:#111;
}

.modernProgressLabels{
  display:flex;
  justify-content:space-between;
  margin-top:8px;
  font-size:11px;
  font-weight:700;
}

.modernProgressLabels span:first-child{
  color:#dc2626;
}

.modernProgressLabels span:last-child{
  color:#16a34a;
}/* ===================================
   CORNWALL COLLEGE RED & GOLD THEME
   ADD TO VERY BOTTOM OF CSS
=================================== */

/* School Address */
.schoolBrand p{
  color:#facc15 !important;
}

/* Hero Badge */
.heroContent span{
  background:#facc15 !important;
  color:#111 !important;
}

/* View Needs Button */
.topbar a{
  background:#facc15 !important;
  color:#111 !important;
}

.topbar a:hover{
  background:#dc2626 !important;
  color:#fff !important;
}

/* Category Badge */
.categoryTop span{
  background:#dc2626 !important;
  color:#facc15 !important;
}

/* Completed Projects Header */
.successHeader span{
  color:#dc2626 !important;
}

/* Completed Badge */
.successBadge{
  background:#dc2626 !important;
  color:#fff !important;
}

/* Progress Bars */
.modernProgressFill,
.miniFill,
.completedFill{
  background:#facc15 !important;
}

/* Live Progress Dot */
.modernProgressFill::after,
.miniFill::after{
  background:#facc15 !important;
  box-shadow:0 0 0 0 rgba(250,204,21,.8) !important;
}

/* Goal Reached Text */
.modernProgressLabels span:last-child{
  color:#facc15 !important;
}

/* Donate Button */
.donateBtn{
  background:#facc15 !important;
  color:#111 !important;
  border:2px solid #dc2626;
}

.donateBtn:hover{
  background:#dc2626 !important;
  color:#fff !important;
}

/* Modal Badge */
.modalHeader span{
  background:#facc15 !important;
  color:#111 !important;
}

/* Modal Close Button */
.closeBtn{
  background:#dc2626 !important;
  color:#fff !important;
}

/* Progress Track */
.modernProgressTrack,
.miniTrack{
  background:#dc2626 !important;
}/* ===================================
   PROFESSIONAL TYPOGRAPHY UPGRADE
=================================== */

/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body{
  font-family:'Inter', Arial, sans-serif !important;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}

/* Main Headings */

.heroContent h2,
.intro h2,
.successHeader h2,
.modalHeader h2{
  font-weight:800;
  letter-spacing:-1px;
  line-height:1.05;
}

/* School Name */

.schoolBrand h1{
  font-weight:800;
  letter-spacing:-0.5px;
}

/* Category Titles */

.categoryCard h3,
.needTop h3,
.successCard h3{
  font-weight:700;
  letter-spacing:-0.3px;
  line-height:1.3;
}

/* Body Text */

.heroContent p,
.intro p,
.categoryCard p,
.needCard p,
.successCard p,
.modalHeader p{
  font-weight:400;
  line-height:1.7;
  color:#4b5563;
}

/* Buttons */

.topbar a,
.donateBtn,
.closeBtn{
  font-weight:700;
  letter-spacing:.3px;
}

/* Small Labels */

.categoryTop span,
.successBadge,
.tag,
.schoolAddress,
.miniProgressTop,
.modernProgressTop,
.modernProgressLabels{
  font-weight:700;
  letter-spacing:.4px;
}

/* Registry Cards */

.categoryCard,
.needCard,
.successCard{
  font-size:15px;
}

/* Improve Readability */

p{
  max-width:75ch;
}/* ===================================
   DESKTOP STYLE ON MOBILE
=================================== */

@media (max-width: 700px){

  .hero{
    min-height:90vh !important;
    background-position:center center !important;
  }

  .topbar{
    flex-direction:row !important;
    justify-content:space-between !important;
    align-items:flex-start !important;
    gap:10px !important;
  }

  .schoolBrand h1{
    font-size:20px !important;
  }

  .schoolBrand p{
    font-size:11px !important;
  }

  .heroContent{
    padding:60px 6% 80px !important;
    max-width:760px !important;
  }

  .heroContent h2{
    font-size:42px !important;
    line-height:1.05 !important;
  }

  .heroContent p{
    font-size:18px !important;
  }

  /* Keep cards larger like desktop */

  .categoryGrid{
    grid-template-columns:repeat(2,1fr) !important;
    gap:16px !important;
  }

  .successGrid{
    grid-template-columns:repeat(2,1fr) !important;
    gap:16px !important;
  }

  .modalNeedsGrid{
    grid-template-columns:repeat(2,1fr) !important;
    gap:16px !important;
  }

  .categoryCard{
    min-height:190px !important;
  }

  .successCard{
    min-height:220px !important;
  }

  .needCard{
    min-height:220px !important;
  }

  .modalBox{
    width:95vw !important;
  }

}

/* Extra small phones */

@media (max-width:480px){

  .heroContent h2{
    font-size:34px !important;
  }

  .heroContent p{
    font-size:16px !important;
  }

  .categoryGrid{
    grid-template-columns:1fr !important;
  }

  .successGrid{
    grid-template-columns:1fr !important;
  }

  .modalNeedsGrid{
    grid-template-columns:1fr !important;
  }

}/* ===================================
   MOBILE TEXT SHARPNESS FIX
=================================== */

@media (max-width:700px){

  .categoryCard,
  .categoryCard h3,
  .categoryCard p,
  .miniProgressTop,
  .successCard,
  .successCard h3,
  .successCard p{

    color:#111 !important;

    -webkit-font-smoothing:auto !important;
    -moz-osx-font-smoothing:auto !important;

    text-shadow:none !important;

    font-weight:600;
  }

  .categoryCard p,
  .successCard p{
    color:#374151 !important;
    font-weight:500;
  }

}/* ===================================
   MOBILE HERO BUTTON FIX
=================================== */

@media (max-width:700px){

  .topbar{
    display:flex !important;
    justify-content:space-between !important;
    align-items:center !important;
    flex-wrap:nowrap !important;
  }

  .topbar a{
    padding:10px 18px !important;
    font-size:14px !important;
    font-weight:700 !important;
    border-radius:999px !important;
    white-space:nowrap !important;
    min-width:110px;
    text-align:center;
    box-shadow:0 4px 12px rgba(0,0,0,.18);
  }

  .schoolBrand{
    max-width:65%;
  }

  .schoolBrand h1{
    font-size:20px !important;
    line-height:1.1;
    margin-bottom:2px;
  }

  .schoolBrand p{
    font-size:11px !important;
    line-height:1.2;
  }

}/* ===================================
   MOBILE 3D CARD EFFECT
=================================== */

@media (max-width:700px){

  .categoryCard,
  .successCard,
  .needCard{

    border:1px solid rgba(255,255,255,.35);

    box-shadow:
      0 6px 12px rgba(0,0,0,.08),
      0 12px 24px rgba(0,0,0,.10),
      0 24px 40px rgba(0,0,0,.08);

    transform:translateY(0);
    transition:all .25s ease;

    background:#fff;
  }

  .categoryCard:active,
  .successCard:active,
  .needCard:active{

    transform:
      translateY(2px)
      scale(.99);

    box-shadow:
      0 4px 8px rgba(0,0,0,.08),
      0 8px 16px rgba(0,0,0,.08);
  }

}/* ===================================
   WIDER PROGRESS AREA & LABEL SPACING
=================================== */

.miniProgress,
.modernProgressBox{
  width:100%;
  margin-top:20px;
}

.miniProgressTop,
.modernProgressTop{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  font-size:14px;
  font-weight:800;
}

.miniProgressTop small,
.modernProgressTop span{
  white-space:nowrap;
}

.modernProgressLabels{
  display:flex;
  justify-content:space-between;
  gap:20px;
  margin-top:10px;
}

.modernProgressLabels span{
  white-space:nowrap;
  font-size:12px;
}

/* Mobile Fix */

@media(max-width:700px){

  .categoryCard{
    padding:28px !important;
  }

  .needCard{
    padding:28px !important;
  }

  .miniProgressTop,
  .modernProgressTop{
    font-size:13px !important;
    gap:24px !important;
  }

  .modernProgressLabels{
    gap:24px !important;
  }

  .modernProgressLabels span{
    font-size:11px !important;
  }

