/* =========================================
   CFIA - Centre for International Affairs
   Thiagarajar College of Engineering
   Gavias Edupia Theme
========================================= */

/* Main wrapper */
.cfia-page {
    --cfia-maroon: #4b1012;
    --cfia-red: #8b171b;
    --cfia-gold: #c7a04a;
    --cfia-cream: #f5f0e8;
    --cfia-text: #39302d;
    --cfia-muted: #756d65;

    width: 100%;
    color: var(--cfia-text);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.75;
    overflow: hidden;
}

.cfia-page *,
.cfia-page *::before,
.cfia-page *::after {
    box-sizing: border-box;
}

.cfia-page h2,
.cfia-page h3,
.cfia-page h4,
.cfia-page p {
    margin-top: 0;
}

.cfia-page h2 {
    color: var(--cfia-maroon);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.cfia-page h3 {
    color: var(--cfia-maroon);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.cfia-page p {
    margin-bottom: 12px;
}

.cfia-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.cfia-eyebrow {
    display: inline-block;
    color: var(--cfia-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.5;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* =========================================
   ABOUT THE CENTRE
========================================= */

.cfia-about {
    background: #ffffff;
    padding: 65px 0 70px;
}

.cfia-about p {
    max-width: 950px;
    color: #5e5751;
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 0;
}

/* =========================================
   VISION AND MISSION
========================================= */

.cfia-vision-mission {
    background: var(--cfia-maroon);
    color: #ffffff;
    padding: 65px 0;
}

.cfia-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
}

.cfia-vision-mission h2 {
    color: #ffffff;
    font-size: 27px;
    margin-bottom: 16px;
}

.cfia-vision-mission .cfia-eyebrow {
    color: var(--cfia-gold);
}

.cfia-vision-mission p,
.cfia-vision-mission li {
    color: #eee3df;
    font-size: 14px;
    line-height: 1.85;
}

.cfia-vision-mission p {
    margin-bottom: 12px;
}

.cfia-mission ol {
    padding-left: 22px;
    margin: 12px 0 0;
}

.cfia-mission li {
    padding-left: 4px;
    margin-bottom: 12px;
}

/* =========================================
   PEOPLE SECTION
========================================= */

.cfia-people {
    background: var(--cfia-cream);
    padding: 65px 0 70px;
}

.cfia-people > .cfia-container > h2 {
    margin-bottom: 28px;
}

.cfia-leadership {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 38px;
}

.cfia-leader-card {
    background: #ffffff;
    border: 1px solid #e8ded5;
    border-top: 4px solid var(--cfia-red);
    border-radius: 9px;
    padding: 25px 22px;
    min-height: 135px;
    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

.cfia-head-card {
    background: #761b1e;
    border: 1px solid #761b1e;
    border-top: 4px solid var(--cfia-gold);
}

.cfia-leader-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(60, 20, 15, 0.10);
}

.cfia-card-label {
    display: block;
    color: var(--cfia-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
    margin-bottom: 7px;
}

.cfia-leader-card h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.cfia-leader-card p {
    color: var(--cfia-muted);
    font-size: 13px;
    margin-bottom: 0;
}

.cfia-head-card h3 {
    color: #ffffff;
}

.cfia-head-card p {
    color: #f0dddd;
}

/* Department Coordinators */

.cfia-spocs > h3 {
    margin-bottom: 5px;
}

.cfia-spocs > p {
    color: var(--cfia-muted);
    font-size: 13px;
    margin-bottom: 18px;
}

.cfia-spoc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #ffffff;
    border: 1px solid #eee7df;
    border-radius: 9px;
    overflow: hidden;
}

.cfia-spoc-item {
    min-width: 0;
    padding: 17px 14px;
    border-right: 1px solid #eee7df;
    border-bottom: 1px solid #eee7df;
    transition: background 0.2s ease;
}

.cfia-spoc-item:hover {
    background: #fbf7f1;
}

.cfia-spoc-item:nth-child(4n) {
    border-right: none;
}

.cfia-spoc-item h4 {
    color: #352b27;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 4px;
}

.cfia-spoc-item p {
    color: var(--cfia-muted);
    font-size: 12px;
    line-height: 1.55;
    margin-bottom: 0;
}

/* =========================================
   INTERNATIONAL PARTNERSHIPS
========================================= */

.cfia-partnerships {
    background: #ffffff;
    padding: 65px 0;
}

.cfia-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.cfia-section-heading h2 {
    margin-bottom: 0;
}

.cfia-text-link {
    color: var(--cfia-red);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cfia-text-link:hover {
    color: var(--cfia-gold);
    text-decoration: underline;
}

/* MoU Table */

.cfia-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #eee7df;
    border-radius: 8px;
}

.cfia-mou-table {
    width: 100%;
    min-width: 750px;
    border-collapse: collapse;
    margin: 0;
    background: #ffffff;
}

.cfia-mou-table thead {
    background: var(--cfia-red);
}

.cfia-mou-table th {
    background: var(--cfia-red);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 15px 12px;
    text-align: left;
    border: none;
}

.cfia-mou-table td {
    color: #514943;
    font-size: 13px;
    padding: 14px 12px;
    border-bottom: 1px solid #eeeae6;
    vertical-align: top;
}

.cfia-mou-table tbody tr:last-child td {
    border-bottom: none;
}

.cfia-mou-table tbody tr:hover {
    background: #fbf7f1;
}

/* =========================================
   EVENTS SECTION
========================================= */

.cfia-events {
    background: var(--cfia-maroon);
    color: #ffffff;
    padding: 35px 0;
}

.cfia-events-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.cfia-events h2 {
    color: #ffffff;
    font-size: 27px;
    margin-bottom: 4px;
}

.cfia-events p {
    color: #eadbd6;
    font-size: 13px;
    margin-bottom: 0;
}

/* Common Buttons */

.cfia-button {
    display: inline-block;
    background: var(--cfia-gold);
    color: #351b12 !important;
    border: 1px solid var(--cfia-gold);
    border-radius: 5px;
    padding: 11px 22px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none !important;
    text-align: center;
    transition: all 0.25s ease;
}

.cfia-button:hover {
    background: #ffffff;
    color: var(--cfia-maroon) !important;
    border-color: #ffffff;
}

/* =========================================
   CONTACT SECTION
========================================= */

.cfia-contact {
    background: #ffffff;
    padding: 65px 0;
}

.cfia-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 55px;
}

.cfia-contact-details h2 {
    margin-bottom: 15px;
}

.cfia-contact-details p {
    color: #5f5751;
    font-size: 14px;
    line-height: 1.85;
    margin-bottom: 20px;
}

.cfia-contact-details strong {
    color: #342a26;
}

.cfia-contact-details a {
    color: var(--cfia-red);
    text-decoration: none;
}

.cfia-contact-details a:hover {
    text-decoration: underline;
}

.cfia-contact-cta {
    background: var(--cfia-cream);
    border-radius: 9px;
    padding: 35px;
    border: 1px solid #eee5d9;
}

.cfia-contact-cta h3 {
    font-size: 21px;
    margin-bottom: 12px;
}

.cfia-contact-cta p {
    color: #6d6259;
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* =========================================
   RESPONSIVE DESIGN - TABLET
========================================= */

@media (max-width: 991px) {

    .cfia-container {
        max-width: 100%;
        padding-left: 25px;
        padding-right: 25px;
    }

    .cfia-two-column {
        gap: 35px;
    }

    .cfia-spoc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cfia-spoc-item:nth-child(4n) {
        border-right: 1px solid #eee7df;
    }

    .cfia-spoc-item:nth-child(2n) {
        border-right: none;
    }

    .cfia-contact-grid {
        gap: 30px;
    }
}

/* =========================================
   RESPONSIVE DESIGN - MOBILE
========================================= */

@media (max-width: 767px) {

    .cfia-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .cfia-page h2 {
        font-size: 25px;
    }

    .cfia-page h3 {
        font-size: 19px;
    }

    .cfia-about {
        padding: 42px 0;
    }

    .cfia-vision-mission {
        padding: 42px 0;
    }

    .cfia-two-column {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cfia-people {
        padding: 42px 0;
    }

    .cfia-leadership {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cfia-leader-card {
        padding: 22px 18px;
    }

    .cfia-spoc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cfia-spoc-item {
        padding: 14px 10px;
    }

    .cfia-partnerships {
        padding: 42px 0;
    }

    .cfia-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .cfia-events {
        padding: 30px 0;
    }

    .cfia-events-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .cfia-contact {
        padding: 42px 0;
    }

    .cfia-contact-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .cfia-contact-cta {
        padding: 25px 20px;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 400px) {

    .cfia-spoc-grid {
        grid-template-columns: 1fr;
    }

    .cfia-spoc-item,
    .cfia-spoc-item:nth-child(2n),
    .cfia-spoc-item:nth-child(4n) {
        border-right: none;
    }

    .cfia-page h2 {
        font-size: 23px;
    }

}


/* Full-width reset to prevent parent container clipping */
.tce-cfia-footer,
.tce-cfia-footer * {
  box-sizing: border-box;
}
#footer{
      background-color: #2a0a0b;
}


.tce-cfia-footer {
  display: block;
  width: 100%;
  min-width: 100%;
  margin: 0;
  padding: 0;
  background-color: #2a0a0b;
  color: #a08469 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  clear: both;
}

.tce-cfia-footer__inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px 36px;
}

/* 4-Column Desktop Layout */
.tce-cfia-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

/* Brand & Address */
.tce-cfia-footer__logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.tce-cfia-footer__badge {
  background-color: #8c1d18;
  color: #a08469;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.tce-cfia-footer__title {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.tce-cfia-footer__title strong {
  color: #a08469 !important;
  font-size: 16px;
  font-weight: 700;
}

.tce-cfia-footer__title span {
  color: #a08469 !important;
  font-size: 13px;
}

.tce-cfia-footer__address {
  font-style: normal;
  color: #a08469 !important;
  line-height: 1.8;
  margin: 0;
}

.tce-cfia-footer__address a {
  color: #a08469 !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tce-cfia-footer__address a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

/* Column Headings & Lists */
.tce-cfia-footer__heading {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px 0;
  padding: 0;
}

.tce-cfia-footer__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tce-cfia-footer__list li {
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
}

.tce-cfia-footer__list a {
  color: #a08469 !important;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}

.tce-cfia-footer__list a:hover {
  color: #ffffff !important;
  transform: translateX(4px);
}

/* Bottom Bar */
.tce-cfia-footer__bottom {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.tce-cfia-footer__bottom-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.tce-cfia-footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.tce-cfia-footer__bottom-links a {
  color: #a08469 !important;
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s ease;
}

.tce-cfia-footer__bottom-links a:hover {
  color: #ffffff !important;
}

.tce-cfia-footer__copy {
  margin: 0;
  color: #a08469 !important;
  font-size: 13.5px;
}

/* =========================================
   RESPONSIVE STYLES (Tablet & Mobile)
   ========================================= */

/* Tablet View (<= 992px): 2 Columns */
@media (max-width: 992px) {
  .tce-cfia-footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
}

/* Mobile View (<= 600px): 1 Column Stacked */
@media (max-width: 600px) {
  .tce-cfia-footer__inner {
    padding: 36px 20px 28px;
  }

  .tce-cfia-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tce-cfia-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 12px;
  }

  .tce-cfia-footer__bottom-links {
    gap: 12px 18px;
  }
}

.we-mega-menu-ul.nav.nav-tabs {
    display: flex !important;
    align-items: center;
    width: 100%;
    justify-content: flex-start !important;
}

.we-mega-menu-ul.nav.nav-tabs > li {
    float: none !important;
    order: 0 !important;
}

.we-mega-menu-ul.nav.nav-tabs > li:last-child {
    margin-left: auto !important;
    order: 1 !important;
}

/* Font Awesome icon */
.we-mega-menu-ul.nav.nav-tabs > li:last-child > a::before {
    content: "\f104" !important;
    font-family: FontAwesome !important;
    font-weight: bolder !important;
    font-style: normal !important;
    color: #ffffff !important;
    display: inline-block !important;
    margin-right: 8px !important;
}