/*
Theme Name: CCSIP
Theme URI:
Author: Easy Website Care
Author URI: https://wordpress.org
Description: A custom wordpress theme for CCSIP website.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ccsip
Tags: custom, responsive
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --main-font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;
  --unnamed-font-family-lexend: "Lexend", sans-serif;
  --unnamed-font-family-proxima-nova: "Source Sans Pro", sans-serif;

  --primary-color: #7a103c;
  --secondary-color: #fdb94d;
  --text-color-dark: #3e3e3e;
  --text-color-light: #f5f5f5;
  --background-color-light: #f9fafb;
  --background-color-dark: #374151;

  /* Fluid type scale using clamp(min, preferred, max) */
  --f1: clamp(2rem, 3.5vw + 1rem, 2.8125rem); /* H1 ~32px–45px */
  --f2: clamp(1.75rem, 3vw + 0.8rem, 2.441rem); /* H2 ~28px–39px */
  --f3: clamp(1.25rem, 2.5vw + 0.7rem, 1.953rem); /* H3 ~20px–31px */
  --f4: clamp(1.1rem, 2vw + 0.5rem, 1.563rem); /* H4 ~18–25px */
  --f5: clamp(1rem, 1.5vw + 0.4rem, 1.25rem); /* H5 ~16–20px */
  --f6: clamp(0.9rem, 1vw + 0.3rem, 1rem); /* body text ~14–16px */
}

.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.bg-primary {
  background-color: var(--primary-color);
}

.bg-secondary {
  background-color: var(--secondary-color);
}

/* General body styling for demonstration */
body {
  font-family: var(--unnamed-font-family-proxima-nova);
  color: var(--text-color-dark);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 20px;
  font-weight: 300;
}

h1 {
  font-family: var(--unnamed-font-family-lexend);
  font-size: var(--f1);
  font-weight: 800;
  color: var(--primary-color);
}

h2 {
  font-family: var(--unnamed-font-family-lexend);
  font-size: var(--f2);
  font-weight: 700;
  color: var(--primary-color);
}

h3 {
  font-family: var(--unnamed-font-family-lexend);
  font-size: var(--f3);
  font-weight: 600;
  color: var(--primary-color);
}

h4 {
  font-family: var(--unnamed-font-family-lexend);
  font-size: var(--f4);
  font-weight: 500;
  color: var(--primary-color);
}

h5 {
  font-family: var(--unnamed-font-family-lexend);
  font-size: var(--f5);
  font-weight: 400;
}

h6 {
  font-family: var(--unnamed-font-family-lexend);
  font-size: var(--f6);
  font-weight: 400;
}

p {
  font-family: var(--unnamed-font-family-proxima-nova);
  font-size: 20px;
  font-weight: 300;
}

.logo-img {
  max-width: 343px;
  height: 120px;
}

.bg-custom-footer {
  background-color: var(--primary-color);
}

.footer-link-hover:hover {
  color: var(--secondary-color) !important;
}

.nav-link:hover {
  color: var(--secondary-color) !important;
}

.offcanvas-body .nav-link:hover {
  background-color: var(--secondary-color);
  color: var(--background-color-light) !important;
}

.focus-ring:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  outline: 2px solid #0d6efd;
}

.navbar-nav .nav-item a {
  color: var(--primary-color);
}

.navbar-nav .nav-item:last-child .nav-link {
  border: 2px solid var(--primary-color);
  text-decoration: underline;
}

.hero-banner {
  background-color: var(--background-color-light);
}

.hero-banner h1 {
  color: var(--text-color-dark);
  font-weight: 500;
}

.img-banner-right {
  width: 1002px;
  height: 765px;
}

.banner-imgg {
  width: 436px;
  height: 549px;
}

.banner-bgg {
  width: 463px;
  height: 761px;
}

.our-mission {
  background-color: var(--primary-color);
}

.mission-row {
  padding: 166px 0 66px 0;
}

.our-mission h2,
.our-mission h3 {
  color: var(--secondary-color);
}

.our-focus p {
  color: var(--text-color-dark) !important;
}

.primary-btn {
  background-color: var(--primary-color);
  color: var(--background-color-light);
  border: none;
  padding: 12px 48px;
  font-size: 22px;
  border-radius: 80px;
  cursor: pointer;
  font-weight: 800;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.primary-btn:hover {
  background-color: var(--secondary-color);
  color: var(--background-color-light);
}

.beyond-research {
  background-color: var(--background-color-light);
}

.image-border {
  border-top: 10px;
  border-right: 10px;
  border-color: var(--secondary-color);
}

.beyond-research h2 {
  color: var(--primary-color);
}

.common-room {
  background-color: var(--secondary-color);
}

.common-h2 {
  color: var(--primary-color);
}

.hero-image {
  margin-bottom: -160px;
}

.hero-image-home {
  margin-bottom: -80px;
}

.image-container {
  position: relative;
  display: inline-block;
}

.image-container::before {
  content: "";
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  background-color: var(--secondary-color);
  z-index: 0;
}

.image-container img {
  position: relative;
  z-index: 1;
}

.inner-banner.resource-banner .row {
  max-width: 1600px;
  padding: 0px 0 66px 0;
}

@media (max-width: 768px) {
  .logo-img {
    max-width: 150px;
    height: 100px;
    object-fit: contain;
  }

  .container-fluid {
    padding: 0 20px;
  }

  p {
    font-size: 18px;
  }



  .inner-banner.resource-banner .row {
    padding: 0;
  }

  
}

@media (max-width: 1024px) {
    .hero-image {
    margin-bottom: 0px;
  }

    .mission-row {
    padding: 100px 0 0px 0;
  }

  .single-resource .mission-row {
     padding-top: 0;
  }
}

/* inner-banner css start here */
.inner-banner {
  background-color: var(--background-color-light);
  padding: 100px 0;
}

.inner-banner h1 {
  color: var(--primary-color);
}

/* inner-banner css end here */

/* insights page css start here  */
.card-body {
  background: var(--secondary-color);
}

.card-body h4,
.card-body h3,
p a,
.our-body h4,
.our-body h3 {
  color: var(--primary-color);
}

h3.card-title {
  font-family: var(--unnamed-font-family-lexend);
  font-size: var(--f4);
  font-weight: 500;
  color: var(--primary-color);
}

.card img {
  height: 300px;
  object-fit: cover;
  width: 100%;
}

/* insights page css end here  */

/* the common room css begin here  */
.speaker-card {
  margin-bottom: 3rem;
}

.speakers-row.row {
  padding: 0;
}

.speaker-image {
  background-color: #f2f2f2;
  width: 100%; /* container scales with parent */
  max-width: 270px; /* caps width on large screens */
  aspect-ratio: 270 / 330; /* maintains height/width ratio responsively */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.speaker-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.speaker-title {
  font-weight: bold;
  color: #660033;
  text-transform: uppercase;
}

.talk-title {
  font-weight: 900;
  margin-top: 0.25rem;
}

.abstract-title {
  color: #660033;
  font-weight: 600;
}

.abstract-text {
  color: #660033;
}

@media (max-width: 768px) {
  .speaker-image {
    background-color: #f2f2f2;
    width: 200px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* the common room css end here  */

.row {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

.navbar .container-fluid {
  max-width: 1440px;
}

.inner-banner.resource-banner {
  padding: 0;
}



.inner-banner .row {
  max-width: 1600px;
}

@media (max-width: 768px) {
  .row {
    padding-left: 15px;
    padding-right: 15px;
  }
}

.home-end-img {
  bottom: -6%;
  left: -6%;
  width: 450px;
}

@media (max-width: 1300px) {
  .home-end-img {
    display: none !important;
  }
}
