/* Core Two-Column Layout */
.section.two-column {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.academics-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* left-align everything on desktop */
  padding: 0;
  flex: 1 1 50%;
  box-sizing: border-box;
}

/* Image Column */
.image-col {
  padding: 0;
}

.image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Background Styling */
.dark-bg {
  background-color: #003366;
  color: #fff;
}

.light-bg {
  background-color: #EFEFEF;
  color: #000;
}

/* Text Content Styling */
.academics-text-wrapper {
  max-width: 600px;
  padding: 0 80px;
  margin: 0;
  text-align: left;
}

.left-text-content {
  max-width: 600px;
  padding: 0 80px;
  margin-left: auto;   /* pushes it inward from the right */
  margin-right: 0;
}

/* RIGHT SIDE (blue section) */
.dark-bg .academics-text-wrapper {
  margin-right: auto;
  margin-left: 0;
}

.section.two-column.light-bg .left-text-content {
  margin-left: auto !important;
  margin-right: 0 !important;
  padding-left: 60px !important;
  padding-right: 60px !important;
}

/* Headings */
.academics-text-wrapper h2,
.left-text-content h2 {
  text-align: left;
  margin-bottom: 20px;
}

/* Button Styling */
.column_button {
  display: inline-block;
  margin: 16px 12px 0 0;
  padding: 12px 24px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  text-align: center; /* centers text inside button */
  width: auto;
}

.column_button:hover {
  background-color: #0056b3;
}

.column_button.alt {
  background-color: #003366;
  color: #fff;
}

.column_button.alt:hover {
  background-color: #001f4d;
}

/* ✅ Button Wrapper: DESKTOP - LEFT aligned */
.button-wrapper {
  width: 100%;
  text-align: left; /* left-align buttons by default */
  margin-top: 16px;
}

/* Responsive Layout */
@media (max-width: 768px) {
  .section.two-column {
    flex-direction: column;
  }

  .academics-column {
    flex: 1 1 100%;
    padding: 20px;
    align-items: center; /* center text & button area horizontally */
  }

  .academics-text-wrapper,
  .left-text-content {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    text-align: left; /* keep paragraph text left-aligned */
  }

  .academics-column h2,
  .academics-column h3,
  .academics-text-wrapper h2,
  .academics-text-wrapper h3,
  .left-text-content h2,
  .left-text-content h3,
  .layout__region h2,
  .layout__region h3 {
    text-align: center !important;
    width: 100%;
    display: block;
    margin-top: 0;
    margin-bottom: 20px;
  }

  /* ✅ Button Wrapper: MOBILE - CENTER aligned */
  .button-wrapper {
    text-align: center;
  }

  .column_button {
    margin: 12px auto 0 auto; /* center the button block */
    text-align: center;
  }

  .image-col img {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: none;
  }
}

/* Utility Reset for Layout Sections */
.section.two-column,
.layout__region,
.block,
.paragraph,
.section,
.layout {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Cards Grid */
.academics-cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
}

.aos-card {
  display: block;
  text-decoration: none;
  color: inherit;
  flex: 1 1 300px;
  max-width: 350px;
}

/* AI Card */
.ai-card {
  position: relative;
  width: 250px;
  height: 350px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-direction: column;
}

.ai-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.ai-card-title {
  position: relative;
  z-index: 2;
  padding: 70px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Section Title */
.coll-ttl {
  text-align: center;
  margin-bottom: 40px;
}
