/*
Theme Name: Ilearn-Ishare
Theme URI: http://localhost/ilearn-ishare
Author: Shreya
Description: A custom theme for personal journaling and sharing knowledge.
Version: 1.0
*/

:root {
  /* Typography */
  --font-family-base: "Nunito Sans", sans-serif;

  /* Heading Sizes */
  --h1-size: 48px;
  --h2-size: 40px;
  --h3-size: 32px;
  --h4-size: 24px;
  --h5-size: 20px;
  --h6-size: 16px;

  /* Heading Line Heights */
  --h1-line: 57px;
  --h2-line: 48px;
  --h3-line: 42px;
  --h4-line: 31px;
  --h5-line: 28px;
  --h6-line: 22px;

  /* Font Weights */
  --fw-bold: 700;
  --fw-semi: 600;
  --fw-regular: 400;
  --fw-medium: 500;

  /* Body Text */
  --body-regular-size: 18px;
  --body-small-size: 16px;
  --button-text-size: 16px;
  --input-label-size: 14px;

  /* Body Line Heights */
  --body-regular-line: 32px;
  --body-small-line: 24px;
  --button-text-line: 19px;
  --input-label-line: 20px;

  /* Primary Colors */
  --primary-100: #c63092;
  --primary-70: #d76eb3;
  --primary-50: #e397c8;
  --primary-30: #eec1de;
  --primary-10: #f9eaf4;

  /* Secondary Colors */
  --secondary-100: #c63092;
  --secondary-70: #79c6db;
  --secondary-50: #9fd7e3;
  --secondary-30: #c5e7ee;
  --secondary-10: #ecf7f9;

  /* Text Colors */
  --text-100: #1a1a1a;
  --text-70: #5f5f5f;
  --text-50: #8c8c8c;
  --text-30: #bababa;
  --text-10: #e8e8e8;

  /* Border & Background */
  --border-color: #e8e8e8;
  --background-color: #fef6f2;
}

/* ---------- TYPOGRAPHY ---------- */

h1 {
  font-family: var(--font-family-base);
  font-size: var(--h1-size);
  font-weight: var(--fw-bold);
  line-height: var(--h1-line);
  color: var(--text-100);
}

h2 {
  font-family: var(--font-family-base);
  font-size: var(--h2-size);
  font-weight: var(--fw-semi);
  line-height: var(--h2-line);
  color: var(--text-100);
}

h3 {
  font-family: var(--font-family-base);
  font-size: var(--h3-size);
  font-weight: var(--fw-semi);
  line-height: var(--h3-line);
  color: var(--text-100);
}

h4,
h5,
h6 {
  font-family: var(--font-family-base);
  font-weight: var(--fw-semi);
  color: var(--text-100);
}

h4 {
  font-size: var(--h4-size);
  line-height: var(--h4-line);
}
h5 {
  font-size: var(--h5-size);
  line-height: var(--h5-line);
}
h6 {
  font-size: var(--h6-size);
  line-height: var(--h6-line);
}

p {
  font-family: var(--font-family-base);
  font-size: var(--body-regular-size);
  font-weight: var(--fw-regular);
  line-height: var(--body-regular-line);
  color: var(--text-70);
}

/* ---------- BUTTONS ---------- */

button,
.btn {
  font-family: var(--font-family-base);
  font-size: var(--button-text-size);
  font-weight: var(--fw-medium);
  line-height: var(--button-text-line);
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-70);
  color: white;
}

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

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-70);
  color: var(--primary-70);
}

.btn-outline:hover {
  background-color: var(--primary-10);
}

/* ---------- LINKS ---------- */

a {
  font-family: var(--font-family-base);
  font-size: var(--body-small-size);
  font-weight: var(--fw-medium);
  color: var(--secondary-70);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-100) !important;
}

/* ---------- INPUT LABELS ---------- */

label {
  font-family: var(--font-family-base);
  font-size: var(--input-label-size);
  font-weight: var(--fw-medium);
  line-height: var(--input-label-line);
  color: var(--text-70);
}

/*--------- Header Navigation Bar ---------*/
/* Header Base */
/* ===========================
   MAIN HEADER STYLES
=========================== */
.main-header {
  position: sticky;
  top: 0;
  width: 90%;
  background-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1030;
  justify-self: center;
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  overflow: visible;
  transition: all 0.3s ease;
}

/* Front page: transparent header sits above banner */
body.home .main-header,
body.front-page .main-header {
  position: relative;
  left: auto;
  transform: none;
  margin: 0 auto;
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
}

.main-header .container {
  max-width: 100%;
  padding: 0 5%;
}

/* NAV LINKS */
.nav-link {
  position: relative;
  font-family: var(--font-family-base);
  font-size: 18px;
  font-weight: var(--fw-regular);
  color: var(--secondary-70);
  text-decoration: none;
  padding: 10px 15px;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-70);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: var(--primary-70);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

/* ACTIVE LINK */
.nav-link.active {
  color: var(--secondary-70);
  font-weight: var(--fw-bold);
}

.nav-link.active::after {
  width: 100%;
  background-color: var(--secondary-70);
}

/* Reset Bootstrap default blue hover */
.navbar-nav .nav-link.show,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:active {
  color: var(--primary-70);
}

/* ===========================
   DROPDOWN MENU STYLING
=========================== */

/* Wrapper */
.dropdown-menu {
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
  min-width: 220px;
  transition: all 0.25s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

/* Dropdown visible */
.dropdown:hover .dropdown-menu,
.nav-item.dropdown.show .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown items */
.dropdown-item {
  font-size: 16px;
  color: var(--text-100);
  font-weight: 500;
  padding: 10px 20px;
  transition: all 0.25s ease;
  border-radius: 6px;
}

.dropdown-item:hover {
  background-color: rgba(0, 0, 0, 0.03);
  color: var(--primary-70);
}

/* Divider */
.dropdown-divider {
  margin: 8px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Caret / arrow color fix */
.dropdown-toggle::after {
  margin-left: 6px;
  vertical-align: middle;
  border-top-color: var(--text-100);
  transition: transform 0.3s ease;
}

.dropdown.show .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Optional hover for dropdown parent link */
.dropdown:hover > .nav-link {
  color: var(--primary-70);
}

/* Mobile responsiveness */
@media (max-width: 992px) {
  .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
  }

  .dropdown-item {
    padding-left: 2rem;
  }
}

/* Logo Text */
.logo-text {
  line-height: 1.1;
}

.logo-text span {
  font-size: 12px;
  text-transform: lowercase;
}

/* Sticky Shadow Fade (optional) */
.main-header.sticky-top {
  transition: all 0.3s ease;
}

/* Hero Section */
.last-station-section {
  background-color: #f3f3f3;
}

.last-station-hero {
  min-height: 620px;
  margin-top: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.last-station-story-wrap {
  padding: 54px 0 74px;
}

.last-station-visual {
  position: relative;
  min-height: 360px;
}

.last-station-visual-box {
  width: min(400px, 100%);
  height: 360px;
  background: #d2d2d2;
  border-radius: 12px;
  overflow: hidden;
}

.last-station-visual-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.last-station-visual-shape {
  position: absolute;
  left: -92px;
  bottom: -108px;
  width: 252px;
  height: 252px;
  border-radius: 50%;
  border: 40px solid #ccebf4;
  border-right-color: transparent;
  border-top-color: transparent;
  transform: rotate(8deg);
}

/* Hero story: preserve ACF / editor formatting */
.last-station-story-wrap .hero-story-content {
  max-width: 640px;
  font-family: inherit;
  color: inherit;
}

.last-station-story-wrap .hero-story-content > *:first-child {
  margin-top: 0;
}

.last-station-story-wrap .hero-story-content > *:last-child {
  margin-bottom: 0;
}

/* Responsive text tuning */
@media (max-width: 768px) {
  .last-station-hero {
    min-height: 480px;
  }

  .last-station-story-wrap {
    padding: 34px 0 44px;
  }

  .last-station-visual {
    min-height: 220px;
  }

  .last-station-visual-box {
    height: 220px;
  }

  .last-station-visual-shape {
    width: 145px;
    height: 145px;
    border-width: 30px;
    left: -22px;
    bottom: -38px;
  }
}

/*----About me Section----*/
.portfolio-section {

  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

/* Image Container Styles */
.images-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  min-height: 300px;
}

.image-wrapper {
  transition: all 0.5s ease;
  flex-shrink: 0;
}

.image-wrapper.side {
  width: 400px;
  height: 300px;
  opacity: 0.4;
}

.image-wrapper.center {
  width: 530px;
  height: 300px;
  opacity: 1;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Custom Tab Styles */
.custom-tabs {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 30px;
  list-style: none;
  padding: 0;
}

.custom-tabs .tab-button {
  background: none;
  border: none;
  color: var(--secondary-70);
  font-size: 24px;
  font-weight: 600;
  padding: 10px 0;
  transition: color 0.3s ease;
  cursor: pointer;
}

.custom-tabs .tab-button:hover {
  color: #2a899e;
}

.custom-tabs .tab-button.active {
  color: #155361;
  font-weight: 600;
}

/* Content Styles */
.content-area {
  max-width: 800px;
  margin: 0 auto;
}

.content-item {
  display: none;
  text-align: left;
  line-height: 1.8;
  color: #333;
  font-size: 16px;
}

.content-item.active {
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .images-container {
    gap: 10px;
  }

  .image-wrapper.side {
    width: 100px;
    height: 200px;
  }

  .image-wrapper.center {
    width: 300px;
    height: 200px;
  }

  .custom-tabs {
    gap: 20px;
  }

  .custom-tabs .tab-button {
    font-size: 18px;
  }
}

/* Links */

.connect-section {
  padding: 80px 0;
  background-color: #fff;
}

.connect-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  margin: 0 auto;
}

/* Left Side: Gradient Background with Icons */
.connect-left {
  background: linear-gradient(
    135deg,
    var(--secondary-70) 0%,
    var(--secondary-70, #67b5c400) 100%
  );
  padding: 30px 80px;
  border-radius: 0 50px 50px 0;
  position: relative;
  width: 50%;
}

.social-icons-connect {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
}

.social-icon-link {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon-link:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  color: var(--primary-100);
}

/* Right Side: Text */
.connect-right {
  flex: 1;
  padding-left: 60px;
}

.connect-title {
  font-size: 36px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .connect-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .connect-left {
    border-radius: 30px;
    padding: 25px 50px;
    margin-bottom: 30px;
  }

  .connect-right {
    padding-left: 0;
  }

  .connect-title {
    font-size: 28px;
  }

  .social-icons-connect {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .connect-left {
    padding: 20px 40px;
  }

  .social-icons-connect {
    gap: 20px;
  }

  .social-icon-link {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .connect-title {
    font-size: 24px;
  }
}

.my4-section {
  position: relative;
  background-color: #fff;
  overflow: hidden;
}

/* LEFT CONTENT */
.my4-title {
  font-family: var(--font-family-base);
  font-size: 36px;
  font-weight: var(--fw-bold);
  color: var(--highlight-blue, #79c6db);
  margin-bottom: 1rem;
}

.my4-description {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-70, #5f5f5f);
}

.my4-list h5 {
  font-family: var(--font-family-base);
  font-size: 20px;
  font-weight: var(--fw-semi);
  color: var(--text-50, #8c8c8c);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.my4-list h5:hover,
.my4-list h5.active {
  color: var(--highlight-blue, #79c6db);
}

/* RIGHT IMAGE */
.my4-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.my4-img-wrapper img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* OVERLAY CARD */
.my4-overlay {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: #1a1a1a;
  color: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 320px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.my4-img-wrapper:hover .my4-overlay,
.my4-overlay.active {
  opacity: 1;
  transform: translateY(0);
}

.overlay-content .overlay-number {
  font-size: 14px;
  opacity: 0.8;
  display: block;
  margin-bottom: 5px;
}

.overlay-content h5 {
  font-size: 20px;
  font-weight: var(--fw-semi);
  margin-bottom: 10px;
  color: #ececec;
}

.overlay-content p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: #eaeaea;
}

/* Footer Base */
.site-footer {
  position: relative;
  width: 100%;
  background-color: var(--primary-30, #a8d8e8); /* light aqua tone */
  overflow: hidden;
  text-align: center;
}

/* Top Section */
.footer-top {
  background-color: #a8d8e8;
}

.footer-logo-img {
  height: 70px;
}

.footer-nav {
  display: flex !important;
  justify-content: center;
  flex-direction: row !important;
  padding: 0;
  margin: 0;
}

.footer-nav a {
  font-family: var(--font-family-base);
  font-weight: var(--fw-semi);
  color: var(--primary-100) !important;
  text-decoration: none;
  margin: 0 15px;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--primary-50) !important;
}

/* Description Text */
.footer-description {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  color: var(--text-100);
  line-height: 1.7;
}

/* Social Icons */
.footer-section {
  background-color: #a8d8e8; /* top light blue */
  text-align: center;
  overflow: hidden;
  position: relative;
}

/* --- Footer Bottom Layout --- */
.footer-bottom {
  background-color: #a8d8e8;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Left and Right Curves */
.footer-curve-left,
.footer-curve-right {
  width: 35%;
  height: 100%;
  background-color: #3eaac4; /* darker aqua tone */
}

.footer-curve-left {
  border-top-right-radius: 90px;
}

.footer-curve-right {
  border-top-left-radius: 90px;
}

/* --- Social Icons --- */
.footer-icons {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  
  padding: 10px 30px;
  border-radius: 50px;
  z-index: 5;
}

.footer-icons a {
  color: #000;
  font-size: 22px;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.footer-icons a:hover {
  color: var(--primary-50);
  transform: scale(1.1);
}
