/* ============================================================
   ADUKU ROAD SDA CHURCH — Main Stylesheet
   ============================================================ */


/* ------------------------------------------------------------
   1. CSS VARIABLES
   ------------------------------------------------------------ */
:root {
  --bg:          #f5f8fb;
  --surface:     #ffffff;
  --primary:     #003c71;
  --secondary:   #0a66aa;
  --accent:      #f0b323;
  --text:        #14213d;
  --text-muted:  #556075;
  --shadow-sm:   0 1px 6px  rgba(0,60,113,0.08);
  --shadow-md:   0 4px 18px rgba(0,60,113,0.14);
  --shadow-lg:   0 10px 28px rgba(0,60,113,0.16);
  --radius-sm:   0.75rem;
  --radius-md:   1rem;
  --radius-lg:   1.25rem;
  --transition:  0.2s ease;
}


/* ------------------------------------------------------------
   2. BASE
   ------------------------------------------------------------ */
body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

img { max-width: 100%; }


/* ------------------------------------------------------------
   3. UTILITIES
   ------------------------------------------------------------ */
.eyebrow {
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.text-white-75   { color: rgba(255,255,255,0.85) !important; }
.img-cover       { width: 100%; height: 100%; object-fit: cover; }
.border-end-lg   { border-right: none; }
.hero-card       { border-radius: 1.5rem; }
.hero-image-card { min-height: 0; }
.hero-image-card img { object-fit: cover; }

@media (min-width: 992px) {
  .border-end-lg { border-right: 1px solid #e8eef5 !important; }
}


/* ------------------------------------------------------------
   4. HERO — FULL SCREEN (home page)
   ------------------------------------------------------------ */
.hero-full {
  position: relative;
  min-height: 95vh;
  background-image: url('static/images/group_photos.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-full::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(0, 20, 55, 0.88)  0%,
    rgba(0, 40, 90, 0.68) 50%,
    rgba(0, 15, 45, 0.38) 100%
  );
}

.hero-full .container { position: relative; z-index: 2; }

@media (max-width: 991px) {
  .hero-full    { min-height: 80vh; }
  .hero-full h1 { font-size: 1.9rem; }
}

@media (max-width: 575px) {
  .hero-full          { min-height: 70vh; }
  .hero-full h1       { font-size: 1.4rem; }
  .hero-full .d-flex  { flex-direction: column; }
  .hero-full .btn     { width: 100%; text-align: center; }
}


/* ------------------------------------------------------------
   5. PAGE HERO (inner pages)
   ------------------------------------------------------------ */
.page-hero {
  background: linear-gradient(135deg, #003c71 0%, #0a66aa 100%);
  padding: 5rem 0 3.5rem;
}

@media (max-width: 767px) {
  .page-hero    { padding: 3rem 0 2rem; }
  .page-hero h1 { font-size: 1.75rem; }
  .page-hero p  { font-size: 0.92rem; }
}


/* ------------------------------------------------------------
   6. SECTION UTILITIES
   ------------------------------------------------------------ */
.hero-section { background: linear-gradient(180deg, #eef4fb 0%, #ffffff 100%); padding-top: 0; padding-bottom: 0; }
.hero-overlay { background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(2,29,62,0.35) 100%); }
.hero-overlay .bg-white { backdrop-filter: blur(10px); }

.section-overlap { margin-top: -3rem; }

.gallery-card {
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(0,60,113,0.2);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #e8f1fb 0%, #ffffff 100%);
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@media (max-width: 767px) {
  .section-overlap { margin-top: 0; }
}


/* ------------------------------------------------------------
   7. GOSPEL STRIP (home)
   ------------------------------------------------------------ */
.gospel-strip {
  background: linear-gradient(135deg, #003c71 0%, #0a66aa 100%);
  padding: 4rem 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.gospel-strip::before {
  content: '\201C';
  position: absolute;
  font-size: 20rem;
  font-family: Georgia, serif;
  top: -4rem;
  left: -2rem;
  opacity: 0.06;
  color: #fff;
  line-height: 1;
  pointer-events: none;
}

@media (max-width: 767px) {
  .gospel-strip         { padding: 2.5rem 0; }
  .gospel-strip::before { font-size: 8rem; top: -1rem; }
}


/* ------------------------------------------------------------
   8. PHOTO MINISTRY CARDS (home — Faith in Action)
   ------------------------------------------------------------ */
.photo-ministry-card           { display: block; text-decoration: none; }
.photo-ministry-card img       { transition: transform 0.5s ease; display: block; }
.photo-ministry-card:hover img { transform: scale(1.06); }

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,8,24,0.92) 0%, rgba(0,8,24,0.35) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: background 0.35s;
}

.photo-ministry-card:hover .photo-overlay {
  background: linear-gradient(to top, rgba(0,8,24,0.97) 0%, rgba(0,8,24,0.55) 65%, rgba(0,8,24,0.1) 100%);
}

.photo-cat-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.28rem 0.8rem;
  border-radius: 2rem;
  color: #fff;
  z-index: 3;
}

.photo-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  line-height: 1.3;
}

.photo-card-desc {
  color: rgba(255,255,255,0.88);
  font-size: 0.84rem;
  line-height: 1.55;
  margin-top: 0.5rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.35s ease;
}

.photo-ministry-card:hover .photo-card-desc { max-height: 80px; opacity: 1; }

.photo-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: 0.75rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease 0.08s, transform 0.3s ease 0.08s;
}

.photo-ministry-card:hover .photo-card-link { opacity: 1; transform: translateY(0); }

.photo-accent {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  transition: height 0.3s;
}

.photo-ministry-card:hover .photo-accent { height: 5px; }

/* Always show content on touch devices */
@media (hover: none) {
  .photo-card-desc               { max-height: 80px; opacity: 1; }
  .photo-card-link               { opacity: 1; transform: translateY(0); }
  .photo-ministry-card:hover img { transform: none; }
}


/* ------------------------------------------------------------
   9. SABBATH PROGRAM
   ------------------------------------------------------------ */
.program-item {
  display: flex;
  gap: 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed #e0e7ef;
  align-items: flex-start;
}

.program-item:last-child { border-bottom: 0; }

.program-time {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 130px;
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.program-name { font-weight: 600; font-size: 0.95rem; }

.program-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary);
  border-radius: 2rem;
  padding: 0.25rem 0.9rem;
  display: inline-block;
  margin: 1rem 0 0.5rem;
}

@media (max-width: 575px) {
  .program-time { min-width: 95px; font-size: 0.7rem; }
  .program-name { font-size: 0.88rem; }
}


/* ------------------------------------------------------------
   10. COUNTDOWN
   ------------------------------------------------------------ */
.countdown-digit {
  background: var(--primary);
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.5rem 0.9rem;
  font-size: 1.6rem;
  font-weight: 700;
  min-width: 3rem;
  display: inline-block;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin-top: 0.3rem;
}

@media (max-width: 575px) {
  .countdown-digit { font-size: 1.2rem; padding: 0.4rem 0.55rem; min-width: 2.4rem; }
  .countdown-label { font-size: 0.62rem; }
}


/* ------------------------------------------------------------
   11. EVENT CARDS
   ------------------------------------------------------------ */
.event-card {
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,60,113,0.14);
}

.event-card-featured {
  border: 2px solid #b8860b !important;
  box-shadow: 0 4px 24px rgba(180,130,0,0.18) !important;
}

.event-card-featured:hover {
  box-shadow: 0 12px 36px rgba(180,130,0,0.28) !important;
}

.featured-banner {
  background: linear-gradient(135deg, #7a5800 0%, #c49a00 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 1.25rem;
  text-align: center;
}

.event-date-block {
  min-width: 72px;
  background: var(--primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.75rem;
  border-radius: 0.75rem 0 0 0.75rem;
  text-align: center;
  flex-shrink: 0;
}

.event-date-day   { font-size: 2rem; font-weight: 800; line-height: 1; }
.event-date-month { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }

.event-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 2rem;
}

@media (max-width: 575px) {
  .event-date-block { min-width: 60px; padding: 0.75rem 0.5rem; }
  .event-date-day   { font-size: 1.5rem; }
}


/* ------------------------------------------------------------
   12. BELIEFS PAGE
   ------------------------------------------------------------ */
.belief-number {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  margin-bottom: 0.5rem;
}

.category-header {
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
}

.belief-card {
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  height: 100%;
}

.belief-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.verses {
  font-size: 0.8rem;
  font-style: italic;
  color: #888;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.beliefs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}

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

/* Category accent colours */
.cat-god .belief-number       { background: #003c71; }
.cat-humanity .belief-number  { background: #1a7a4a; }
.cat-salvation .belief-number { background: #7b2d8b; }
.cat-church .belief-number    { background: #c0392b; }
.cat-living .belief-number    { background: #d4820a; }
.cat-end .belief-number       { background: #1a5a7a; }

.cat-god .category-header       { border-color: #003c71; }
.cat-humanity .category-header  { border-color: #1a7a4a; }
.cat-salvation .category-header { border-color: #7b2d8b; }
.cat-church .category-header    { border-color: #c0392b; }
.cat-living .category-header    { border-color: #d4820a; }
.cat-end .category-header       { border-color: #1a5a7a; }

.cat-god .category-badge       { background: #e8eef5; color: #003c71; }
.cat-humanity .category-badge  { background: #e6f4ed; color: #1a7a4a; }
.cat-salvation .category-badge { background: #f3e8f7; color: #7b2d8b; }
.cat-church .category-badge    { background: #fbeaea; color: #c0392b; }
.cat-living .category-badge    { background: #fdf3e3; color: #d4820a; }
.cat-end .category-badge       { background: #e5f0f7; color: #1a5a7a; }


/* ------------------------------------------------------------
   13. ARTICLES PAGE
   ------------------------------------------------------------ */
.article-card {
  border: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  scroll-margin-top: 90px;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,60,113,0.14);
}

.article-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.article-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.22rem 0.72rem;
  border-radius: 2rem;
}

.article-full {
  border-top: 2px solid #f0f4f8;
  padding: 1.75rem 1.75rem 2rem;
  background: #fafcff;
}

.article-full p {
  color: var(--text-muted);
  line-height: 1.85;
  font-size: 0.95rem;
}

.read-more-btn {
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  background: none;
  padding: 0;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: color var(--transition);
}

.read-more-btn:hover                     { color: var(--secondary); }
.read-more-btn .bi                       { transition: transform 0.3s; }
.read-more-btn[aria-expanded="true"] .bi { transform: rotate(180deg); }

@media (max-width: 575px) {
  .article-thumb { height: 160px; }
}


/* ------------------------------------------------------------
   14. MEMBERS PAGE
   ------------------------------------------------------------ */
.member-card {
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px rgba(0,60,113,0.09);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
  text-align: center;
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.member-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 3px solid #e8eef5;
}

.member-avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto;
  flex-shrink: 0;
}

.role-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.22rem 0.75rem;
  border-radius: 2rem;
  display: inline-block;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  display: inline-block;
  margin-bottom: 1rem;
}

@media (max-width: 575px) {
  .member-avatar,
  .member-avatar-placeholder { width: 80px; height: 80px; font-size: 1.6rem; }
}


/* ------------------------------------------------------------
   15. MEDIA PAGE
   ------------------------------------------------------------ */
.media-card {
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.media-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.media-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.sermon-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,60,113,0.07);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition), transform var(--transition);
}

.sermon-item:hover {
  box-shadow: 0 6px 20px rgba(0,60,113,0.13);
  transform: translateX(4px);
  color: inherit;
}

.sermon-play {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 2rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition);
  border: 1.5px solid transparent;
}

.resource-link:hover { opacity: 0.85; transform: translateY(-2px); }

@media (max-width: 575px) {
  .sermon-item     { flex-wrap: wrap; }
  .media-icon-wrap { width: 2.8rem; height: 2.8rem; font-size: 1.2rem; }
}


/* ------------------------------------------------------------
   16. FOOTER
   ------------------------------------------------------------ */
footer a { transition: color var(--transition); }

@media (max-width: 767px) {
  footer .col-6       { width: 100% !important; max-width: 100%; flex: 0 0 100%; }
  footer .offset-lg-1 { margin-left: 0 !important; }
}


/* ------------------------------------------------------------
   17. GLOBAL RESPONSIVE OVERRIDES
   ------------------------------------------------------------ */
@media (max-width: 767px) {
  .py-5 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  .col-lg-4.p-5 { padding: 2rem !important; }
}

@media (max-width: 575px) {
  .display-4 { font-size: 1.75rem !important; }
  .display-5 { font-size: 1.5rem  !important; }
  .display-6 { font-size: 1.2rem  !important; }
}
