/* ===== Base & Variables ===== */
:root {
  --primary: #F7D544;
  --primary-dark: #E2A722;
  --accent: #ec4899;
  --gold: #F9D032;
  --dark: #0a0a0a;
  --font: 'Poppins', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); color: #333; overflow-x: hidden; }
img { max-width: 100%; height: auto; -webkit-user-drag: none; user-select: none; }
section { overflow: hidden; }

/* ===== Hero ===== */
.hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}
.hero-banner-container {
  width: 100%;
  position: relative;
}
.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero-banner-img {
    height: 60vh;
    object-position: left center; /* Adjusting focus to left where text/girl usually are */
  }
}

/* ===== Recommended By ===== */
.recommended-section { background: #fff; border-bottom: 1px solid #f0f0f0; }
.recommended-section .logo-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  filter: grayscale(1); opacity: 0.6; transition: all 0.3s;
}
.recommended-section .logo-item:hover { filter: grayscale(0); opacity: 1; }
.recommended-section .logo-item img { height: 40px; width: auto; max-width: 80px; object-fit: contain; }
.recommended-section .logo-item span { font-size: 0.7rem; color: #888; font-weight: 500; }
@media (min-width: 992px) { .recommended-section .logo-item img { height: 48px; max-width: 100px; } }

/* ===== Founders ===== */
.founders-section {
  background: var(--dark); position: relative;
}
.founders-section::before {
  content: ''; position: absolute; top: 0; left: 25%; width: 300px; height: 300px;
  background: rgba(247,213,68,0.15); border-radius: 50%; filter: blur(100px);
}
.founders-section .founder-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px; padding: 8px 16px; color: rgba(255,255,255,0.8);
  font-size: 0.85rem; font-weight: 500; margin-bottom: 1.5rem;
}
.founders-section .founder-badge .icon { color: var(--gold); }
.college-logo {
  width: 56px; height: 56px; background: #fff; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; padding: 8px;
  box-shadow: 0 4px 20px rgba(255,255,255,0.05); transition: transform 0.3s;
}
.college-logo:hover { transform: scale(1.1); }
.college-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.founder-card {
  background: linear-gradient(to bottom right, #1a1a1a, #0f0f0f);
  border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s; height: 100%;
}
.founder-card:hover { border-color: rgba(247,213,68,0.5); box-shadow: 0 20px 60px rgba(247,213,68,0.1); }
.founder-card .card-img { position: relative; height: 280px; overflow: hidden; }
.founder-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.founder-card:hover .card-img img { transform: scale(1.05); }
.founder-card .card-img .gradient { position: absolute; inset: 0; background: linear-gradient(to top, #1a1a1a, transparent); }
.founder-card .card-img .role-badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(247,213,68,0.9); backdrop-filter: blur(4px);
  border-radius: 50px; padding: 4px 12px; color: #1a1a2e; font-size: 0.75rem; font-weight: 600;
}
.founder-card .card-body { padding: 20px; margin-top: -40px; position: relative; }
.founder-card .card-body h4 { color: #fff; font-weight: 700; font-size: 1.25rem; margin-bottom: 4px; }
.founder-card .card-body .title { color: var(--primary); font-size: 0.85rem; font-weight: 500; margin-bottom: 12px; }
.founder-card .card-body .degree { color: #e5e5e5; font-size: 0.85rem; font-weight: 500; }
.founder-card .card-body .exp { color: #999; font-size: 0.75rem; line-height: 1.5; }

/* ===== Masters / Mentors ===== */
.masters-section { background: #f9fafb; }
.scroll-row {
  display: flex; gap: 16px; overflow-x: auto; cursor: grab;
  -ms-overflow-style: none; scrollbar-width: none; user-select: none;
}
.scroll-row::-webkit-scrollbar { display: none; }
.mentor-card {
  flex-shrink: 0; width: 280px; background: #fff; border-radius: 12px;
  padding: 12px 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0; display: flex; align-items: center; gap: 12px;
}
.mentor-card .mentor-img {
  width: 64px; height: 64px; border-radius: 10px; overflow: hidden;
  flex-shrink: 0; border: 3px solid var(--gold);
}
.mentor-card .mentor-img img { width: 100%; height: 100%; object-fit: cover; }
.mentor-card .mentor-info h5 { font-size: 0.9rem; font-weight: 700; color: #111; margin-bottom: 2px; }
.mentor-card .mentor-info .college { font-size: 0.75rem; color: #888; }
.mentor-card .mentor-info .company-logo { height: 18px; width: auto; max-width: 80px; object-fit: contain; margin-top: 4px; }

/* ===== Placements ===== */
.placements-section { background: linear-gradient(to bottom, #fff, #f9fafb, #fff); }
.placement-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(to right, rgba(247,213,68,0.15), rgba(247,213,68,0.05));
  color: #1a1a2e; font-size: 0.85rem; font-weight: 600;
  border-radius: 50px; padding: 8px 16px; border: 1px solid rgba(247,213,68,0.3);
}
.logo-card {
  flex-shrink: 0; width: 120px; height: 60px; background: #fff; border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06); border: 1px solid #f0f0f0;
  display: flex; align-items: center; justify-content: center; padding: 10px;
  transition: all 0.3s;
}
.logo-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); border-color: rgba(247,213,68,0.5); }
.logo-card img { max-height: 100%; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: all 0.3s; }
.logo-card:hover img { filter: grayscale(0); opacity: 1; }

/* ===== Comparison ===== */
.comparison-section { background: #fff; }
.quad-col {
  background: linear-gradient(135deg, #F7D544, #ec4899);
  border-radius: 16px; overflow: hidden; box-shadow: 0 10px 40px rgba(247,213,68,0.25);
  position: relative; z-index: 2;
}
.quad-col .col-header { padding: 16px; text-align: center; }
.quad-col .col-header h4 { color: #fff; font-weight: 700; font-size: 1.1rem; margin: 0; }
.quad-col .row-item {
  padding: 12px 20px; display: flex; align-items: center; gap: 12px; min-height: 56px;
}
.quad-col .row-item .icon-circle {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.quad-col .row-item .icon-circle i { color: #fff; font-size: 0.9rem; }
.quad-col .row-item span { color: #fff; font-size: 0.85rem; font-weight: 500; }
.trad-col {
  background: #fff; border-radius: 16px; overflow: hidden;
  border: 3px solid var(--gold); margin-left: -24px; margin-top: 10px; margin-bottom: 10px;
  position: relative; z-index: 1;
}
.trad-col .col-header { padding: 14px; text-align: center; }
.trad-col .col-header h4 { color: #666; font-weight: 700; font-size: 1rem; margin: 0; }
.trad-col .row-item {
  padding: 10px 16px; display: flex; align-items: center; gap: 10px; min-height: 52px;
}
.trad-col .row-item .icon-circle {
  width: 32px; height: 32px; border-radius: 50%; background: #f5f5f5;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.trad-col .row-item .icon-circle i { color: #bbb; font-size: 0.8rem; }
.trad-col .row-item span { color: #999; font-size: 0.8rem; }
.feature-labels .label-item {
  height: 56px; display: flex; align-items: center;
  border-bottom: 1px solid #eee; font-size: 0.85rem; font-weight: 600; color: #111;
}
.feature-labels .label-item:last-child { border-bottom: none; }
/* Mobile comparison - 2 column grid */
.comp-label-cell {
  min-height: 90px; padding: 12px 16px; display: flex; align-items: center;
  border-bottom: 1px solid #f0f0f0; font-size: 0.75rem; font-weight: 600;
  color: #111; line-height: 1.3;
}
.comp-label-cell:last-child { border-bottom: none; }
.comp-value-cell {
  min-height: 90px; padding: 12px 16px; display: flex; align-items: center; gap: 8px;
}
.comp-icon-circle-q {
  width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.comp-icon-circle-q i { color: #fff; font-size: 0.75rem; }
.comp-icon-circle-t {
  width: 28px; height: 28px; border-radius: 50%; background: #f5f5f5;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.comp-icon-circle-t i { color: #bbb; font-size: 0.75rem; }
.comp-value-panel { transition: all 0.3s ease; }
.comp-mobile-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 32px; height: 32px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.3s;
}
.comp-mobile-arrow i { font-size: 1rem; color: #666; }
.comp-arrow-left { left: 8px; }
.comp-arrow-right { right: 8px; }
.comp-mobile-arrow.dim { opacity: 0.4; }

/* ===== Great Outcomes / Deliver Results ===== */
.outcomes-section { background: #000; }
.outcomes-grid { display: flex; gap: 12px; height: 600px; }
.outcomes-grid .col-portrait { width: 30%; flex-shrink: 0; border-radius: 16px; overflow: hidden; }
.outcomes-grid .col-portrait img { width: 100%; height: 100%; object-fit: cover; }
.outcomes-grid .col-stack { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.outcomes-grid .col-stack .stack-item { flex: 1; border-radius: 16px; overflow: hidden; }
.outcomes-grid .col-stack .stack-item img { width: 100%; height: 100%; object-fit: cover; }
.outcomes-grid .col-side { width: 20%; display: flex; flex-direction: column; gap: 12px; }
.outcomes-grid .col-side .side-item { flex: 1; border-radius: 16px; overflow: hidden; }
.outcomes-grid .col-side .side-item img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) {
  .outcomes-grid { flex-direction: column; height: auto; }
  .outcomes-grid .col-portrait, .outcomes-grid .col-stack, .outcomes-grid .col-side { width: 100%; }
  .outcomes-grid .col-portrait { height: 300px; }
  .outcomes-grid .col-stack .stack-item { height: 200px; }
  .outcomes-grid .col-side { flex-direction: row; }
  .outcomes-grid .col-side .side-item { height: 200px; }
}

/* ===== Gallery / Campus ===== */
.gallery-section { background: var(--dark); }
.polaroid-track {
  display: flex; gap: 24px; overflow-x: auto; cursor: grab;
  padding: 32px 16px; user-select: none;
  -ms-overflow-style: none; scrollbar-width: none;
}
.polaroid-track::-webkit-scrollbar { display: none; }
.polaroid {
  flex-shrink: 0; background: #fff; padding: 12px 12px 48px;
  border-radius: 2px; box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  transition: all 0.3s; position: relative;
}
.polaroid:hover { transform: scale(1.05) rotate(0deg) !important; box-shadow: 0 25px 80px rgba(0,0,0,0.5); }
.polaroid img { width: 320px; height: 240px; object-fit: cover; display: block; }
.polaroid .caption {
  position: absolute; bottom: 12px; left: 0; right: 0;
  text-align: center; font-size: 0.85rem; font-weight: 500; color: #333;
}
@media (max-width: 768px) { .polaroid img { width: 260px; height: 190px; } }
.gallery-fade-left {
  position: absolute; left: 0; top: 0; bottom: 0; width: 80px;
  background: linear-gradient(to right, var(--dark), transparent); z-index: 5; pointer-events: none;
}
.gallery-fade-right {
  position: absolute; right: 0; top: 0; bottom: 0; width: 80px;
  background: linear-gradient(to left, var(--dark), transparent); z-index: 5; pointer-events: none;
}

/* ===== What Makes Quad Special ===== */
.special-section { background: #000; }
.special-slider {
  display: flex; overflow-x: auto; cursor: grab;
  -ms-overflow-style: none; scrollbar-width: none; user-select: none;
}
.special-slider::-webkit-scrollbar { display: none; }
.special-card {
  flex-shrink: 0; width: calc(100vw / 2); position: relative;
}
@media (min-width: 576px) { .special-card { width: calc(100vw / 3); } }
@media (min-width: 768px) { .special-card { width: calc(100vw / 4); } }
@media (min-width: 992px) { .special-card { width: calc(100vw / 5.5); } }
.special-card .card-inner {
  position: relative; height: 450px; overflow: hidden;
}
@media (min-width: 768px) { .special-card .card-inner { height: 500px; } }
@media (min-width: 992px) { .special-card .card-inner { height: 550px; } }
.special-card .card-inner img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.special-card:hover .card-inner img { transform: scale(1.05); }
.special-card .card-inner .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.6) 40%, transparent 100%);
}
.special-card .card-inner .text-content {
  position: absolute; top: 0; left: 0; right: 0; padding: 16px 8px;
  z-index: 2; text-align: center;
}
.special-card .card-inner .text-content h4 {
  color: #fff; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px;
}
@media (min-width: 768px) { .special-card .card-inner .text-content h4 { font-size: 1.1rem; } }
.special-card .card-inner .text-content p {
  color: rgba(255,255,255,0.85); font-size: 0.7rem; line-height: 1.5;
}
@media (min-width: 768px) { .special-card .card-inner .text-content p { font-size: 0.85rem; } }
.special-card .divider {
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, #000, rgba(255,255,255,0.5), #000); z-index: 3;
}
.special-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s;
  background: #fff; color: #000; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.special-nav-btn:hover { background: #f0f0f0; }
.special-nav-btn.left { left: 16px; }
.special-nav-btn.right { right: 16px; }

/* ===== Exposure Section ===== */
.exposure-section { background: var(--dark); }
.exposure-card {
  background: #1a1a1a; border-radius: 24px; overflow: hidden;
  border: 1px solid #2a2a2a; transition: all 0.3s; height: 100%;
  display: flex; flex-direction: column;
}
.exposure-card:hover { border-color: rgba(249,208,50,0.3); }
.exposure-card .card-img-wrap { padding: 12px 12px 0; }
.exposure-card .card-img-wrap .img-inner {
  border-radius: 12px; overflow: hidden; aspect-ratio: 4/3;
}
.exposure-card .card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s;
}
.exposure-card:hover .card-img-wrap img { transform: scale(1.1); }
.exposure-card .card-text {
  padding: 20px 20px 24px; text-align: center; flex: 1; display: flex;
  flex-direction: column;
}
.exposure-card .card-text h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.exposure-card .card-text p { color: #999; font-size: 0.8rem; line-height: 1.6; flex: 1; }

/* ===== Career Opportunities ===== */
.career-section { background: #faf8f5; }
.career-tabs {
  display: flex; border-radius: 12px; padding: 4px;
  background: #f0e6d3;
}
.career-tabs .tab-btn {
  flex: 1; padding: 10px 16px; border: none; background: transparent;
  font-weight: 600; font-size: 0.9rem; border-radius: 8px; cursor: pointer;
  transition: all 0.3s; color: #1a1a2e;
}
.career-tabs .tab-btn.active { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.career-point { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.career-point .star { color: var(--primary); font-size: 1rem; margin-top: 2px; }
.career-point span { font-size: 0.9rem; color: #555; }
.career-point strong { color: #111; }
.career-img { border-radius: 12px; overflow: hidden; max-height: 280px; }
.career-img img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Testimonials ===== */
.testimonials-section {
  background: #000; position: relative;
}
.testimonials-section .bg-blur {
  position: absolute; inset: 0;
  background: url('../images/life_at_quad/life_at_quad.jpg') center/cover no-repeat;
  opacity: 0.2; filter: blur(20px); transform: scale(1.1);
}
.testimonials-section .bg-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.testimonial-track {
  display: flex; transition: transform 0.5s ease;
}
.testimonial-card {
  flex-shrink: 0; padding: 0 12px;
}
.testimonial-card .card-inner {
  background: rgba(255,255,255,0.1); backdrop-filter: blur(20px);
  border-radius: 24px; padding: 28px; border: 1px solid rgba(255,255,255,0.1);
  height: 100%; display: flex; flex-direction: column;
}
.testimonial-card .card-inner:hover { background: rgba(255,255,255,0.15); }
.testimonial-card .quote-icon { color: var(--gold); font-size: 1.8rem; margin-bottom: 16px; opacity: 0.8; }
.testimonial-card .text { color: rgba(255,255,255,0.8); font-size: 0.9rem; line-height: 1.7; flex-grow: 1; font-weight: 300; }
.testimonial-card .divider { width: 100%; height: 1px; background: rgba(255,255,255,0.1); margin: 20px 0; }
.testimonial-card .author { display: flex; align-items: center; gap: 12px; }
.testimonial-card .author img {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(249,208,50,0.5);
}
.testimonial-card .author .name { color: #fff; font-weight: 600; font-size: 0.85rem; }
.testimonial-card .author .programme { color: var(--gold); font-size: 0.75rem; font-weight: 500; }
.testimonial-nav {
  display: flex; gap: 8px; justify-content: center; margin-top: 24px;
}
.testimonial-nav .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.3); border: none; cursor: pointer; transition: all 0.3s;
}
.testimonial-nav .dot.active { background: var(--gold); transform: scale(1.2); }

/* ===== Section Headers ===== */
.section-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 12px;
}
.section-title { font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.section-subtitle { color: #666; max-width: 600px; }
.text-primary-custom { color: #F7D544 !important; }
.text-gold { color: var(--gold) !important; }
.bg-gold { background-color: var(--gold) !important; }

/* ===== Logo Scroll Rows (Placements) ===== */
.logo-scroll-row {
  display: flex; gap: 12px; overflow-x: auto; cursor: grab;
  -ms-overflow-style: none; scrollbar-width: none; user-select: none;
  padding: 8px 0;
}
.logo-scroll-row::-webkit-scrollbar { display: none; }

/* ===== Utility ===== */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* ===== Responsive Fixes ===== */
@media (max-width: 576px) {
  .founder-card .card-img { height: 200px; }
  .founder-card .card-body { padding: 14px; margin-top: -30px; }
  .founder-card .card-body h4 { font-size: 1rem; }
  .founder-card .card-body .title { font-size: 0.75rem; margin-bottom: 8px; }
  .founder-card .card-body .degree { font-size: 0.75rem; }
  .founder-card .card-body .exp { font-size: 0.7rem; }
  .founder-card .card-img .role-badge { font-size: 0.65rem; padding: 3px 8px; }
  .college-logo { width: 44px; height: 44px; border-radius: 12px; padding: 6px; }
  .mentor-card { width: 240px; padding: 10px 12px; }
  .mentor-card .mentor-img { width: 52px; height: 52px; }
  .logo-card { width: 100px; height: 50px; padding: 8px; }
  .outcomes-grid .col-portrait { height: 250px; }
  .outcomes-grid .col-stack .stack-item { height: 160px; }
  .outcomes-grid .col-side .side-item { height: 160px; }
  .career-tabs .tab-btn { font-size: 0.75rem; padding: 8px 8px; }
  .testimonial-card .card-inner { padding: 20px; }
  .polaroid img { width: 220px; height: 160px; }
  .polaroid { padding: 8px 8px 40px; }
}
