/* =========================================
   Upcoming Events Section Starts
========================================= */
.upcoming-events-section {
  background-color: #ffffff; /* Clean white background */
  padding: 100px 0;
  font-family: var(--font-body);
}

.upcoming-eyebrow {
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: block;
}

.upcoming-title {
  font-family: var(--font-heading);
  color: var(--dark-color);
  font-size: 3rem;
  margin-bottom: 15px;
}

.upcoming-subtitle {
  color: #6c757d;
  font-size: 1.05rem;
  margin: 0 auto 60px auto;
  line-height: 1.6;
}

/* =========================================
   Top Vertical Cards 
========================================= */
.uc-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05); /* Soft, premium drop shadow */
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.uc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

.uc-card-img {
  width: 100%;
  aspect-ratio: 16 / 9; /* Cinematic, wide aspect ratio */
  overflow: hidden;
}

.uc-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uc-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Pushes buttons to the bottom */
}

.uc-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--dark-color);
  line-height: 1.3;
  margin-bottom: 14px;
}

/* Meta Data (Date / Format) */
.uc-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.uc-card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #8c98a4;
  font-weight: 500;
}

.uc-card-meta svg {
  width: 14px;
  height: 14px;
  stroke: var(--primary-color); /* Gold icons */
}

/* Text & Descriptions */
.uc-card-desc {
  font-size: 0.85rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 20px;
}

.uc-card-audience {
  font-size: 0.8rem;
  color: #8c98a4;
  line-height: 1.5;
  margin-bottom: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 16px;
}

.uc-card-audience .text-dark {
  color: var(--dark-color) !important;
}

/* CSS Grid for perfectly aligned buttons */
.uc-card-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

/* Button Styles */
.uc-card-actions a {
  text-align: center;
  padding: 10px 0;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  background-color: var(--primary-teal)
}

.btn-uc-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  border: 1px solid var(--primary-color);
}
.btn-uc-primary:hover {
  background-color: var(--dark-color);
  border-color: var(--dark-color);
  color: #ffffff;
}

.btn-uc-secondary {
  background-color: #8c98a4; /* Slate Gray */
  color: #ffffff;
  border: 1px solid #8c98a4;
}
.btn-uc-secondary:hover {
  background-color: var(--dark-color);
  border-color: var(--dark-color);
  color: #ffffff;
}

.btn-uc-outline {
  background-color: transparent;
  color: #5c6773;
  border: 1px solid #d1d5da;
}
.btn-uc-outline:hover {
  background-color: var(--light-color);
  color: var(--dark-color);
  border-color: #a0aab5;
}

/* =========================================
   Bottom Horizontal Card 
========================================= */
.uc-horizontal-card {
  background-color: var(--light-color); /* Beige #f4f1ec */
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Default stack on mobile */
  margin-top: 15px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.uc-horizontal-img {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.uc-horizontal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uc-horizontal-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Vertically centers text next to image */
}

/* Desktop Horizontal Layout */
@media (min-width: 992px) {
  .uc-horizontal-card {
    flex-direction: row; /* Side by side on desktop */
  }

  .uc-horizontal-img {
    flex: 0 0 35%; /* Image takes up exactly 35% of the card */
    aspect-ratio: auto; /* Let it fill the height naturally */
  }

  .uc-horizontal-body {
    flex: 1; /* Content takes remaining space */
    padding: 40px 50px;
  }
}

@media (max-width: 991.98px) {
  .upcoming-events-section {
    padding: 80px 0;
  }
  .upcoming-title {
    font-size: 2.6rem;
  }
}

@media (max-width: 575.98px) {
  .upcoming-events-section {
    padding: 60px 0;
  }
  .upcoming-title {
    font-size: 2.2rem;
  }

  /* On tiny screens, stack the 3 buttons so they don't squish */
  .uc-card-actions {
    grid-template-columns: 1fr;
  }
}
/* Upcoming Events Section Ends */
/* --- Magazine Section css starts --- */

.magazine-section {
  background-color: var(--bg-light); /* Very faint purple-white tint from screenshot */
  padding: 100px 0;
  overflow: hidden;
}

/* Typography Overrides */
.mag-subtitle {
  color: var(--primary-teal);
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.mag-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-black);
  margin-bottom: 25px;
  letter-spacing: -0.5px;
}

.btn-mag-view {
  background-color: var(--primary-teal);
  color: #ffffff;
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 12px 30px;
  border-radius: 2px; /* Sharp corners like screenshot */
  border: none;
  transition: all 0.3s ease;
}

.btn-mag-view:hover {
  background-color: #e55f00;
  color: #ffffff;
}

/* Right Header Features */
.mag-features-title {
  font-family: "DM Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-black);
  margin-bottom: 20px;
}

.mag-feature-item {
  display: flex;
  align-items: center;
}

.mag-feature-icon {
  width: 32px;
  height: 32px;
  background-color: var(--primary-teal);
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-right: 15px;
}

.mag-feature-icon svg {
  width: 16px;
  height: 16px;
  color: #ffffff;
}

.mag-feature-text {
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  color: var(--text-grey);
  line-height: 1.5;
}

/* --- Interactive Tabs System --- */
.mag-tabs-wrapper {
  border-top: 1px dotted rgba(0, 2, 64, 0.2);
  border-bottom: 1px dotted rgba(0, 2, 64, 0.2);
  padding: 20px 0;
  margin-bottom: 30px;
}

.mag-tabs-list {
  display: flex;
  gap: 15px;
  flex-wrap: wrap; /* Prevents overflow on mobile */
  margin: 0;
  padding: 0;
}

.mag-tab-btn {
  background-color: #ffffff;
  color: var(--text-black);
  border: 1px solid #e0e0e0;
  padding: 8px 30px;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Specific styling for inactive tabs to match screenshot's underline */
.mag-tab-btn:not(.active) {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mag-tab-btn:hover:not(.active) {
  background-color: #f0f0f0;
}

.mag-tab-btn.active {
  background-color: var(--primary-teal) !important;
  color: #ffffff !important;
  border-color: var(--primary-teal) !important;
  text-decoration: none;
}

/* --- Card Architecture --- */
.mag-card {
  background-color: #ffffff;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 0; /* Perfectly sharp rectangular cards */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mag-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.mag-card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.mag-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mag-card:hover .mag-card-img-wrap img {
  transform: scale(1.05);
}

.mag-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Pushes the button perfectly to the bottom */
}

.mag-card-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-black);
  margin-bottom: 12px;
  line-height: 1.4;
}

.mag-card-meta {
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  color: #888888;
  margin-bottom: 25px;
}

.btn-mag-download {
  background-color: var(--primary-teal);
  color: #ffffff;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  border: none;
  padding: 12px;
  border-radius: 0; /* Sharp corners */
  transition: background-color 0.3s ease;
}

.btn-mag-download:hover {
  background-color: var(--primary-teal);
  color: #ffffff;
}

/* --- Responsive Layout Adjustments --- */
@media (max-width: 991px) {
  .magazine-section {
    padding: 80px 0;
  }
  .mag-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 576px) {
  .mag-title {
    font-size: 1.8rem;
  }
  .mag-tab-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
    width: 100%; /* Stacks beautifully on small screens */
  }
  .mag-card-content {
    padding: 20px 15px;
  }
}
/* --- Magazine Section css ends --- */
/* edition-section starts */
.edition-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #fffbfb 0%, #f9f7ff 100%);
}

.ed-heading {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #131313;
  margin-bottom: 10px;
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
  text-align: center;
}

.ed-subheading {
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  color: #555555;
  line-height: 1.5;
  text-align: center;
}

.ed-btn {
  background-color: var(--primary-teal) !important;
  color: #ffffff;
  border: none;
  padding: 10px 30px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 2px;
  margin-top: 5px;
}

.ed-btn:hover {
  background-color: #75159b;
}

.ed-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #131313;
  margin-bottom: 8px;
}

.ed-meta p {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  color: #333;
  line-height: 1.4;
}

.ed-meta .role {
  color: #666;
  margin-bottom: 15px;
}

.ed-excerpt-box {
  border-left: 2px dotted var(--primary-teal) !important;
  padding-left: 15px;
  margin-bottom: 15px;
}

.ed-excerpt-box p {
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  color: #444;
  line-height: 1.5;
  margin: 0;
}

.ed-card-horizontal {
  background-color: #ffffff;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.ed-img-wrapper-h {
  width: 100%;
  height: 250px; /* fixed height */
  overflow: hidden;
}

.ed-img-wrapper-h img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ed-content-h {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.ed-card-vertical {
  background-color: transparent;
  margin-bottom: 50px;
}

.ed-img-wrapper-v {
  width: 100%;
  height: 250px;
  margin-bottom: 20px;
  overflow: hidden;
}

.ed-img-wrapper-v img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ed-card-vertical:hover .ed-img-wrapper-v img {
  transform: scale(1.03);
}

.ed-content-v {
  padding: 0;
}

@media (max-width: 991px) {
  .ed-card-horizontal {
    height: auto;
  }

  .ed-img-wrapper-h {
    height: 250px;
  }

  .ed-list-sidebar {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .ed-card-vertical {
    margin-bottom: 0;
  }
}

@media (max-width: 767px) {
  .edition-section {
    padding: 60px 0;
  }

  .ed-heading {
    font-size: 2rem;
  }

  .ed-card-horizontal .row {
    flex-direction: column;
  }

  .ed-img-wrapper-h {
    height: 220px;
  }

  .ed-content-h {
    padding: 20px;
  }

  .ed-list-sidebar {
    grid-template-columns: 1fr;
  }
}
/* speakers-section starts */
.speakers-section {
  padding: 100px 0;
  background: #fff;
  overflow: hidden;
}

.speakers-section h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 2.8rem;
  color: #131313;
  line-height: 1.2;
}

.speaker-card {
  margin-bottom: 30px;
  text-align: left;
}

.speaker-image-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.speaker-image-wrapper .speaker-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* The dark overlay that appears on hover */
.speaker-image-wrapper .image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Container for the social media icons */
.speaker-social-icons {
  position: absolute;
  top: 57px;
  right: 20px;
  transform: translateY(-50%) translateX(15px); /* Start off-screen */
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 1;
  transition: all 0.3s ease;
}

.social-icon-link {
  width: 45px;
  height: 45px;
  background-color: var(--primary-teal) !important;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.social-icon-link:hover {
  background-color: #000;
  color: #ffffff;
}

/* HOVER EFFECT ACTIVATION */
.speaker-card:hover .speaker-img {
  transform: scale(1.05);
}

.speaker-card:hover .image-overlay {
  opacity: 1; /* Make overlay visible */
}

.speaker-card:hover .speaker-social-icons {
  transform: translateY(-50%) translateX(0);
}

.speaker-info .speaker-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #131313;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.speaker-info .speaker-name::before {
  content: "";
  width: 10px;
  height: 10px;
  background-color: var(--primary-teal) !important;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.speaker-info .speaker-title {
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  color: #666;
  padding-left: 20px; /* Aligns with the name text */
}

/* Responsive Design */
@media (max-width: 991px) {
  .speakers-section {
    padding: 80px 0;
  }
  .speaker-card {
    text-align: center;
  }
  .speaker-info .speaker-name {
    justify-content: center;
  }
  .speaker-info .speaker-title {
    padding-left: 0;
  }
}

@media (max-width: 575px) {
  .speakers-section {
    padding: 60px 0;
  }
  .speaker-image-wrapper .speaker-img {
    height: 350px;
  }
}
/* speakers-section ends */
/* --- Sponsors Section css starts --- */

.startup-sponsors-section {
  background-color: #f5f5f5;
  padding: 100px 0;
  overflow: hidden;
}

/* Header Typography */
.sc-title {
  color: #111111;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 2.5rem; /* Huge, commanding title */
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
}

/* Header Right - List Styling */
.sc-supported-title {
  font-family: "DM Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #444444;
}

.sc-list-item {
  display: flex;
  align-items: flex-start; /* Aligns text perfectly with top of icon if it spans two lines */
}

.sc-list-icon {
  width: 32px;
  height: 32px;
  background-color: var(--primary-teal);
  border-radius: 6px; /* Softly rounded corners */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-right: 14px;
}

.sc-list-icon svg {
  width: 16px;
  height: 16px;
  color: #ffffff;
}

.sc-list-text {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #222222;
  line-height: 1.4;
  margin-top: 4px; /* Optically centers the first line of text with the icon */
}

/* Primary Button (Orange) */
.btn-sc-primary {
  background-color: var(--primary-teal);
  color: #ffffff;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 3px;
  border: none;
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-sc-primary:hover {
  background-color: var(--primary-teal);
  color: #ffffff;
  transform: translateY(-2px);
}

/* --- The 4 Cards --- */
.sc-card {
  position: relative;
  background-color: #ffffff;
  border: 1px solid #f0f0f0; /* Very faint border to define the white area */
  border-radius: 2px;
  height: 320px; /* Uniform height ensuring grids line up perfectly */
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* The Magic Diagonal Background Layer */
.sc-card-slant {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--primary-teal);
  /* The Exact Polygon: Starts at 48% down on the left, goes to 16% down on the right */
  clip-path: polygon(0 48%, 100% 16%, 100% 100%, 0 100%);
  z-index: 1;
  border: 1px solid var(--primary-teal);
}

/* Content Container above the slant */
.sc-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Top Text Area */
.sc-card-title {
  padding: 22px 24px 0 24px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111111;
  line-height: 1.4;
  margin: 0;
}

/* Bottom Action Area 
   Takes up exactly the bottom 60% of the card, effectively 
   centering its contents perfectly inside the orange slant visually. */
.sc-action-area {
  margin-top: auto;
  height: 60%; 
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

/* Ghost Button Styling */
.btn-sc-ghost {
  background-color: transparent;
  color: #000000;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: 10px 22px;
  border: 1.5px solid #111111; /* Sharp black border */
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-sc-ghost:hover {
  background-color: var(--primary-teal);
  border: 1.5px solid #111111; /* Sharp black border */
  color: #ffffff;
}

/* Logos Wrapper inside Cards */
.sc-logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sc-logo-img {
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sc-logo-img svg {
  width: 100%;
  height: 100%;
  color: #ffffff;
}

.sc-logo-text {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1199px) {
  .sc-title {
    font-size: 3rem;
  }
}

@media (max-width: 991px) {
  .startup-sponsors-section {
    padding: 80px 0;
  }
  
  /* Reset Card Heights on tablet to accommodate aspect ratio change */
  .sc-card {
    height: 280px; 
  }
}

@media (max-width: 576px) {
  .startup-sponsors-section {
    padding: 60px 0;
  }
  .sc-title {
    font-size: 2.5rem;
  }
  .btn-sc-primary {
    width: 100%;
    text-align: center;
  }
}
/* --- Sponsors Section css ends --- */
