/*
 Theme Name: AdmissionHere College Child
 Theme URI: https://admissionhere.in
 Description: Astra child theme for College & Course SaaS (colleges + courses CPT, ACF layouts).
 Author: GPT-5.1 Thinking
 Template: astra
 Version: 1.1.0
*/

/* Single main stylesheet – previously assets/css/main.css */

/* Google font (optional – for speed you can remove later) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root{
  --max-width:1200px;
  --accent:#ff6a00;
  --blue:#111184;
  --dark:#00173b;
  --muted:#6b7280;
  --header-height:96px;
}

body{
  font-family:"Poppins",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:#111827;
  background:#f3f4f6;
  line-height:1.5;

}

/* generic */

.muted{
  color:var(--muted);
  font-size:13px;
}

*:focus-visible{
  outline:2px solid rgba(37,99,235,.35);
  outline-offset:2px;
}

/* container */

.cd-container{
  max-width:var(--max-width);
  margin:18px auto;
  padding:0 16px;
  box-sizing:border-box;
}

/* single header (college + course hero) */

.cd-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:18px 20px;
  border-radius:12px;
  background:var(--dark);
  color:#fff;
  margin-bottom:18px;
}

.cd-hero-left{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
}

.cd-logo img{
  width:80px;
  height:80px;
  object-fit:contain;
  background:#fff;
  padding:8px;
  border-radius:8px;
}

.cd-hero-info{
  min-width:0;
}

.cd-title{
  margin:0 0 6px 0;
  font-size:22px;
  line-height:1.25;
  color:#fff;
  font-weight:600;
}

/* hero meta line (college header) */

.cd-meta-line{
  font-size:13px;
  color:#e5e7eb;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.cd-meta-line span+span::before{
  content:"•";
  margin:0 6px;
  opacity:.6;
}

/* hero rating / right box */

.cd-hero-rating{
  text-align:right;
  min-width:120px;
}

/* ⭐ RATING CHIP STYLE (single college header right side) */
.cd-chip-rating{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:5px 10px;
  border-radius:999px;
  font-size:12px;
  background:var(--accent);
  color:#ffffff;
  font-weight:600;
}

.cd-chip-rating-score{
  letter-spacing:0.01em;
}

.cd-chip-rating-stars{
  font-size:13px;
  line-height:1;
}

/* hero chips (course + college header) */

.cd-meta-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:6px;
}

.cd-chip{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.25);
  font-size:12px;
  color:#e5e7eb;
  line-height:1.2;
}

/* optional stronger rating chip in chip row if ever used */
.cd-chip--rating{
  background:#0b66ff;
  border-color:rgba(59,130,246,.6);
  color:#fefce8;
}

/* hero fees block (course header right side – currently not used) */

.cd-rating-fees{
  font-size:14px;
  font-weight:600;
  background:#0b66ff;
  color:#fff;
  padding:6px 10px;
  border-radius:999px;
}

/* layout */

.cd-grid{
  display:grid;
  grid-template-columns:1fr 320px;
  gap:24px;
  align-items:flex-start;
}

.cd-main{
  min-width:0;
}

.cd-aside{
  min-width:0;
}

/* layout: course page (no sidebar) */

.cd-grid.cd-grid--no-aside{
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
}

@media(max-width:1024px){
  .cd-grid{
    grid-template-columns:1fr;
  }
  .cd-aside-inner{
    position:static!important;
  }
}

/* tabs */

.cd-tabs{
  display:flex;
  gap:8px;
  padding:10px 0;
  border-bottom:1px solid #e5e7eb;
  margin-bottom:12px;
  overflow-x:auto;
}

.cd-tab{
  background:#f9fafb;
  border-radius:999px;
  border:1px solid transparent;
  padding:6px 12px;
  font-size:14px;
  cursor:pointer;
  white-space:nowrap;
  color:#374151;
  font-weight:500;
}

.cd-tab.active{
  background:var(--blue);
  border-color:var(--blue);
  color:#fff;
}

/* panels */

.cd-panel{
  background:#fff;
  border-radius:12px;
  padding:10px;
  margin-bottom:16px;
  box-shadow:0 1px 4px rgba(15,23,42,.06);
}

/* enquiry form */

.cd-inquiry input,
.cd-inquiry textarea{
  width:100%;
  padding:9px 10px;
  border-radius:6px;
  border:1px solid #d1d5db;
  font-size:14px;
  box-sizing:border-box;
  font-family:"Poppins",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}

.cd-form-row{
  display:flex;
  gap:13px;
  margin-bottom:30px;
  flex-wrap:wrap;
}

/* buttons */

.cd-btn,
.cd-btn-outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 14px;
  border-radius:999px;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  cursor:pointer;
  font-family:"Poppins",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}

.cd-btn-apply{
  background:var(--accent);
  color:#fff;
}

.cd-btn-brochure{
  background:var(--blue);
  color:#fff;
}

.cd-btn-outline{
  border:1px solid #d1d5db;
  color:#111827;
  background:#fff;
}

.cd-btn-primary{
  background:var(--blue);
  border-radius:999px;
  padding:9px 16px;
  font-weight:600;
  color:#fff;
  border:0;
  cursor:pointer;
  font-family:"Poppins",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}

.cd-btn-xs{
  padding:6px 10px;
  font-size:12px;
}

/* Make "View College" button inside ranking table compact & clean */
.cd-col-action .cd-btn-xs{
  white-space:nowrap;       /* no ugly word-wrap */
  padding:6px 10px;         /* a bit tighter */
  font-size:11px;
}

/* On very small screens, keep it nicely aligned */
@media(max-width:640px){
  .cd-col-action{
    text-align:right;
  }
  .cd-col-action .cd-btn-xs{
    display:inline-flex;
    justify-content:center;
  }
}


/* sidebar */

.cd-aside-inner{
  position:sticky;
  top:calc(var(--header-height) + 16px);
  display:flex;
  flex-direction:column;
  gap:12px;
}

.cd-card{
  background:#fff;
  border-radius:12px;
  padding:14px 14px 12px;
  box-shadow:0 1px 4px rgba(15,23,42,.06);
}

.cd-card h4{
  margin:0 0 10px;
  font-size:15px;
  font-weight:600;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.cd-card h4::after{
  content:"";
  flex:1;
  margin-left:8px;
  height:1px;
  background:#e5e7eb;
}

.cd-cta-vertical{
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* top courses sidebar */

.cd-top-courses{
  list-style:none;
  padding:0;
  margin:0;
  font-size:13px;
}

.cd-top-courses li{
  padding:10px 0;
  border-bottom:1px dashed #e5e7eb;
}

.cd-top-courses li:last-child{
  border-bottom:0;
}

.cd-top-course-title{
  margin-bottom:4px;
}

.cd-top-course-title a{
  font-size:13px;
  font-weight:600;
  text-decoration:none;
  color:#111827;
  line-height:1.4;
}

.cd-top-course-lines{
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
  line-height:1.5;
}

.cd-top-course-lines span{
  display:block;
}

.cd-top-course-lines strong{
  font-weight:500;
}

/* courses tab list (on college page) */

.cd-course-list{
  list-style:none;
  padding:0;
  margin:12px 0 0;
}

.cd-course{
  padding:12px 0;
  border-bottom:1px solid #f3f4f6;
}

.cd-course:last-child{
  border-bottom:0;
}

.cd-course-main{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.cd-course-title a{
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  color:#111827;
}

.cd-course-meta{
  font-size:12px;
  color:var(--muted);
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  justify-content:flex-end;
}

.cd-course-meta span+span::before{
  content:"•";
  margin:0 4px 0 2px;
}

/* FEES TEXT – light green highlight */
.cd-course-fees{
  color:#16a34a;         /* light green, readable on white */
  font-weight:600;
}

@media (max-width:640px){
  .cd-course-main{
    flex-direction:column;
    align-items:flex-start;
  }
  .cd-course-meta{
    justify-content:flex-start;
  }
}

/* related colleges sidebar list */

.cd-related{
  list-style:none;
  padding:0;
  margin:0;
}

.cd-related li{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 0;
}

.cd-related-logo img{
  width:28px;
  height:28px;
  object-fit:contain;
  border-radius:50%;
  background:#f9fafb;
}

.cd-related a{
  text-decoration:none;
  font-size:13px;
  color:#111827;
}

/* archive colleges */

.cd-archive-header{
  margin-bottom:16px;
}

.cd-archive-title{
  font-size:26px;
  font-weight:600;
  margin:0;
}

.cd-archive-subtitle{
  margin:4px 0 0;
  font-size:13px;
  color:var(--muted);
}

/* archive colleges grid */
.cd-cards-grid{
  display:grid;
  grid-template-columns:1fr;   /* mobile: 1 card */
  gap:16px;
}

/* tablet: 2 cards */
@media (min-width:640px){
  .cd-cards-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

/* desktop: 3 cards */
@media (min-width:960px){
  .cd-cards-grid{
    grid-template-columns:repeat(3, minmax(0,1fr));
  }
}


/* college card */

.cd-college-card{
  display:flex;
  flex-direction:column;
  padding:0;
  border-radius:16px;
  background:#fff;
  border:1px solid #e5e7eb;
  box-shadow:0 1px 4px rgba(15,23,42,.04);
  overflow:hidden;
  width:100%; 
}


.cd-college-card,
.cd-course-card{
  transition:box-shadow .12s ease;
}
.cd-college-card:hover,
.cd-course-card:hover{
  box-shadow:0 4px 12px rgba(15,23,42,.10);
}



/* cover + logo */

.cd-card-thumb{
  position:relative;
  display:block;
}

.cd-card-thumb img{
  width:100%;
  height:140px;
  object-fit:cover;
  display:block;
}

.cd-card-logo{
  position:absolute;
  left:50%;
  bottom:-30px;
  transform:translateX(-50%);
  width:60px;
  height:60px;
  border-radius:999px;
  background:#fff;
  box-shadow:0 2px 6px rgba(15,23,42,.15);
  display:flex;
  align-items:center;
  justify-content:center;
}

.cd-card-logo img{
  width:50px;
  height:50px;
  object-fit:contain;
  border-radius:50%;
}

/* college card body */

.cd-college-main{
  padding:38px 16px 14px;
}

.cd-college-title h3{
  margin:0;
  font-size:16px;
  font-weight:600;
}

.cd-college-title a{
  color:#111827;
  text-decoration:none;
}

.cd-college-meta{
  margin-top:4px;
  font-size:13px;
  color:var(--muted);
  display:flex;
  flex-wrap:wrap;
  gap:4px;
}

.cd-college-meta span+span::before{
  content:"•";
  margin:0 4px 0 2px;
  color:var(--muted);
}

.cd-college-excerpt{
  margin:8px 0 12px;
  font-size:14px;
  color:#4b5563;
}

.cd-college-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:12px;
}

.cd-view-btn{
  padding:6px 14px;
  border-radius:999px;
  border:1px solid #d1d5db;
  background:#fff;
  color:#111827;
  text-decoration:none;
  font-weight:500;
  font-size:12px;
}

/* rating chip for archive card footers */
.cd-college-rating-chip{
  padding:4px 9px;
  border-radius:999px;
  background:#022c73;
  color:#fefce8;
  font-size:11px;
  display:inline-flex;
  align-items:center;
  gap:4px;
}

/* gallery tab */

.cd-gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
  gap:12px;
  margin-top:12px;
}

.cd-gallery-item{
  overflow:hidden;
  border-radius:8px;
}

.cd-gallery-item img{
  width:100%;
  height:120px;
  object-fit:cover;
  display:block;
}

@media (min-width:768px){
  .cd-gallery-item img{
    height:150px;
  }
}

/* archive courses */

.cd-archive-grid-courses{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:16px;
}

/* course card (archive) */

.cd-course-card{
  background:#ffffff;
  border-radius:16px;
  padding:18px 20px 16px;
  border:1px solid #e5e7eb;
  box-shadow:0 1px 4px rgba(15,23,42,.04);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.cd-course-title{
  font-size:16px;
  margin:0 0 4px;
}

.cd-course-title a{
  text-decoration:none;
  color:#111827;
}

/* small chips inside cards */

.cd-chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:6px 0 4px;
}

.cd-chip-sm{
  padding:3px 8px;
  font-size:11px;
  border-radius:999px;
  background:#eef2ff;
  border:1px solid #e5e7ff;
  color:#111827;
}

.cd-chip-soft{
  background:#ecfeff;
  border-color:#e0f2fe;
}

/* course archive card text */

.cd-course-excerpt{
  font-size:13px;
  color:#4b5563;
  margin:4px 0 8px;
}

.cd-course-card-footer{
  margin-top:auto;
}

.cd-view-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 14px;
  border-radius:999px;
  border:1px solid var(--accent);
  font-size:12px;
  font-weight:500;
  text-decoration:none;
  color:var(--accent);
  transition:background .15s ease, color .15s ease;
}

.cd-view-btn:hover{
  background:var(--accent);
  color:#ffffff;
}

.cd-archive-pagination{
  margin-top:24px;
  text-align:center;
}

/* COLLEGES OFFERING THIS COURSE (single course table) */

.cd-course-colleges-wrapper{
  margin-top:12px;
  overflow-x:auto;
}

.cd-course-colleges-table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
  min-width:640px;
}

.cd-course-colleges-table th,
.cd-course-colleges-table td{
  padding:10px 8px;
  border-bottom:1px solid #f3f4f6;
  text-align:left;
  vertical-align:top;
}

/* Table header – strong colored row for Rank / College / etc. */
.cd-course-colleges-table thead th{
  font-weight:600;
  padding:10px 8px;
  background:#bec3ed96;   /* light blue heading row */
  color:#ffffff;            /* white text */
  border-bottom:none;
}

/* Slight separation from body rows */
.cd-course-colleges-table thead tr{
  background:var(--blue);
}


.cd-col-rank{
  width:40px;
  font-weight:600;
}

.cd-college-cell{
  display:flex;
  align-items:flex-start;
  gap:8px;
}

.cd-college-logo img{
  width:32px;
  height:32px;
  border-radius:50%;
  object-fit:contain;
  background:#fff;
  box-shadow:0 1px 3px rgba(15,23,42,.12);
}

.cd-college-name{
  font-size:14px;
  font-weight:600;
  color:#111827;
  text-decoration:none;
}

.cd-college-sub{
  font-size:11px;
}

.cd-col-location,
.cd-col-fees{
  white-space:nowrap;
}

.cd-course-colleges-top{
  background:rgba(11,102,255,0.03);
}

.cd-course-colleges-note{
  margin-top:6px;
  font-size:11px;
  color:var(--muted);
}

/* mobile table scroll */

@media(max-width:768px){
  .cd-course-colleges-table{
    min-width:520px;
  }
}

/* syllabus list */

.cd-syllabus-list{
  list-style:disc;
  padding-left:18px;
  margin:8px 0;
}
/* Placement column (course table) */
.cd-col-placement {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.cd-placement-highlight {
  font-weight: 600;
  color: var(--accent); /* Highlighted placement percentage */
}

/* NEW: Avg & Highest salary green color */
.cd-placement-green {
  font-weight: 500;
  color: #16a34a; /* Tailwind Green-600 safe contrast */
}



/* mobile sticky CTA */

.cd-mobile-cta{
  display:none;
}

@media(max-width:768px){
  .cd-hero{
    flex-direction:column;
    align-items:flex-start;
  }
  .cd-logo{
    display:none;
  }
  .cd-hero-rating{
    text-align:left;
  }

  .cd-mobile-cta{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:60;
    background:#fff;
    border-top:1px solid #e5e7eb;
    padding:8px 12px;
    display:flex;
    gap:8px;
  }
  .cd-mobile-cta .cd-btn,
  .cd-mobile-cta .cd-btn-outline{
    flex:1;
    justify-content:center;
    font-size:13px;
    padding:8px 10px;
  }
  body.ahc-has-cta{
    padding-bottom:76px;
  }
}

/* pagination (generic) */

.cd-pagination{
  text-align:center;
  margin:24px 0;
}

.cd-pagination .page-numbers{
  margin:0 3px;
  padding:5px 9px;
  border-radius:999px;
  border:1px solid transparent;
}

.cd-pagination .current{
  border-color:#e5e7eb;
  font-weight:600;
}


/* MDCR rating badge */
.mdcr-rating-badge{display:inline-flex;align-items:center;gap:.5rem;font-size:.95rem;}
.mdcr-stars{display:inline-flex;gap:0.08rem;line-height:1;}
.mdcr-star{font-size:1rem;display:inline-block;position:relative;}
.mdcr-star-full{color:#f5b301;} /* gold */
.mdcr-star-empty{color:#ccc;}
.mdcr-star-half{color:#f5b301; /* same gold but clipped with pseudo element */}
/* half-star clipping for .mdcr-star-half */
.mdcr-star-half:before{
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    white-space: nowrap;
    color: #f5b301;
}
.mdcr-star-half { color: #ccc; } /* base star is empty color, :before shows left half gold */

/* numeric value and counts */
.mdcr-rating-value{font-weight:600;margin-left:.35rem;}
.mdcr-rating-count{color:#666;margin-left:.3rem;font-size:.9rem;}
/* small styling for archive cards */
.cd-college-footer .mdcr-rating-badge{font-size:.95rem;}




/* =========================
   ENQUIRY FORM – PREMIUM POLISH
========================= */

.cd-inquiry h2{
  margin-bottom:14px;
  font-size:18px;
  font-weight:600;
}

.cd-inquiry form{
  margin-top:10px;
}

.cd-form-row{
  gap:14px;
  margin-bottom:14px;
}

.cd-inquiry input,
.cd-inquiry textarea{
  background:#f9fafb;
  border:1px solid #e5e7eb;
  transition:border .15s ease, box-shadow .15s ease;
}

.cd-inquiry input:focus,
.cd-inquiry textarea:focus{
  border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(17,17,132,.12);
  outline:none;
  background:#fff;
}

.cd-inquiry textarea{
  resize:vertical;
  min-height:90px;
}

.cd-btn-primary{
  margin-top:6px;
  padding:10px 18px;
  font-size:14px;
  box-shadow:0 2px 6px rgba(15,23,42,.15);
}

.cd-btn-primary:hover{
  opacity:.95;
}

/* success message (future-ready) */
.cd-enquiry-success{
  padding:10px 14px;
  background:#ecfeff;
  border:1px solid #67e8f9;
  color:#0369a1;
  border-radius:8px;
  font-size:13px;
  margin-bottom:12px;
}
/* ===============================
   AJAX SUCCESS – WHATSAPP GREEN
================================ */

.cd-enquiry-success{
  margin-top:14px;
  padding:16px;
  border-radius:12px;
  background:#ecfdf5;
  border:1px solid #86efac;
  color:#065f46;
  text-align:center;
  font-size:14px;
  opacity:0;
  transform:translateY(8px);
  transition:all .4s ease;
}

.cd-enquiry-success.show{
  opacity:1;
  transform:translateY(0);
}

.cd-success-icon{
  width:42px;
  height:42px;
  margin:0 auto 8px;
  border-radius:50%;
  background:#22c55e;
  color:#fff;
  font-size:24px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  animation:pop .5s ease;
}

@keyframes pop{
  0%{transform:scale(.5);opacity:0}
  100%{transform:scale(1);opacity:1}
}

/* WhatsApp green button */
.cd-btn-apply{
  background:#22c55e;
}
/* =====================================
   ENQUIRY FORM – PREMIUM SAAS STYLE
===================================== */

.cd-inquiry{
  background:#ffffff;
}

/* Heading */
.cd-inquiry h2{
  font-size:18px;
  font-weight:600;
  margin-bottom:14px;
  color:#0f172a;
}

/* Form wrapper */
#ahc-enquiry-form{
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* Input rows */
.cd-form-row{
  display:flex;
  gap:12px;
  margin:0;
}

/* Inputs & textarea */
.cd-inquiry input,
.cd-inquiry textarea{
  width:100%;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid #e5e7eb;
  background:#f9fafb;
  font-size:14px;
  line-height:1.4;
  color:#0f172a;
  transition:border .2s ease, box-shadow .2s ease, background .2s ease;
}

/* Focus state (WhatsApp green tone) */
.cd-inquiry input:focus,
.cd-inquiry textarea:focus{
  background:#ffffff;
  border-color:#22c55e;
  box-shadow:0 0 0 3px rgba(34,197,94,.15);
  outline:none;
}

/* Placeholder */
.cd-inquiry ::placeholder{
  color:#9ca3af;
  font-size:13px;
}

/* Textarea */
.cd-inquiry textarea{
  min-height:96px;
  resize:vertical;
}

/* Submit button */
.cd-inquiry button{
  margin-top:6px;
  align-self:flex-start;
  padding:12px 22px;
  border-radius:999px;
  font-size:14px;
  font-weight:600;
  border:none;
  cursor:pointer;
  background:#22c55e;              /* WhatsApp green */
  color:#ffffff;
  transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

/* Button hover / active */
.cd-inquiry button:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(34,197,94,.45);
  opacity:.95;
}
.cd-inquiry button:active{
  transform:translateY(0);
  box-shadow:0 4px 12px rgba(34,197,94,.35);
}

/* Mobile optimization */
@media(max-width:640px){
  .cd-form-row{
    flex-direction:column;
  }
  .cd-inquiry button{
    width:100%;
    justify-content:center;
  }
}

/* =====================================
   SUCCESS BOX (already used by AJAX)
===================================== */

.cd-enquiry-success{
  margin-top:12px;
  padding:18px 16px;
  border-radius:14px;
  background:#ecfdf5;
  border:1px solid #86efac;
  color:#065f46;
  text-align:center;
  font-size:14px;
}

.cd-success-icon{
  width:44px;
  height:44px;
  margin:0 auto 10px;
  border-radius:50%;
  background:#22c55e;
  color:#ffffff;
  font-size:24px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* WhatsApp CTA inside success */
.cd-enquiry-success .cd-btn{
  margin-top:10px;
  background:#22c55e;
}
/* Chat on WhatsApp – hover text color fix */
.cd-enquiry-success .cd-btn-apply:hover,
.cd-enquiry-success .cd-btn:hover{
  color:#065f46;          /* dark WhatsApp green text */
}
/* =====================================
   ENQUIRY FORM – ORANGE SUBMIT BUTTON
   (WhatsApp button NOT affected)
===================================== */
.cd-btn-apply{
	background: var(--accent);                 /* orange */
	
}
.cd-btn-apply:hover{
	color:#ffffff;
	box-shadow: 0 8px 22px rgba(255,106,0,.45);
}



#ahc-enquiry-form button{
  background: #1b26a3;                 /* blue */
  
}

#ahc-enquiry-form button:hover{
  box-shadow: 0 8px 22px #fff;
}




/*collegearchieve page search design */

/* AJAX SEARCH CONTAINER */
.cd-ajax-search {
	position: sticky;
	top: 70px;
	z-index: 999;
	margin: 20px 0 30px;
	padding: 14px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

/* Ajax Search Lite overrides */
.cd-ajax-search .asl_w {
	max-width: 100% !important;
}

.cd-ajax-search input[type="search"] {
	border-radius: 12px !important;
	padding: 16px 18px !important;
	font-size: 16px !important;
}

/* Suggestions box */
.asl_r {
	border-radius: 14px !important;
	box-shadow: 0 20px 50px rgba(0,0,0,0.15) !important;
}

/* Mobile optimization */
@media (max-width: 768px) {
	.cd-ajax-search {
		top: 60px;
	}
}



/* --- EXAM SPECIFIC STYLES (Add to style.css) --- */

/* Exam Dates Grid in Single Page */
.cd-dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 10px;
}

.cd-date-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 14px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cd-date-card.highlight {
    background: #ecfeff;
    border-color: #a5f3fc;
}

.cd-date-label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.cd-date-val {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
}

/* List of Participating Colleges (Tab Content) */
.cd-related-list-large {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cd-related-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #f3f4f6;
    padding: 10px 14px;
    border-radius: 10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cd-related-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateX(4px);
    border-color: #e5e7eb;
}

.cd-related-img img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    border: 1px solid #f3f4f6;
}

.cd-related-info {
    flex: 1;
    min-width: 0;
}

.cd-related-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cd-related-info .muted {
    font-size: 12px;
}


/* =========================================
   KILLER ALERT BAR 
   ========================================= */
.ahc-alert-wrap {
    width: 100%;
    position: relative;
    z-index: 99999; /* Always on top */
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    
    /* Animation Initial State */
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out;
}

/* Visibility State (Triggered by JS) */
.ahc-alert-wrap.is-visible {
    max-height: 80px; 
    opacity: 1;
}

/* --- THEMES --- */
/* Gradient (Urgent/Hot) */
.ahc-alert-wrap.style-gradient {
    background: linear-gradient(90deg, #ff4d4d 0%, #f9cb28 100%);
    color: #fff;
}
/* Solid Blue (Standard) */
.ahc-alert-wrap.style-solid {
    background: #111184;
    color: #fff;
}
/* Dark Mode */
.ahc-alert-wrap.style-dark {
    background: #111827;
    color: #fff;
}

/* --- LAYOUT --- */
.ahc-alert-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
}

.ahc-alert-left, .ahc-alert-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- BLINKING DOT --- */
.ahc-dot-ring {
    width: 10px;
    height: 10px;
    background-color: #fff;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: ahc-pulse 1.5s infinite cubic-bezier(0.66, 0, 0, 1);
    flex-shrink: 0;
}
@keyframes ahc-pulse { to { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } }

.ahc-alert-text { font-weight: 500; }

/* --- CTA BUTTON --- */
.ahc-alert-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #111827;
    padding: 6px 14px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s;
    white-space: nowrap;
}
.ahc-alert-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* --- CLOSE BUTTON --- */
.ahc-close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}
.ahc-close-btn:hover { background: rgba(255,255,255,0.4); }

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    .ahc-alert-wrap.is-visible { max-height: 150px; }
    .ahc-alert-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 12px 16px !important;
    }
    .ahc-alert-right { width: 100%; justify-content: center; padding-bottom: 4px; }
    
    /* Close Button Top-Right */
    .ahc-close-btn {
        position: absolute;
        top: 8px;
        right: 8px;
        background: transparent;
    }
}

/* ========================================= */
/* ENQUIRY SECTION WRAPPER */
/* ========================================= */

.cd-enquiry-panel {
  padding: 10px 15px;
  background: linear-gradient(180deg, #f8faff, #ffffff);
  border-radius:15px;
}

/* Center container */
.cd-enquiry-panel .cd-container {
  display: flex;
  justify-content: center;
}

/* ========================================= */
/* ENQUIRY CARD – SAAS STYLE */
/* ========================================= */

.ahc-enquiry-card {
  width: 100%;
  max-width: 420px;               /* 👈 IMPORTANT: not full width */
  background: #ffffff;
  border-radius: 14px;
  padding: 20px 20px 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border: 1px solid #eef1f6;
}

/* ========================================= */
/* HEADER – LOGO + COLLEGE NAME INLINE */
/* ========================================= */

.ahc-enquiry-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.ahc-enquiry-head img {
  max-height: 40px;
  width: auto;
  flex-shrink: 0;
}

.ahc-enquiry-head h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
  color: #111827;
}

/* Subtext */
.ahc-enquiry-sub {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 14px;
}

/* ========================================= */
/* FORM FIELDS */
/* ========================================= */

.ahc-enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ahc-enquiry-form input,
.ahc-enquiry-form textarea {
  width: 100%;
  padding: 11px 13px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #dbe0ea;
  background: #ffffff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.ahc-enquiry-form textarea {
  min-height: 80px;
  resize: vertical;
}

/* Focus */
.ahc-enquiry-form input:focus,
.ahc-enquiry-form textarea:focus {
  border-color: #4b5cff;
  box-shadow: 0 0 0 2px rgba(75,92,255,.12);
}

/* Placeholder */
.ahc-enquiry-form ::placeholder {
  color: #9ca3af;
}

/* ========================================= */
/* BUTTONS */
/* ========================================= */

.ahc-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}



/* Hover */
.cd-btn-outline:hover {
  background: #f4f6ff;
}

.cd-btn-apply:hover {
  filter: brightness(1.05);
}

/* ========================================= */
/* SUCCESS / CONTACT CARD */
/* ========================================= */

.ahc-contact-card {
  text-align: center;
  padding: 16px 12px;
}

.ahc-contact-card img {
  max-height: 44px;
  margin-bottom: 6px;
}

.ahc-contact-card h3 {
  font-size: 16px;
  margin: 6px 0;
}

.ahc-contact-card p {
  font-size: 14px;
  margin: 4px 0;
}

/* ========================================= */
/* MOBILE OPTIMIZATION */
/* ========================================= */

@media (max-width: 480px) {
  .ahc-enquiry-card {
    max-width: 100%;
    padding: 18px 16px;
  }

  .ahc-btn-row {
    grid-template-columns: 1fr;
  }
}
