/* ========================================
   CSS Reset & Base Styles
   ======================================== */

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

:root {
  /* Color Palette */
  --primary-dark: #1a2332;
  --secondary-dark: #2c3e50;
  --accent-teal: #17999d;
  --accent-blue: #3d5a80;
  --text-light: #ecf0f1;
  --text-gray: #bdc3c7;
  --dark-text: #1c2b36;
  --white: #ffffff;
  --footer-bg: #0f1419;

  /* Typography */
  --font-family: "Montserrat", sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --section-padding: 80px 0;

  /* Font Size */
  --base-font-size: 18px;
  --mobile-base-font-size: 18px;
  --heading-font-size: 24px;
  --subheading-font-size: 20px;
  --button-font-size: 16px;
  --small-font-size: 14px;
  --extra-small-font-size: 10px;
  --huge-font-size: 32px;
  --hero-title-font-size: 65px;
  --mobile-hero-title-font-size: 40px;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-light);
  overflow-x: hidden;
}

.container {
  max-width: 100%;
  padding: 0 20px;
}

/* ========================================
   Header & Navigation
   ======================================== */

.header {
  width: 100%;
  background-color: transparent;
  padding: 20px 0;
  position: absolute;
  top: 0;
  z-index: 1000;
}

.nav-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  width: 250px;
  height: 60px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: var(--base-font-size);
  font-weight: 500;
  color: var(--accent-teal);
  line-height: 1.2;
}

.logo-subtitle {
  font-size: var(--base-font-size);
  font-weight: 400;
  color: var(--text-gray);
  line-height: 1.2;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 100px;
  align-items: center;
}

.mobile-nav-meta {
  display: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: var(--base-font-size);
  font-weight: bold;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link:hover {
  color: var(--accent-teal);
}

.nav-item.active .nav-link {
  color: white;
  border-bottom: 2px solid white;
  padding-bottom: 5px;
}

.nav-item.active .nav-link:hover {
  color: var(--accent-teal);
  border-bottom: 2px solid var(--accent-teal);
}

.dropdown-toggle i {
  font-size: var(--extra-small-font-size);
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  list-style: none;
  padding: 15px 0;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  min-width: 300px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 25px;
  color: var(--dark-text);
  text-decoration: none;
  font-size: var(--base-font-size);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu a i {
  color: var(--accent-teal);
  font-size: var(--extra-small-font-size);
}

.dropdown-menu a:hover {
  background-color: var(--accent-teal);
  color: white;
}

.dropdown-menu a:hover i {
  color: white;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  position: relative;
  background-image: url("../img/homepage_bannerBg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 600px;
  padding: 160px 0 60px;
}

.hero .container {
  height: 100%;
  margin-left: 80px;
  margin-right: 160px;
}

.hero-content {
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.hero-text {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  max-width: 60%;
  animation: fadeInLeft 1s ease;
  z-index: 10;
}

.hero-title {
  font-size: var(--hero-title-font-size);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 25px;
}

.hero-description {
  font-size: var(--base-font-size);
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 35px;
  text-align: justify;
}

.home-banner-button,
.home-hero-button {
  padding: 15px;
  background-color: var(--accent-teal);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: var(--base-font-size);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.home-banner-button-2 {
  width: calc(100% - 80px);
  margin: 0 40px;
  padding: 15px;
  background-color: var(--accent-teal);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: var(--base-font-size);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: none;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.home-banner-button:hover,
.home-banner-button-2:hover,
.home-hero-button:hover {
  background-color: #63c4c7;
}

.home-banner-button i,
.home-banner-button-2 i,
.home-hero-button i {
  font-size: var(--extra-small-font-size);
}

.btn {
  padding: 15px 35px;
  border: none;
  border-radius: 8px;
  font-size: var(--button-font-size);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background-color: var(--accent-teal);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background: linear-gradient(45deg, #10ac84, #17999d);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(29, 209, 161, 0.4);
}

.btn-secondary {
  background-color: var(--accent-teal);
  color: var(--primary-dark);
}

.btn-secondary:hover {
  background-color: #10ac84;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(29, 209, 161, 0.4);
}

.hero-image {
  position: absolute;
  height: 100%;
  width: 100%;
  bottom: 0;
  right: 0;
  text-align: right;
  animation: fadeInRight 1s ease;
}

.hero-image img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   Date Navigation
   ======================================== */

.date-navigation {
  background-image: url(../img/homepage_calendarBarBackground.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px 0;
}

.date-nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.date-nav-arrow {
  background-color: transparent;
  border: none;
  outline: none;
  color: white;
  padding: 10px 15px;
  font-size: var(--base-font-size);
  cursor: pointer;
  transition: all 0.3s ease;
}

.date-separator {
  width: 2px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.6);
  margin: 0 20px;
}

.date-info {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.date-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.date-item img {
  height: 20px;
  width: 20px;
  object-fit: contain;
}

.date-text {
  font-weight: 600;
  color: var(--white);
  margin-right: 20px;
}

.event-text {
  color: var(--text-gray);
  font-size: var(--base-font-size);
}

/* ========================================
   Member Spotlight Section
   ======================================== */
.member-spotlight {
  background-color: white;
  margin-bottom: 80px;
}

.spotlight-grid {
  height: 500px;
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: start;
}

.ad-row {
  flex: 5;
  height: 100%;
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.ad-image {
  height: 100%;
  position: relative;
}

.ad-image img {
  height: 100%;
}

.ad-content {
  flex: 2;
  height: 100%;
  position: relative;
}

.ad-content button {
  position: absolute;
  bottom: 0px;
  left: 100px;
}

.ad-content img {
  height: 80%;
  object-fit: contain;
}

.ad-image-container {
  height: 100%;
  position: relative;
}

.member-separator {
  width: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  transform: translateX(60%);
  height: calc(100% + 20px) !important;
  z-index: 100;
  object-fit: contain;
  object-position: center;
}

.prayer-separator {
  width: 100%;
  height: 0.8px;
  background-color: #cccecf;
  opacity: 1;
  margin: 5px 0;
}

.prayer-times-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.prayer-item-container {
  display: flex;
  flex-direction: column;
}

/* ========================================
   Prayer Times
   ======================================== */

.prayer-times {
  position: relative;
  flex: 2;
  height: 100%;
  background-color: #eaf4ff;
  padding: 30px 25px;
}

.prayer-time-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.prayer-time-item:last-child {
  border-bottom: none;
}

.prayer-icon {
  width: 35px;
  height: 35px;
  background-color: var(--accent-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prayer-icon i {
  color: var(--primary-dark);
  font-size: var(--small-font-size);
}

.prayer-name {
  flex: 1;
  color: var(--dark-text);
  font-weight: 400;
  font-size: var(--small-font-size);
}

.prayer-time {
  color: var(--dark-text);
  font-weight: bold;
  font-size: var(--small-font-size);
}

.prayer-times .bottom-image {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -30px;
  width: 100%;
  object-fit: contain;
  z-index: -1;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background-image: url(../img/footer_bg.png);
  background-size: cover;
  background-position: left;
  background-repeat: no-repeat;
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  align-items: start;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-contact img {
  height: 20px;
  width: 20px;
  object-fit: contain;
}

.footer-column {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
}

.footer-title {
  font-size: var(--base-font-size);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: var(--base-font-size);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-teal);
}

.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  color: var(--text-gray);
  font-size: var(--base-font-size);
}

.footer-contact i {
  color: var(--accent-teal);
  margin-top: 3px;
}

.footer-contact a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s ease;
  max-width: 200px;
}

.footer-contact a:hover {
  color: var(--accent-teal);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.3s ease;
}

.language-switcher {
  display: flex;
  gap: 10px;
}

.lang-btn {
  padding-left: 0px;
  padding-right: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: transparent;
  border: none;
  color: var(--text-light);
  border-radius: 5px;
  cursor: pointer;
  font-size: var(--button-font-size);
  font-weight: 500;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  border-color: var(--accent-teal);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--text-gray);
  font-size: var(--small-font-size);
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1700px) {
  .ad-row {
    flex: 6;
  }
}

@media (max-width: 1600px) {
  .ad-row {
    flex: 7;
  }
}

@media (max-width: 1500px) {
  .ad-row {
    flex: 7;
  }
}

@media (max-width: 1400px) {
  .prayer-times {
    width: 100%;
    min-height: 500px;
  }

  .spotlight-grid {
    height: auto;
    flex-direction: column;
  }

  .ad-row {
    height: 500px;
  }

  .ad-image img {
    height: 500px;
    width: 350px;
  }

  .ad-content img {
    height: 500px;
    width: 750px;
  }

  .ad-content button {
    bottom: -20px;
  }
}

@media (max-width: 1300px) {
  .nav-menu {
    gap: 50px;
  }
}

@media (max-width: 1200px) {
  .ad-content button {
    bottom: -40px;
  }

  .hero-text {
    max-width: 70%;
  }

  .home-banner-button {
    display: none;
  }

  .home-banner-button-2 {
    display: flex;
  }

  .ad-image img {
    height: 450px;
    width: 300px;
  }

  .ad-content img {
    height: 450px;
    width: 700px;
  }
}

@media (max-width: 1024px) {
  .spotlight-grid {
    grid-template-columns: 1fr;
  }

  .date-navigation {
    background: #284865;
  }

  .nav-menu {
    gap: 35px;
  }

  .hero-image {
    display: none;
  }

  .hero-content {
    width: 100%;
  }

  .hero-text {
    max-width: 100%;
  }

  .ad-image img {
    height: 400px;
    width: 250px;
  }

  .ad-content img {
    height: 400px;
    width: 650px;
  }
}

@media (max-width: 950px) {
  .ad-image img {
    height: 400px;
    width: 250px;
  }

  .ad-content img {
    height: 400px;
    width: 550px;
  }
}

@media (max-width: 850px) {
  .ad-image img {
    height: 350px;
    width: 200px;
  }

  .ad-content img {
    height: 350px;
    width: 500px;
  }
}

@media (max-width: 860px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 16px;
    right: 16px;
    background: rgba(18, 33, 49, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    flex-direction: column;
    padding: 24px 20px 28px;
    gap: 18px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    box-shadow: 0 24px 60px rgba(10, 18, 28, 0.45);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .mobile-nav-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 4px;
  }

  .mobile-nav-title {
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
  }

  .mobile-nav-action,
  .mobile-nav-close {
    font-size: 0.85rem;
    color: rgba(23, 153, 157, 0.85);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 4px 10px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .mobile-nav-action:hover,
  .mobile-nav-close:hover {
    background: rgba(23, 153, 157, 0.12);
    color: rgba(255, 255, 255, 0.95);
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-content {
    flex-direction: row;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 12px 18px;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .nav-menu::-webkit-scrollbar {
    width: 6px;
  }

  .nav-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
  }

  .nav-menu::-webkit-scrollbar-thumb {
    background: rgba(23, 153, 157, 0.45);
    border-radius: 3px;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 12px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(6px);
    border: 1px solid transparent;
  }

  .nav-link:hover {
    border-color: rgba(255, 255, 255, 0.12);
  }

  .nav-item.active .nav-link {
    color: var(--accent-teal);
    border-color: rgba(23, 153, 157, 0.5);
  }

  .dropdown-toggle i {
    margin-left: auto;
    transition: transform 0.25s ease;
  }

  .dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
  }

  .dropdown-menu a {
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.82);
  }

  .dropdown-menu a:hover {
    background: transparent;
    color: var(--white);
  }
}

@media (max-width: 768px) {
  .ad-row {
    height: auto;
  }

  .hero-title {
    font-size: var(--mobile-hero-title-font-size);
  }

  .support-hero,
  .about-hero,
  .hero {
    height: 100vh !important;
  }

  .hero .container {
    margin: 0 20px;
  }

  .member-separator {
    height: 300px !important;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title {
    font-size: var(--huge-font-size);
  }

  .hero-image {
    text-align: center;
  }

  .date-nav-content {
    flex-direction: row;
    gap: 15px;
  }

  .date-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
  }

  .ad-image img {
    height: 300px;
    width: 170px;
  }

  .ad-content img {
    height: 300px;
    width: 450px;
  }
}

@media (max-width: 650px) {
  .ad-image img {
    height: 250px;
    width: 160px;
  }

  .ad-content img {
    height: 250px;
    width: 350px;
  }

  .member-separator {
    height: 250px !important;
  }
}

@media (max-width: 530px) {
  .ad-image img {
    height: 200px;
    width: 130px;
  }

  .ad-content img {
    height: 200px;
    width: 300px;
  }

  .member-separator {
    height: 200px !important;
  }
}

@media (max-width: 480px) {
  .footer-content {
    flex-direction: column;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .date-info {
    flex-direction: column;
    align-items: start;
    gap: 15px;
  }
}

@media (max-width: 450px) {
  .ad-image img {
    height: 150px;
    width: 100px;
  }

  .ad-content img {
    height: 150px;
    width: 250px;
  }

  .member-separator {
    height: 150px !important;
  }
}

@media (max-width: 370px) {
  .ad-image img {
    height: 120px;
    width: 80px;
  }

  .ad-content img {
    height: 120px;
    width: 200px;
  }

  .member-separator {
    height: 120px !important;
  }
}
