/* ============================================================
   Degree Desire - Custom Bootstrap 5.3 Styles
   Matching the live Divi-based site at degreedesire.com
   ============================================================ */

:root {
  --primary-color: #2ea3f2;
  --accent-color: #2ea3f2;
  --hero-blue: #055afe;
  --text-color: #666;
  --heading-color: #2a2f31;
  --dark-text: #2a2f31;
  --why-choose-blue: #055afe;
  --light-bg: #f5f7fa;
  --card-bg: #ffffff;
  --font-primary: 'Open Sans', Arial, sans-serif;
  --font-heading: 'Source Sans Pro', 'Open Sans', Arial, sans-serif;
  --section-padding: 60px 0;
}

/* ===== Base Typography ===== */
body {
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--text-color);
  line-height: 1.7em;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-weight: 500;
  line-height: 1.2;
  font-family: var(--font-primary);
}

h1 { font-size: 30px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

a { color: var(--primary-color); text-decoration: none; }
a:hover { color: #1a8ad4; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ===== Navbar ===== */
.navbar {
  background: #fff !important;
  box-shadow: 0 1px 0 rgba(0,0,0,.1);
  padding: 0;
  min-height: 80px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 99999;
}

.navbar .container {
  position: relative;
  display: flex;
  align-items: center;
}

.navbar-brand {
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  max-height: 54%;
  width: auto;
  height: 65px;
  transition: all 0.4s ease-in-out;
}

#navbarNav .navbar-nav {
  align-items: center;
}

.navbar .nav-link {
  color: rgba(0,0,0,0.6) !important;
  font-size: 14px;
  font-weight: 600;
  padding: 33px 12px !important;
  transition: opacity 0.4s ease-in-out;
  position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  opacity: 0.7;
  color: var(--primary-color) !important;
}

.navbar .nav-link.active {
  color: var(--primary-color) !important;
}

/* Dropdown */
.dropdown-menu {
  border: none;
  border-top: 3px solid var(--primary-color);
  border-radius: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
  padding: 20px 0;
  min-width: 240px;
}

.dropdown-item {
  font-size: 14px;
  padding: 6px 20px;
  color: #666;
  transition: opacity 0.2s ease-in-out;
}

.dropdown-item:hover {
  background-color: rgba(0,0,0,.03);
  opacity: 0.7;
}

/* Search icon in nav */
.nav-search-icon {
  color: rgba(0,0,0,0.6);
  font-size: 17px;
  cursor: pointer;
  padding: 0 0 0 22px;
  margin-top: 3px;
}

/* Mobile nav toggle */
.navbar-toggler {
  border: none;
  padding: 24px 0;
  font-size: 32px;
  color: var(--primary-color);
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ===== Hero Section ===== */
.hero-section {
  padding: 2vw 0;
  position: relative;
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
  background-color: #f5f7fa;
}

.hero-section h1 {
  font-size: 72px;
  font-weight: 700;
  color: var(--dark-text);
  line-height: 1.2;
  font-family: var(--font-primary);
  margin-bottom: 0.5rem;
}

.hero-section h3 {
  color: var(--dark-text);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  font-family: var(--font-primary);
}

.btn-hero {
  display: inline-block;
  color: #FFFFFF !important;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-family: 'Source Sans Pro', 'Open Sans', Arial, sans-serif !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  background-color: #055afe;
  padding: 16px 24px;
  transition: all 300ms ease 0ms;
  text-decoration: none !important;
}

.btn-hero:hover {
  background-color: #0449d4;
  color: #fff !important;
}

.hero-image-wrap {
  border-radius: 500px;
  border: 24px solid #fff;
  overflow: hidden;
  max-width: 400px;
  display: inline-block;
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Section Title ===== */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 32px;
  color: var(--heading-color);
  margin-bottom: 10px;
  font-weight: 500;
}

.section-title p {
  font-size: 16px;
  color: var(--text-color);
}

/* ===== What We Do Section ===== */
.section-what-we-do {
  padding: var(--section-padding);
  background: #fff;
}

.section-what-we-do h2.section-heading {
  font-size: 48px;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--dark-text);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.what-we-do-image img {
  width: 100%;
  height: auto;
}

.what-we-do-list {
  padding: 0;
}

.what-we-do-list li {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-color);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.what-we-do-list li i {
  color: var(--primary-color);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== Why Choose Us Section ===== */
.section-why-choose {
  padding: var(--section-padding);
  background: var(--why-choose-blue);
  color: #fff;
}

.section-why-choose .section-title h2 {
  color: #fff;
}

.choose-card {
  text-align: center;
  padding: 40px 20px;
  color: #fff;
}

.choose-card .choose-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.choose-card h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}

.choose-card p {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== Study Destinations Section ===== */
.section-destinations {
  padding: var(--section-padding);
  background: var(--light-bg);
}

.destination-flag-link {
  text-decoration: none;
  display: block;
}

.destination-flag-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.destination-flag-card:hover {
  background: #fff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.destination-flag-card .fis {
  font-size: 72px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.destination-flag-card:hover .fis {
  transform: scale(1.1);
}

.destination-flag-card h5 {
  color: var(--heading-color);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  text-align: center;
}

/* ===== Page Hero (Inner Pages) ===== */
.page-hero {
  background: linear-gradient(135deg, #0d1b3e 0%, #1a3a6b 100%);
  padding: 120px 0 60px;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  font-size: 36px;
  font-weight: 700;
}

/* ===== Content Sections ===== */
.content-section {
  padding: 60px 0;
}

.content-section h2 {
  margin-bottom: 20px;
}

.content-section ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 1em;
}

.content-section ul li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}

/* ===== Why Study Section ===== */
.why-study-section {
  background: var(--why-choose-blue);
  color: #fff;
  padding: 60px 0;
}

.why-study-section h2 {
  color: #fff;
}

.why-study-section ul {
  list-style: none;
  padding: 0;
}

.why-study-section ul li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  line-height: 1.7;
}

.why-study-section ul li::before {
  content: '\2713';
  color: #4CAF50;
  margin-right: 10px;
  font-weight: bold;
}

/* ===== Services Detail ===== */
.service-detail {
  padding: 60px 0;
}

.service-detail:nth-child(even) {
  background: var(--light-bg);
}

.service-detail img {
  border-radius: 8px;
  width: 100%;
}

.service-detail h2 {
  margin-bottom: 15px;
}

.service-detail p {
  line-height: 1.8;
  font-size: 14px;
}

/* ===== Contact Page ===== */
.contact-page-section {
  padding: 60px 0;
  background: var(--light-bg);
}

.contact-page-section h2 {
  font-size: 26px;
  font-weight: 600;
  color: var(--heading-color);
}

/* Department contact cards */
.contact-dept-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.contact-dept-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.contact-dept-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.contact-dept-card .contact-phone {
  margin-bottom: 5px;
  font-size: 14px;
}

.contact-dept-card .contact-phone a {
  color: var(--heading-color);
  font-weight: 600;
  text-decoration: none;
}

.contact-dept-card .contact-phone a:hover {
  color: var(--primary-color);
}

.contact-dept-card .contact-email {
  margin-bottom: 0;
  font-size: 14px;
}

.contact-dept-card .contact-email a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-dept-card .contact-email a:hover {
  text-decoration: underline;
}

/* Contact form */
.contact-form .form-control {
  background: #eee;
  border: none;
  border-radius: 0;
  padding: 16px;
  font-size: 14px;
  color: #999;
}

.contact-form .form-control:focus {
  box-shadow: none;
  border-color: #2d3940;
  color: #3e3e3e;
}

.btn-contact-submit {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 3px;
  padding: 0.3em 1em;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-contact-submit:hover {
  background: rgba(0,0,0,.05);
}

/* ===== CTA Section ===== */
.section-cta {
  padding: 80px 0;
  background: #fff;
  text-align: center;
}

.section-cta h2 {
  font-size: 32px;
  font-weight: 600;
  color: var(--heading-color);
  max-width: 800px;
  margin: 0 auto 1rem;
  line-height: 1.4;
}

.cta-subtitle {
  font-size: 16px;
  color: var(--text-color);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.btn-cta {
  display: inline-block;
  color: #FFFFFF !important;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-family: 'Source Sans Pro', 'Open Sans', Arial, sans-serif !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  background-color: #055afe;
  padding: 16px 32px;
  transition: all 300ms ease 0ms;
  text-decoration: none !important;
}

.btn-cta:hover {
  background-color: #0449d4;
  color: #fff !important;
  transform: translateY(-2px);
}

/* ===== Footer ===== */
.site-footer {
  background: #222222;
  color: rgba(255,255,255,0.7);
  padding: 50px 0;
}

.site-footer h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 600;
}

.site-footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.7;
}

/* Footer logo */
.footer-logo {
  max-width: 120px;
  height: auto;
  margin-bottom: 15px;
  display: block;
}

/* Footer tagline */
.footer-tagline {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Footer contact list */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.footer-contact li {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}

.footer-contact li i {
  width: 18px;
  text-align: center;
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.footer-social .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social .social-icon:hover {
  background: var(--primary-color);
  color: #fff;
}

/* ===== Copyright Bar ===== */
.footer-copyright {
  background: #222222;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 14px 0;
}

.footer-copyright .container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.footer-copyright a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.footer-copyright a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ===== WhatsApp Widget ===== */
.wa-widget {
  position: fixed;
  bottom: 15px;
  right: 15px;
  z-index: 9999;
  cursor: pointer;
  animation: waFadeIn 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes waFadeIn {
  0% { opacity: 0; transform: scale(0); }
  100% { opacity: 1; transform: scale(1); }
}

.wa-widget svg {
  width: 50px;
  height: 50px;
  display: block;
}

/* ===== Animations ===== */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Services Page Cards ===== */
.service-card {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: 8px;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
  color: var(--primary-color);
}

.service-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--heading-color);
}

.service-card p {
  font-size: 14px;
  color: var(--text-color);
  line-height: 1.7;
}

/* ===== University Cards ===== */
.uni-logo-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  background: #111;
  cursor: default;
}

.uni-logo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.uni-logo-card img {
  width: 100% !important;
  height: 240px !important;
  object-fit: cover !important;
  display: block;
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0.92;
  max-width: none !important;
}

.uni-logo-card:hover img {
  transform: scale(1.05);
  opacity: 1;
}

.uni-logo-card p {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  text-align: center;
  letter-spacing: 0.01em;
}

/* ===== Section Light (for Services page) ===== */
.section-light {
  padding: var(--section-padding);
  background: #fff;
}

/* ===== About Page Sections ===== */

/* Intro section */
.about-intro {
  padding: 60px 0;
  background: #fff;
}

.about-intro p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 1.2em;
}

/* Vision section */
.about-vision {
  padding: 60px 0;
  background: #d6dfff;
}

.about-vision .col-lg-8 {
  max-width: 700px;
}

.about-vision h2 {
  font-family: 'Source Sans Pro', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 1.4em;
  color: #333;
  margin-bottom: 20px;
}

.vision-text {
  font-family: 'Source Sans Pro', 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8em;
  color: #242424;
}

/* Mission section */
.about-mission {
  padding: 60px 0;
  background: #fff;
}

.about-mission .col-lg-8 {
  max-width: 700px;
}

.about-mission h2 {
  font-family: 'Source Sans Pro', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 1.4em;
  color: #333;
  margin-bottom: 30px;
}

.mission-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mission-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-family: 'Source Sans Pro', 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8em;
  color: #242424;
}

.mission-list li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: #333;
  font-weight: bold;
  font-size: 20px;
}

/* Philosophy section */
.about-philosophy {
  padding: 60px 0;
  background: #fff;
}

.about-philosophy h2 {
  font-size: 32px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 20px;
}

.about-philosophy p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-color);
}

/* Why Degree Desire section (two-column) */
.about-why-desire {
  background: #2A2F31;
}

.why-desire-image {
  background-image: url(/assets/images/online-university-6.jpg);
  background-size: cover;
  background-position: center;
  min-height: 500px;
}

.why-desire-content {
  background: #2A2F31;
  padding: 8%;
}

.why-desire-card {
  border: 1px solid #000;
  border-radius: 30px;
  overflow: hidden;
  margin-bottom: 15px;
}

.why-desire-card h2 {
  font-family: 'Source Sans Pro', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2em;
  color: #fff;
  padding: 20px 20px 10px;
  margin-bottom: 0;
}

.why-desire-card p {
  font-family: 'Source Sans Pro', 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6em;
  color: #2a2f31;
  background: #fff;
  padding: 0 20px 20px;
  margin: 0;
}

/* Founders section */
.about-founders {
  padding: 60px 0;
  background: #fff;
}

.founders-intro {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 1.2em;
}

.founder-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--light-bg);
  border-radius: 12px;
  transition: all 0.3s ease;
  height: 100%;
}

.founder-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.founder-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 5px;
}

.founder-role {
  display: block;
  font-size: 14px;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.founder-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 1em;
  text-align: left;
}

.about-founders h3 {
  font-size: 26px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 15px;
}

/* ===== Buttons ===== */
.btn-outline-light:hover {
  border-color: transparent;
}

/* ===== Responsive ===== */
@media (max-width: 1199px) {
  .hero-section h1 {
    font-size: 54px;
  }
}

@media (max-width: 991px) {
  .navbar .nav-link {
    padding: 12px 0 !important;
  }
  
  .hero-section {
    padding: 80px 0 50px;
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: 40px;
  }
  
  .hero-section h3 {
    font-size: 20px;
  }
  
  .hero-image-wrap {
    margin-top: 30px;
    max-width: 300px;
    border-width: 16px;
  }
  
  .section-what-we-do h2.section-heading {
    font-size: 32px;
  }
  
  .page-hero {
    padding: 100px 0 50px;
  }
  
  .section-title h2 {
    font-size: 26px;
  }
}

@media (max-width: 767px) {
  .hero-section h1 {
    font-size: 30px;
  }
  
  .hero-section h3 {
    font-size: 18px;
  }
  
  .hero-image-wrap {
    max-width: 250px;
    border-width: 12px;
  }
  
  .section-what-we-do h2.section-heading {
    font-size: 26px;
  }
  
  .section-cta h2 {
    font-size: 24px;
  }
  
  .section-cta {
    padding: 50px 0;
  }
}

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 24px;
  }
  
  .hero-section h3 {
    font-size: 16px;
  }
}
