/*--------------------------------------------------------------
# General & Variables
--------------------------------------------------------------*/
:root {
  --color-primary: #ffffff;
  --color-dark: #121619;
  --color-light: #f8f9fa;
  --color-white: #ffffff;
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-special: 'Poppins', sans-serif;
}

body {
  font-family: var(--font-body);
  color: #333;
  background-color: var(--color-light);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: 1.5px;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    font-family: var(--font-heading);
    letter-spacing: 1px;
    font-size: 1.1rem;
    color: var(--color-dark);
}

.btn-primary:hover {
    background-color: var(--color-dark);
    border-color: var(--color-dark);
    color: var(--color-primary) !important;
}

.btn-outline-light {
    font-family: var(--font-heading);
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.btn-dark {
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
}

/*--------------------------------------------------------------
# Header / Navigation
--------------------------------------------------------------*/
header .navbar {
    padding: 1.5rem 1rem;
    transition: all 0.3s ease;
    background-color: var(--color-light) !important;
}

.navbar-brand img {
    max-height: 65px;
    transition: max-height 0.3s ease;
}

.navbar-nav .nav-link {
    font-family: var(--font-special);
    font-weight: 700;
    text-transform: uppercase;
}

.navbar-nav .nav-link.active {
    /*color: var(--color-dark) !important;*/
    color: #7e7f7f !important;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
    position: relative;
    background: linear-gradient(rgba(18,22,25,0.7), rgba(18,22,25,0.7)), url('../images/468A0199-scaled.jpg') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    padding: 0;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(48px, 15vw, 88px);
    color: var(--color-white);
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(18px, 5vw, 24px);
    color: var(--color-primary);
    letter-spacing: clamp(4px, 2vw, 9px);
    text-transform: uppercase;
}

.hero-separator-container {
    line-height: 0;
    position: relative;
    z-index: 2;
}

.hero-separator-container img {
    margin-top: -172px; 
    display: block;
}

/*--------------------------------------------------------------
# Info Cards Section
--------------------------------------------------------------*/
.info-cards-section {
    background-color: var(--color-primary);
    position: relative;
    z-index: 1;
    padding-top: 100px; 
    padding-bottom: 5rem;
}

.info-item h3 {
    font-family: var(--font-heading);
    font-size: 30px;
    color: var(--color-dark);
}

.info-item p {
    font-size: 13px;
    color: var(--color-dark);
    line-height: 1.6;
}

.info-icon {
    height: 90px;
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

/*--------------------------------------------------------------
# Latest Teachings Section
--------------------------------------------------------------*/
.teachings-section {
    background-color: var(--color-dark);
}
.section-subtitle {
    color: var(--color-primary);
    font-family: var(--font-special);
    font-weight: 300;
    font-size: 30px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 80px;
    color: var(--color-white);
    margin-top: -15px;
}
.video-container{position:relative;padding-bottom:56.25%;height:0;overflow:hidden;border-radius:5px}.video-container iframe{position:absolute;top:0;left:0;width:100%;height:100%}.video-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-size:cover;background-position:center;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background-color .3s ease}.video-overlay:hover{background-color:rgba(0,0,0,.6)}.video-play-button{width:90px;height:60px;background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>') no-repeat center center;background-color:rgba(0,0,0,.5);border:2px solid #fff;border-radius:10px;cursor:pointer;transition:background-color .2s}.video-play-button:hover{background-color:rgba(253,157,62,.8)}.video-container.playing .video-overlay{display:none}
.teaching-details .teaching-meta{font-family:var(--font-body);font-weight:700;text-transform:uppercase;color:var(--color-primary);margin-bottom:.25rem}.teaching-details .teaching-title{font-family:var(--font-special);font-weight:700;font-size:20px;color:var(--color-white);margin-bottom:1.5rem}
.teaching-card img{border-radius:5px;box-shadow:0 4px 15px rgba(0,0,0,.2);transition:transform .3s ease}.teaching-card:hover img{transform:scale(1.03)}.teaching-card h5{font-family:var(--font-special);font-size: 18px; text-transform:uppercase;color:var(--color-white)}

/*--------------------------------------------------------------
# Ministry Units & Separator Sections
--------------------------------------------------------------*/
.ministry-section {
    background-color: var(--color-dark);
}
.ministry-section .lead {
    font-family: var(--font-special);
    font-weight: 400;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
}
.ministry-image {
    transition: transform 0.3s ease, filter 0.3s ease;
}
.ministry-image:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
    z-index: 10;
    position: relative;
}
.ministry-separator-section {
    background-color: var(--color-dark);
    padding: 0;
    line-height: 0;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.main-footer {
    background-color: var(--color-white);
    color: var(--color-dark);
}
.footer-logo {
    max-width: 150px;
}
.main-footer p {
    font-family: var(--font-special);
    font-size: 15px;
    color: #555;
}
.footer-heading {
    font-family: var(--font-special);
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
}
.footer-links li {
    margin-bottom: 0.8rem;
}
.footer-links a {
    text-decoration: none;
    color: #555;
    font-size: 15px;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--color-dark);
}
.footer-links address {
    font-style: normal;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}
.footer-bottom {
    background-color: var(--color-dark);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Append this to the end of your existing css/main.css file */

/*--------------------------------------------------------------
# Social Icons
--------------------------------------------------------------*/
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: var(--color-dark);
    font-size: 1.2rem;
    text-decoration: none;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

.footer-box {
    background-color: var(--color-dark); /* Dark gray from original design */
    padding: 3.5rem;
    color: var(--color-white);
}

.footer-box p {
    color: rgb(255, 255, 255); /* Lighter text for dark background */
}

/* Make social icons white on the dark box */
.footer-box .social-icon {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.footer-box .social-icon:hover {
    background-color: var(--color-primary);
    color: var(--color-dark);
}

/*
====================================
About Us Page Styles
====================================
*/

.page-header {
    max-height: 450px;
    width: 100%;
    overflow: hidden;
    
    /* NEW: Use Flexbox for alignment */
    display: flex;
    justify-content: center; /* Horizontally center the image (optional but good practice) */
    align-items: center;     /* Vertically center the image */
}

.page-header img {
    width: 100%;
    height: auto;
    
    /* REMOVED: object-fit is not needed with this flexbox method */
}

/* Vision, Mission, Values Tabs Section */
.vision-mission-section {
    background-color: #f7f7f7; /* A light grey background */
}

.vision-mission-section .nav-tabs {
    border-bottom: 1px solid #ddd;
    margin-bottom: 0;
}

.vision-mission-section .nav-link {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #666;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 1rem 1.5rem;
    text-transform: uppercase;
}

.vision-mission-section .nav-link.active {
    color: var(--color-dark);
    background-color: transparent;
    border-bottom: 3px solid var(--color-primary);
}

.vision-mission-section .tab-content {
    background-color: var(--color-white);
    padding: 2.5rem;
    border: 1px solid #ddd;
    border-top: none;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Staff Section */
.staff-section {
    background-color: #efe9e4;
}

.staff-section .section-title {
    font-size: 2.5rem; /* Slightly smaller than homepage title */
    color: var(--color-dark);
}

.title-divider {
    width: 50px;
    margin: 1rem auto 3rem auto;
    border: none;
    border-top: 3px solid var(--color-primary);
    opacity: 1;
}

.staff-card {
    text-align: center;
    margin-bottom: 2rem;
}

.staff-card img {
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.staff-card h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--color-dark);
}

.staff-card .staff-position {
    font-family: var(--font-body);
    font-style: italic;
    color: #555;
}

/*
====================================
Ministry Unit (MU) Page Styles
====================================
*/

.mu-content-section {
    background-color: #f7f7f7; /* Light grey to match other pages */
}

.mu-text-content .mu-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--color-dark);
}

.mu-text-content .mu-description {
    font-family: var(--font-body);
    font-size: 1.25rem;
    line-height: 1.9em;
    color: #333;
}

.mu-image-wrapper img {
    border-radius: 56px 0 56px 0; /* The unique skewed radius from the original design */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/*
====================================
Ministry Unit Quote Section
====================================
*/
.mu-quote-section {
    background-color: #f1f1f1; /* Light grey background */
}

.mu-quote-section .blockquote {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.25rem;
    font-style: italic;
    color: #555;
    border-left: 4px solid var(--color-primary);
    padding-left: 2rem;
    text-align: left;
}

.mu-quote-section .blockquote-footer {
    font-size: 1rem;
    font-style: normal;
    color: #777;
}

/*
====================================
Connect Page Styles
====================================
*/

/* Connect Hero Section */
.connect-hero {
    background-color: var(--color-primary);
    color: var(--color-dark);
    /* Add padding for mobile view */
    padding: 3rem 0;
}

.connect-hero-title {
    font-family: 'Kumbh Sans', sans-serif;
    /* Use clamp for fluid typography - prevents overflow */
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
}

.connect-hero-subtitle {
    font-family: 'Sen', sans-serif;
    font-size: 1.1rem;
    color: #121619;
}

.connect-hero-image {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 0 auto;
    height: auto;
}

/* Podcast Platforms Section */
.podcast-platforms-section {
    background-color: #f1f1f1;
    border-bottom: 1px solid #ddd;
}

.platform-logo {
    max-height: 70px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.platform-logo:hover {
    opacity: 1;
}

/* YouTube Section */
.youtube-section {
    background-color: #fbfcff;
}

.youtube-logo {
    max-width: 150px; /* Make logo smaller on mobile */
    margin-left: auto;
    margin-right: auto;
}

.youtube-section h4 {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem); /* Responsive font size */
    color: var(--color-dark);
}

.youtube-section p {
    color: #555;
}

/* Social Section */
.social-section {
    background-color: #f1f1f1;
    border-bottom: 1px solid #ddd;
    color: var(--color-dark);
}

.social-section h3 {
    font-family: 'Kumbh Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 5vw, 2.5rem); /* Responsive font size */
}

.social-section .social-icon {
    background-color: rgba(255,255,255,0.2);
    color: var(--color-dark);
    width: 50px; /* Slightly smaller for mobile */
    height: 50px;
    font-size: 1.5rem;
}

.social-section .social-icon:hover {
    background-color: var(--color-dark);
    color: var(--color-primary);
}

/* Media query for larger screens (desktop) */
@media (min-width: 992px) {
    .connect-hero {
        padding: 5rem 0; /* Restore larger padding for desktop */
    }
    .youtube-logo {
       max-width: 200px; /* Restore larger logo for desktop */
    }
    .social-section .social-icon {
       width: 60px;
       height: 60px;
       font-size: 1.8rem;
    }
}

/*
====================================
Give Page Styles
====================================
*/

.give-hero {
    /* Replace with the actual background image for the give page */
    background: linear-gradient(120deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%), url('../images/give/give-background.jpg') no-repeat center center;
    background-size: cover;
    min-height: 60vh;
    padding: 4rem 0;
}

.give-hero-title {
    font-family: var(--font-special);
    font-size: clamp(3rem, 8vw, 4rem);
    font-weight: 600;
}

.give-hero-subtitle {
    font-family: var(--font-special);
    font-size: 1.1rem;
    line-height: 1.8;
}

.give-details-section {
    background-color: #f7f7f7;
}

.give-box {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    font-size: 1.1rem;
    line-height: 1.8;
}

.give-box p {
    margin-bottom: 0;
}

.give-box strong {
    font-family: var(--font-special);
    font-weight: 600;
    color: var(--color-dark);
}

.give-box a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
}

.give-box a:hover {
    text-decoration: underline;
}

.btn-success {
    background-color: #25d366; /* WhatsApp/Cash App green */
    border-color: #25d366;
}

/*
====================================
Plan A Visit Page Styles
====================================
*/

/* Hero Section with Video Background */
.visit-hero-section {
    position: relative;
    height: 90vh; /* Set a height for the section */
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--color-dark); /* Fallback color */
}

.video-background-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio for vertical screens */
    transform: translate(-50%, -50%);
}

.video-background iframe {
    width: 100%;
    height: 100%;
    pointer-events: none; /* Make video unclickable */
}

.visit-hero-image {
    max-width: 600px;
    width: 80%;
}

/* Expectations Section */
.expectations-section {
    background-color: #f7f1ec; /* The light cream color from the original */
}

.expectations-title {
    font-family: var(--font-special);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.5rem;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

.expectations-section p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/*
====================================
Page-Specific Overrides
====================================
*/

/* Override for Plan a Visit page to show the full banner */
.page-header-full {
    max-height: none; /* Removes the height restriction */
    display: block;   /* Reverts from flex to normal block display */
}

.page-header-full img {
    /* Ensures the image inside scales correctly without special alignment */
    width: 100%;
    height: auto;
}

/*
====================================
Shop Page Styles
====================================
*/
.shop-section {
    min-height: 80vh;
    padding: 4rem 0;
}

.shop-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
}

.shop-subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
}

.shop-item-image {
    max-height: 500px;
    margin: 0 auto;
}

/* Books Section */
.books-section {
    background-color: #ffffff; /* The orange from the original design */
}

/* Music Section */
.music-section {
    /* Angled background effect using a linear gradient */
    background: linear-gradient(
        150deg, /* Angle of the color split */
        #f7f1ec 80%, /* First color and where it stops */
        transparent 80% /* Makes the rest of the background transparent */
    );
}

.music-section .shop-title {
    color: var(--color-dark);
}

.music-section .shop-subtitle {
    color: #555;
}

.app-store-badge {
    max-width: 180px;
    height: auto;
    margin-top: 1rem;
    transition: transform 0.3s ease;
}

.app-store-badge:hover {
    transform: scale(1.05);
}

/*
====================================
Newsletter Section (Shop Page)
====================================
*/
.newsletter-section {
    /* Angled background effect using a linear gradient */
    background: linear-gradient(
        150deg, /* Angle of the color split */
        #ffffff 65%, /* Orange color stops at 65% */
        #242424 65% /* Dark color starts at 65% */
    );
    position: relative;
    z-index: 2;
    margin-top: -80px;
    margin-bottom: -80px;
    padding: 5rem 0;
}

.newsletter-box {
    background-color: #ededed;
    border: 5px solid var(--color-dark);
    padding: 3rem;
}

.newsletter-box h2 {
    font-family: var(--font-special);
    font-weight: 700;
    font-size: 1.8rem;
    text-transform: uppercase;
    color: var(--color-dark);
}

.newsletter-box p {
    font-family: var(--font-body);
    font-size: 1rem;
}

.newsletter-box .form-control {
    border-radius: 0;
    padding: 0.75rem 1rem;
    border: 1px solid #dfdfe3;
}

.newsletter-box .btn {
    border-radius: 0;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-special);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    /*color: var(--color-white);*/
}

.newsletter-box .btn:hover {
    background-color: var(--color-dark);
    border-color: var(--color-dark);
}