/* =========================================
   OPHEL MINISTRY WEBSITE
   Responsive CSS
   ========================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  background:  #FFB6C1;
  color: #183d68;
  line-height: 1.6;
}

a {
  text-decoration: none;
}

.site {
  width: min(1180px, 96%);
  margin: 18px auto;
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(25, 76, 120, 0.14);
}

/* ---------- HEADER ---------- */

.header {
  background: #fff;
}

.brand-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px 30px 18px;
}

.logo-wrap {
  flex: 0 0 155px;
  display: flex;
  justify-content: center;
}

.logo-placeholder {
  width: 145px;
  height: 145px;
  border-radius: 50%;
  border: 7px solid #1f5d91;
  outline: 3px solid #e7b400;
  background: linear-gradient(145deg, #eaf7ff, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #1f5d91;
  font-size: 21px;
  font-weight: bold;
  line-height: 1.1;
}
/* =========================================
   LOGO RESIZING AND SHAPING
   ========================================= */

.logo-img {
  width: 145px;
  height: 145px;
  border-radius: 50%;
  border: 7px solid #1f5d91;
  outline: 3px solid #e7b400;
  object-fit: cover;
  display: block;
}

/* Keeps it small and clean on mobile phones */
@media (max-width: 850px) {
  .logo-img {
    width: 115px;
    height: 115px;
    border-width: 5px;
  }
}


.church-info {
  text-align: center;
}

.church-info h1 {
  color: #d92b25;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin-bottom: 5px;
}

.church-info h2 {
  color: #d92b25;
  font-size: clamp(19px, 2.4vw, 28px);
  margin-bottom: 10px;
}

.address {
  color: #167632;
  font-size: 19px;
  font-weight: bold;
}

.contact {
  color: #194d85;
  font-size: 16px;
  margin-top: 6px;
}

.separator {
  padding: 0 10px;
  color: #c22b2b;
}

.welcome-bar {
  background: #ff6262;
  color: white;
  text-align: center;
  font-weight: bold;
  padding: 7px 12px;
  font-size: 15px;
}

/* ---------- HERO ---------- */

.hero {
  background:
    linear-gradient(rgba(238, 248, 255, 0.90), rgba(238, 248, 255, 0.90)),
    radial-gradient(circle at 50% 20%, #b9e5ff, transparent 55%);
  padding: 34px 24px 26px;
  text-align: center;
}

.hero-content {
  max-width: 950px;
  margin: auto;
}

.eyebrow {
  color: #c62d2d;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
}

.hero h2 {
  color: #1e679f;
  font-size: clamp(32px, 5vw, 52px);
  font-style: italic;
  margin: 4px 0 6px;
}

.hero-content > p:not(.eyebrow) {
  max-width: 700px;
  margin: auto;
  color: #46677f;
  font-size: 17px;
}

.service-times {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 850px;
  margin: 25px auto 0;
  gap: 12px;
}

.service-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #bdd8ea;
  border-radius: 10px;
  padding: 16px 10px;
  box-shadow: 0 4px 12px rgba(34, 90, 130, 0.08);
}

.service-card span {
  display: block;
}

.service-card strong {
  display: block;
  color: #1b5790;
  font-size: 18px;
}

.service-card span:last-child {
  color: #555;
  font-size: 14px;
}

.service-icon {
  color: #d42b2b;
  font-size: 26px;
}

/* ---------- BANNER ---------- */

.feature-banner {
  padding: 0 25px 25px;
}

.banner-placeholder {
  min-height: 300px;
  border: 4px solid #c3d900;
  outline: 2px solid #d800d8;
  background:
    linear-gradient(135deg, #276b8d, #9bd0dd 48%, #e4c477);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.5);
}

.banner-placeholder span {
  font-size: clamp(30px, 5vw, 54px);
  font-weight: bold;
}

.banner-placeholder small {
  font-size: 16px;
  margin-top: 5px;
}

/* ---------- COMMON SECTIONS ---------- */

.section-block,
.quick-links-section,
.social-section {
  padding: 28px 25px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 8px;
}

.section-heading span {
  height: 2px;
  background: #e700a8;
  flex: 1;
  max-width: 230px;
}

.section-heading h2 {
  color: #c52a2a;
  text-align: center;
  font-size: clamp(23px, 3vw, 31px);
}

.section-intro {
  text-align: center;
  color: #5d6e7c;
  margin-bottom: 22px;
}

/* ---------- VIDEOS ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
  max-width: 900px;
  margin: auto;
}

.video-card {
  background: #fff;
  border: 1px solid #d8e2ea;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 5px 18px rgba(28, 74, 105, 0.10);
}

.video-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #172a3a;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card h3 {
  color: #b72525;
  text-align: center;
  margin: 10px 0 3px;
  font-size: 20px;
}

.video-card p {
  text-align: center;
  color: #66727b;
  font-size: 14px;
}

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

.quick-links-section {
  border-top: 2px solid #f100b0;
  border-bottom: 2px solid #f100b0;
  margin: 0 25px;
  padding-left: 0;
  padding-right: 0;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 1000px;
  margin: 20px auto 0;
}

.quick-link {
  min-height: 98px;
  border: 2px solid #ed1b24;
  border-radius: 12px;
  background: #fffaa0;
  color: #102f91;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 10px 5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.quick-link:hover {
  transform: translateY(-3px);
  background: #fffed0;
  box-shadow: 0 7px 15px rgba(0, 0, 0, 0.12);
}

.link-icon {
  font-size: 23px;
  color: #d11f28;
  line-height: 1;
  margin-bottom: 5px;
}

.quick-link .tamil {
  font-family: "Noto Sans Tamil", "Latha", sans-serif;
  font-weight: bold;
  font-size: 14px;
}

.quick-link strong {
  font-size: 15px;
}

/* ---------- INFO CARDS ---------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 30px 25px;
}

.info-card {
  background: #f5fbff;
  border: 1px solid #c9dfef;
  border-radius: 12px;
  text-align: center;
  padding: 25px 18px;
}

.info-icon {
  font-size: 30px;
  margin-bottom: 5px;
}

.info-card h2 {
  color: #b92c2c;
  margin-bottom: 8px;
}

.info-card p {
  color: #5b6973;
  font-size: 15px;
}

.info-card a {
  display: inline-block;
  margin-top: 13px;
  color: #1264a0;
  font-weight: bold;
}

/* ---------- SOCIAL ---------- */

.social-section {
  background: #f7fbff;
  border-top: 1px solid #dce9f2;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 900px;
  margin: auto;
}

.social {
  min-height: 115px;
  border-radius: 10px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 14px;
  transition: transform 0.2s ease;
}

.social:hover {
  transform: translateY(-4px);
}

.social span {
  font-size: 29px;
  font-weight: bold;
  line-height: 1;
}

.social strong {
  font-size: 18px;
  margin-top: 6px;
}

.social small {
  font-size: 12px;
  opacity: 0.95;
}

.youtube {
  background: #d92828;
}

.facebook {
  background: #315c9d;
}

.instagram {
  background: #8d4a85;
}

.whatsapp {
  background: #218b56;
}

/* ---------- FOOTER ---------- */

.footer {
  background: #ff6262;
  color: white;
  text-align: center;
  padding: 17px 15px;
  font-weight: bold;
}

.footer .copyright {
  margin-top: 8px;
  font-size: 12px;
  font-weight: normal;
}

/* =========================================
   TABLET
   ========================================= */

@media (max-width: 850px) {

  .brand-area {
    gap: 18px;
  }

  .logo-wrap {
    flex-basis: 120px;
  }

  .logo-placeholder {
    width: 115px;
    height: 115px;
    font-size: 17px;
  }

  .quick-links {
    grid-template-columns: repeat(3, 1fr);
  }

  .social-links {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 600px) {

  body {
    background: #ffffff;
  }

  .site {
    width: 100%;
    margin: 0;
    box-shadow: none;
  }

  .brand-area {
    flex-direction: column;
    padding: 22px 14px 15px;
  }

  .logo-wrap {
    flex-basis: auto;
  }

  .logo-placeholder {
    width: 110px;
    height: 110px;
  }

  .church-info h1 {
    font-size: 28px;
  }

  .church-info h2 {
    font-size: 18px;
  }

  .address,
  .contact {
    font-size: 14px;
  }

  .separator {
    display: none;
  }

  .contact strong:first-child::after {
    content: "";
  }

  .welcome-bar {
    font-size: 13px;
    padding: 8px 10px;
  }

  .hero {
    padding: 28px 15px 22px;
  }

  .hero h2 {
    font-size: 34px;
  }

  .hero-content > p:not(.eyebrow) {
    font-size: 15px;
  }

  .service-times {
    grid-template-columns: 1fr;
    max-width: 350px;
  }

  .feature-banner {
    padding: 0 14px 22px;
  }

  .banner-placeholder {
    min-height: 220px;
  }

  .section-block,
  .quick-links-section,
  .social-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section-heading span {
    max-width: 50px;
  }

  .section-heading h2 {
    font-size: 22px;
  }

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

  .quick-links-section {
    margin: 0 14px;
  }

  .quick-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .quick-link {
    min-height: 90px;
  }

  .quick-link .tamil {
    font-size: 12px;
  }

  .quick-link strong {
    font-size: 13px;
  }

  .info-grid {
    padding: 22px 14px;
  }

  .social-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer {
    font-size: 14px;
  }
}

@media (max-width: 360px) {

  .quick-links,
  .social-links {
    grid-template-columns: 1fr;
  }

  .banner-placeholder {
    min-height: 180px;
  }
}

