/* --- START OF FILE static/css/style.css --- */

/* 1. GOOGLE FONTS IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Montserrat:wght@400;600;700;800&display=swap');

/* 2. VARIABLES */
:root {
    /* Brand Colors */
    --primary: #34A89E;
    /* Al Jannah Teal */
    --primary-dark: #2C8F86;
    /* Darker Teal for Hovers */
    --secondary: #12687A;
    /* Deep Petrol Blue */
    --secondary-dark: #0E5260;
    --accent: #6CC3E8;
    /* Sky Blue */

    /* Backgrounds */
    --bg-light: #F4FBFB;
    /* Very soft teal tint for sections */
    --bg-white: #FFFFFF;

    /* Text */
    --text-main: #2C3E50;
    /* Dark Slate */
    --text-light: #7F8C8D;
    /* Soft Grey */

    /* Typography */
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(18, 104, 122, 0.08);
    --shadow-md: 0 10px 30px rgba(18, 104, 122, 0.12);
    --shadow-lg: 0 20px 50px rgba(18, 104, 122, 0.15);
}

/* 3. GENERAL RESET & TYPOGRAPHY */
body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* 4. UTILITY CLASSES */
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.bg-light-mint {
    background-color: var(--bg-light) !important;
}

/* Section Spacing */
.section-padding {
    padding: 5rem 0;
}

/* 5. BUTTONS (Professional & Hover Effects) */
.btn {
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    /* Pill shape */
    font-family: var(--font-head);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 168, 158, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 168, 158, 0.5);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(18, 104, 122, 0.4);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 168, 158, 0.3);
}

/* 6. NAVBAR & TOP BAR */
.top-bar {
    background-color: var(--secondary);
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.8);
}

.top-bar a:hover {
    color: var(--accent);
}

.navbar {
    background: white;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.navbar-brand h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--secondary);
    font-weight: 800;
}

.nav-link {
    font-family: var(--font-head);
    color: var(--secondary) !important;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 5px;
    position: relative;
    padding: 10px 0 !important;
}

/* Nav Link Hover Animation */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* 7. CARDS & HOVER EFFECTS */
.hover-card {
    background: white;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    top: 0;
}

.hover-card:hover {
    top: -10px;
    /* Lift effect */
    box-shadow: var(--shadow-lg);
    border-color: rgba(52, 168, 158, 0.3);
}

/* 8. FOOTER */
footer {
    background-color: var(--secondary);
    color: white;
    position: relative;
    z-index: 1;
}

footer h5 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
    color: var(--primary);
    padding-left: 5px;
    /* Slight movement on hover */
}

/* 9. CUSTOM COMPONENTS */
.badge-soft {
    background-color: rgba(52, 168, 158, 0.1);
    color: var(--primary);
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.icon-box {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: 0.3s;
}

.hover-card:hover .icon-box {
    background: var(--primary);
    color: white;
    transform: rotateY(360deg);
}

/* Summernote Fix */
.note-editor.note-frame {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: none;
}

/* --- START OF FILE static/css/style.css (Append this to the bottom) --- */

/* MOBILE NAVBAR FIXES */
@media (max-width: 991px) {

    /* 1. Shrink the Main Title Text */
    .navbar-brand h1 {
        font-size: 1.1rem;
        /* Reduced from 1.5rem */
        line-height: 1.1;
        white-space: nowrap;
        /* Keeps text on one line if possible */
    }

    /* 2. Shrink the Tagline */
    .navbar-brand small {
        font-size: 0.6rem !important;
        letter-spacing: 0.5px;
        display: block;
        /* Ensures it sits under the title */
    }

    /* 3. Shrink the Logo Icon Circle */
    .navbar-brand .rounded-circle {
        width: 48px !important;
        /* Reduced from 50px */
        height: 48px !important;
    }

    /* 4. Shrink the Mosque Icon inside */
    .navbar-brand .rounded-circle i {
        font-size: 1rem;
        /* Smaller icon size */
    }

    /* 5. Adjust gap between logo and text */
    .navbar-brand {
        gap: 0.75rem !important;
        /* Reduce gap from 1rem */
    }

    /* 6. Ensure Hamburger Button stays aligned */
    .navbar-toggler {
        padding: 4px 8px;
        border: 1px solid #eee;
        /* Subtle border to define the button area */
    }
}

/* EXTRA SMALL DEVICES (iPhone SE, Fold, etc.) */
@media (max-width: 380px) {
    .navbar-brand h1 {
        font-size: 0.95rem;
        /* Even smaller for very narrow screens */
    }

    .navbar-brand small {
        font-size: 0.55rem !important;
    }
}

/* Video Container for Responsive Embeds */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 15px;
    /* Matches your theme */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* ANNOUNCEMENT BAR STYLES */
.announcement-bar {
    /* Eye-catchy Gradient: Deep Petrol to Vibrant Teal */
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-bar .badge {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.announcement-bar strong {
    color: #fff;
    /* Make title white for better contrast on gradient */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.announcement-bar a {
    color: white;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Hover arrows */
.announcement-bar .btn:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}


/* Fix for Third-Party Embeds (Google Forms, JotForm, etc.) */
.external-form-container {
    width: 100%;
    overflow: hidden;
    /* Prevents horizontal scrollbars */
    border-radius: 1rem;
}

.external-form-container iframe {
    /* Force the iframe to take full width of the container */
    width: 100% !important;
    max-width: 100% !important;
    max-height: 800px;

    /* Optional: Ensure it looks clean */
    border: none !important;
    border-radius: 1rem;
    display: block;
    margin: 0 auto;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden !important;
}

/* 2. RESPONSIVE TYPOGRAPHY */
@media (max-width: 768px) {

    /* Shrink giant headings on mobile */
    .display-1,
    .display-2,
    .display-3,
    .display-4,
    .display-5,
    .display-6 {
        font-size: 2.5rem !important;
        /* Much smaller for phones */
        word-wrap: break-word;
        /* Prevent long words from breaking layout */
    }

    /* Adjust Hero Lead text */
    .lead {
        font-size: 1rem !important;
        width: 100% !important;
        /* Remove w-75 or w-85 constraints on mobile */
    }

    /* Ensure containers have padding */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* --- START OF FILE static/css/style.css --- */

/* Media Section Styles */
.facebook-responsive {
    width: 100%;
    /* Fixed height to match a typical video player + content */
    height: 300px;

    display: flex;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 12px;
    /* Matches rounded-4 */
    overflow: hidden;
}

.facebook-responsive iframe {
    /* CRITICAL: Force the iframe to ignore the '340' in the code */
    height: 100% !important;

    border: none !important;
    display: block;
}

/* Video Container Style - Matched Height */
.video-container {
    position: relative;
    width: 100%;
    height: 400px;
    /* Match the Facebook height for symmetry */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures video fills the box without black bars if possible */
}