/* ===== PREMIUM PANEL ===== */

.premium-panel {
  background: #f8fafc;
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.overview-panel.premium-panel {
  background: #f8fafc; /* override */
}
/* Sections */
.section {
  margin-bottom: 12px;
}

.section-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
  color: #2c3e50;
}

.big-number {
  font-size: 26px;
  font-weight: bold;
  color: #1d4ed8;
}

.label {
  font-size: 12px;
  color: #777;
  margin-bottom: 8px;
}

.split {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.item {
  margin-bottom: 8px;
}

.numbers {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-top: 2px;
}

/* ===== MAIN LAYOUT ===== */

.achievement-container {
  display: flex;
  gap: 15px;
  align-items: flex-start;   /* 🔥 ADD THIS */
}

.overview-panel {
  width: 25%;
  background: #f5f6fa;
  padding: 15px;
  border-radius: 12px;
}

.achievement-content {
  width: 75%;
  min-width: 0;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  width: 100%;
  justify-content: start;   /* 🔥 VERY IMPORTANT */
}

.achievement-card-wrapper {
  width: 100%;
  min-width: 0;
}

/* ===== CERTIFICATE CARD ===== */

.certificate{
padding:15px;
text-align:center;
background:white;
border-radius:20px;
box-shadow:0 10px 30px rgba(13,110,253,.08);
display:flex;
flex-direction:column;
justify-content:center;
gap:6px;
transition:.3s;
height:100%;
}
.certificate{
  border:2px solid transparent;
  background:
    linear-gradient(#fff,#fff) padding-box,
    linear-gradient(135deg,#0d6efd,#12b886) border-box;
}
.certificate:hover {
  transform: translateY(-6px) scale(1.02);
}

/* ===== TEXT ===== */

.title {
  font-family: cursive;
  color: goldenrod;
  font-size: 16px;
  margin-bottom: 2px;
}

.quote {
  font-size: 13px;
  color: #555;
  margin: 2px 0;
  min-height: 25px; /* 🔥 fixed height */
}

.name {
  color: #d32f2f;
  font-weight: bold;
  margin-top: 4px;
  min-height: 30px;
  font-size: 18px;
}
.course-text {
  color: #000;        /* black */
  font-size: 13px;
  font-weight: 500;
  margin-left: 6px;
}

/* ===== IMAGE ===== */

.photo-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 1px auto;
}

.photo-wrapper .profile {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  top: 10px;
  left: 10px;
  object-fit: cover;
  border: 3px solid white;
}


/* ===== BADGE ===== */

.exam{
background:linear-gradient(
90deg,
#0d6efd,
#12b886
);
color:white;
padding:8px 14px;
border-radius:20px;
display:inline-block;
margin:auto;
}

.batch {
  margin-top: 2px;
  font-size: 12px;
  font-weight: bold;
  color: #333;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .achievement-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .achievement-container {
    flex-direction: column;
  }

  .overview-panel {
    width: 100%;
  }

  .achievement-content {
    width: 100%;
  }

  .achievement-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .achievement-grid {
    grid-template-columns: 1fr;
  }
}

/* 🔥 HEADER FIX (VERY IMPORTANT) */
.achievement-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}

/* dropdown thoda clean */
.achievement-header select {
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 14px;
}
@media (max-width: 500px) {
  .achievement-header {
    flex-direction: column;
    align-items: flex-start;
  }
}



/* ===== NEW ACHIEVEMENT DESIGN ===== */

.achievement-page{
max-width:1400px;
margin:auto;
padding:20px 12px;
}

.achievement-hero{
display:flex;
justify-content:space-between;
align-items:center;
padding:35px;
border-radius:24px;
background:linear-gradient(
135deg,
#0d6efd,
#12b886
);
color:white;
margin-bottom:20px;
}
.hero-content{
max-width:800px;
}
.hero-content h1{
font-size:40px;
margin-bottom:10px;
color:white;
}

.hero-subtitle{
font-size:18px;
font-weight:600;
margin-bottom:8px;
color:white;
}
.hero-description{
opacity:.95;
max-width:650px;
color:white;
}

.hero-icon{
font-size:80px;
display:block;
}

.year-filter-bar{
margin-bottom:20px;
}

.year-filter-bar select{
padding:10px 14px;
border-radius:12px;
border:1px solid #ddd;
}

.kpi-grid{
display:grid;
grid-template-columns:
repeat(auto-fit,minmax(220px,1fr));
gap:20px;
margin-bottom:20px;
}

.kpi-card{
background:white;
padding:25px;
border-radius:20px;
box-shadow:0 5px 18px rgba(0,0,0,.08);
text-align:center;
}

.kpi-card h3{
font-size:32px;
margin-bottom:8px;
}

.students-card h3{
color:#0d6efd;
}

.qualification-card h3{
color:#16a34a;
}

.employment-card h3{
color:#7c3aed;
}

.selection-card h3{
color:#ea580c;
}

.kpi-card p{
margin:0;
font-weight:600;
color:#555;
}

.achievement-note{
background:#fff8db;
padding:18px;
border-radius:16px;
margin-bottom:25px;
border-left:5px solid #f4b400;
}

.achievement-content-full{
width:100%;
}

.summary-section{
margin-bottom:35px;
}

.summary-section h2{
margin-bottom:18px;
color:#1f2937;
}

.summary-grid{
display:grid;
grid-template-columns:
repeat(auto-fit,minmax(180px,1fr));
gap:15px;
}

.summary-card{
background:white;
padding:20px;
border-radius:18px;
text-align:center;
box-shadow:0 4px 15px rgba(0,0,0,.06);
border:1px solid #e5e7eb;
}

.summary-card h3{
font-size:16px;
margin-bottom:12px;
color:#374151;
}

.summary-count{
font-size:32px;
font-weight:700;
color:#0d6efd;
margin-bottom:8px;
}

.summary-gender{
font-size:14px;
color:#666;
}

.summary-gender{
display:flex;
justify-content:center;
gap:8px;
margin-top:10px;
flex-wrap:wrap;
}

.boys-pill,
.girls-pill{
padding:6px 12px;
border-radius:20px;
font-size:13px;
font-weight:600;
}

.boys-pill{
background:#e0f2fe;
color:#0369a1;
}

.girls-pill{
background:#fce7f3;
color:#be185d;
}

.summary-row{
display:grid;
grid-template-columns:1fr 1fr;
gap:20px;
margin-bottom:30px;
}

.summary-panel{
background:white;
padding:18px;
border-radius:20px;
box-shadow:0 4px 15px rgba(0,0,0,.06);

max-height:620px;
overflow-y:auto;
}

.summary-panel h2{
margin-bottom:15px;
}

.summary-item{
display:flex;
justify-content:space-between;
align-items:center;
padding:12px 0;
border-bottom:1px solid #eee;
}

.summary-item:last-child{
border-bottom:none;
}

.summary-name{
font-weight:500;
}

.summary-total{
font-size:22px;
font-weight:700;
color:#0d6efd;
}

@media(max-width:900px){

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

}

.summary-breakup{
display:flex;
gap:8px;
margin-top:5px;
flex-wrap:wrap;
}

.boys-tag,
.girls-tag{
font-size:12px;
padding:3px 8px;
border-radius:20px;
font-weight:500;
}

.boys-tag{
background:#e0f2fe;
color:#0369a1;
}

.girls-tag{
background:#fce7f3;
color:#be185d;
}

.divider{
margin:0 8px;
color:#9ca3af;
}

.qualification-note-box{
margin-top:20px;
padding-top:15px;
border-top:1px solid #e5e7eb;
}

.qualification-note-box h4{
margin-bottom:8px;
font-size:15px;
}

.qualification-note-box p{
font-size:14px;
line-height:1.6;
color:#6b7280;
}

.qualification-note-box{
  margin-top:20px;
  padding:16px;
  background:#f8fafc;
  border-left:4px solid #2563eb;
  border-radius:10px;
}

.qualification-note-box h4{
  margin:0 0 8px;
  color:#1e293b;
}

.qualification-note-box p{
  margin:0;
  color:#475569;
  line-height:1.6;
}

.overview-header{
display:flex;
justify-content:space-between;
align-items:center;
margin:25px 0;
}

.overview-title h2{
margin:0;
padding-bottom:4px;
line-height:1.3;
font-size:30px;
font-weight:700;

background:linear-gradient(
90deg,
#0d6efd,
#12b886
);

-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
}

.achievement-section-header h2{
margin:0;
font-size:32px;
font-weight:700;
background:linear-gradient(90deg,#0d6efd,#12b886);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
}

.achievement-filter-section{
display:flex;
align-items:center;
gap:10px;
}

.filter-label{
font-size:15px;
font-weight:600;
color:#64748b;
white-space:nowrap;
}

.achievement-filter-section select{
min-width:220px;
padding:12px 14px;
border-radius:12px;
border:1px solid #d1d5db;
background:#fff;
font-size:15px;
font-weight:500;
}

@media(max-width:768px){

.overview-header{
flex-direction:column;
align-items:flex-start;
gap:12px;
}

.overview-title h2{
font-size:24px;
}

}

.achievement-section-header{
margin:35px 0 25px;
padding:18px 22px;

background:linear-gradient(
90deg,
#fffdf5,
#fff9e6
);

border-left:5px solid #f4b400;
border-radius:14px;
}

.achievement-section-header h2{
margin:0;
font-size:32px;
font-weight:700;
display:inline-block;

background:linear-gradient(
90deg,
#0d6efd,
#12b886
);

-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
background-clip:text;
}

.achievement-section-header p{
margin-top:8px;
font-size:15px;
color:#000;
font-weight:500;
}

.quote{
font-size:12px;
font-style:italic;
color:#64748b;
margin-top:8px;
}

.photo-wrapper .profile{
border:3px solid transparent;

background:
linear-gradient(#fff,#fff) padding-box,
linear-gradient(135deg,#0d6efd,#12b886) border-box;
}