/*=====================================================
  Unified Component Styles - Frontend & Backoffice
=====================================================*/

/*-----------------------------------------------------
  Backoffice-Specific Component Styles
-----------------------------------------------------*/

/* Carousel Preview for Backoffice */
.carousel-preview {
    padding: 2rem;
    border: 2px dashed #ccc;
    background-color: #f9f9f9;
    text-align: center;
    color: #666;
    font-style: italic;
    font-size: 1rem;
}

.carousel-preview strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-style: normal;
    color: #333;
}

/*========================================
  Container Section Override
========================================*/
/* Full-bleed container for background color (or image) */
.columnsection {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Inner container to hold grid content */
.columnsection .container-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/*========================================
  HERO COMPONENT
========================================*/

/* Full-bleed hero background */
.hero {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    box-sizing: border-box;
    padding: 2rem 1rem;
}

/* Optional dark overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

/*-----------------------------------------------------
  Backoffice Hero Styles - Using Inline CSS in Template
-----------------------------------------------------*/
/* Note: Backoffice hero styles are now handled directly in hero.html template
   because shadow DOM selectors don't work reliably in Umbraco backoffice */

/* Hero content container */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

/* Headline styling */
.hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Paragraph text */
.hero-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* CTA container for hero */
.call-to-action-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Base button styling */
.call-to-action {
    background-color: #007bff;
    color: var(--hero-text-color, #fff);
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s;
}

.call-to-action:hover {
    background-color: #0056b3;
}

/*-----------------------------------------------------
  Overrides for Nested CTA Block Grid in Hero
-----------------------------------------------------*/

/* Ensure any nested block grid containers in the CTA container use Flex */
.hero .call-to-action-container .umb-block-grid__layout-container,
.hero .call-to-action-container .umb-block-grid__area-container {
    display: flex !important;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Force each nested grid area with data-area-col-span="6" to be 50% width */
.hero .call-to-action-container .umb-block-grid__area[data-area-col-span="6"] {
    flex: 0 1 calc(50% - 20px);
    box-sizing: border-box;
}

/* On mobile, force nested grid areas to stack full width */
@media (max-width: 768px) {
    .hero .call-to-action-container .umb-block-grid__area[data-area-col-span="6"] {
        flex: 0 1 100%;
    }
}

/*========================================
  RESPONSIVE ADJUSTMENTS FOR HERO
========================================*/
@media (max-width: 768px) {
    .hero {
        min-height: 300px;
        padding: 1.5rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .call-to-action {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/*=====================================================
  CARD COMPONENT
=====================================================*/
.alhuda-card {
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    height: 400px;
    width: 300px;
    max-width: 300px;
    min-width: 300px;
    box-sizing: border-box;
}

.alhuda-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.alhuda-card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.alhuda-card-title {
    font-size: 1.2em;
    margin: 0 0 4px;
    font-weight: bold;
}

.alhuda-card-text {
    font-size: 0.9em;
    color: #555;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    max-height: 90px;
}

.alhuda-card-btn {
    margin-top: auto;
}

.alhuda-card-cta {
    display: inline-block;
    padding: 8px 12px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background 0.3s;
    align-self: flex-start;
}

.alhuda-card-cta:hover {
    background: #0056b3;
}


/*=====================================================
  CONTACT FORM COMPONENT
=====================================================*/
.contact-form-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    max-width: 700px;
    width: 100%;
    margin: 3rem auto;
    box-sizing: border-box;
}

.contact-form-container h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #102b3f;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #007bff;
}

.contact-form label {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-form label span {
    color: #dc3545;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.name-group {
    display: flex;
    gap: 1rem;
}

.name-group input {
    flex: 1;
}

.contact-form button {
    width: 100%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    margin-top: 0.5rem;
}

.contact-form button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.contact-form button:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.validation-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: -0.75rem;
    margin-bottom: 1rem;
    display: block;
}

/* Success/Error States */
.form-success,
.form-error {
    text-align: center;
    padding: 2.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.form-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    color: #155724;
}

.form-success h2 {
    color: #155724;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.form-success::before {
    content: "✓";
    display: block;
    font-size: 3.5rem;
    color: #28a745;
    margin-bottom: 1rem;
    font-weight: bold;
}

.form-success p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.form-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    color: #721c24;
}

.form-error h2 {
    color: #721c24;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.form-error::before {
    content: "✕";
    display: block;
    font-size: 3.5rem;
    color: #dc3545;
    margin-bottom: 1rem;
    font-weight: bold;
}

.form-error p {
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }

    .contact-form-container h2 {
        font-size: 1.6rem;
    }

    .name-group {
        flex-direction: column;
        gap: 0;
    }

    .form-success::before,
    .form-error::before {
        font-size: 2.5rem;
    }
}

/*=====================================================
  MEMBERSHIP FORM COMPONENT
=====================================================*/
.membership-form-container {
    max-width: 800px;
    margin: 3rem auto;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.membership-form-container h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #102b3f;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #007bff;
}

.membership-form label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.membership-form input,
.membership-form select {
    width: 100%;
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: inherit;
}

.membership-form input:focus,
.membership-form select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Remove number input spinners */
.membership-form input[type="number"]::-webkit-inner-spin-button,
.membership-form input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.membership-form input[type="number"] {
    -moz-appearance: textfield;
}

.address-group {
    display: flex;
    gap: 1rem;
}

.address-group div {
    flex: 1;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

.membership-form button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.membership-form button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.membership-form button:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

@media (max-width: 768px) {
    .membership-form-container {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }

    .membership-form-container h2 {
        font-size: 1.6rem;
    }

    .address-group {
        flex-direction: column;
        gap: 0;
    }
}

/*=====================================================
  HEADLINE COMPONENT
=====================================================*/
/* Center headline component when it's alone in a section */
.headline-component:only-child {
    text-align: center;
    margin: 0 auto;
    display: block;
}

/* Center the area when it has only a headline */
.umb-block-grid__area:has(.headline-component:only-child) {
    justify-content: center;
    align-items: center;
}

/*=====================================================
  IMAGE AND RICH TEXT COMPONENTS
=====================================================*/
img.image {
    object-fit: cover;
    max-height: 500px;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.rich-text {
    max-width: 100vw;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.6;
    font-size: 1rem;
}

/* Rich Text Inherit Section Contrast */
.rich-text-inherit-contrast {
    color: inherit;
}

/* When section has bright-contrast, ensure rich text uses white text */
.columnsection.bright-contrast .rich-text-inherit-contrast {
    color: #ffffff;
}

.columnsection.bright-contrast .rich-text-inherit-contrast a:hover {
    color: #cccccc;
}

.rich-text img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
}

.rich-text > p:first-child {
    margin-top: 0;
}

/*=====================================================
  CAROUSEL COMPONENT
=====================================================*/
.carousel-container.full-bleed {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
}

.glide {
    max-width: 1200px;
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.glide__slides {
    display: flex;
    align-items: stretch;
}

.glide__slide {
    display: flex;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.carousel-card {
    display: flex;
    flex: 1;
    justify-content: space-between;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    padding: 15px;
    box-sizing: border-box;
    width: 100%;
    height: 400px;
    margin: 0 auto;
}

.carousel-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
}

.carousel-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}

.carousel-card h3 {
    font-size: 1.2em;
    margin: 10px 0 5px;
    font-weight: bold;
}

.carousel-card p {
    font-size: 0.9em;
    color: #555;
    line-height: 1.4;
    margin: 0;
}

/* Glide.js Arrow Styles */
.glide__arrows {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.glide__arrow {
    pointer-events: auto;
    background: #444;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

.glide__arrow:hover {
    background: #666;
}

.glide__arrow--disabled {
    display: block !important;
    opacity: 0.5 !important;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .carousel-card {
        width: 400px;
    }
}

@media (max-width: 768px) {
    .carousel-card {
        width: 90%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .glide__slide {
        max-width: 600px !important;
    }
}

/*=====================================================
  MOSQUE STATS COMPONENT
=====================================================*/
.mosque-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

.stat-box {
    text-align: center;
    padding: 1rem 0;
}

.stat-icon {
    font-size: 2.5rem;
    color: #b89a6a;
    margin-bottom: 0.5rem;
}

.highlight-icon {
    color: #f7e702;
}

.stat-box h2 {
    font-size: 2.5rem;
    margin: 0.5rem 0;
    color: #333;
}

.stat-box p {
    font-size: 0.85rem;
    line-height: 1.2;
    color: #333;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .footer-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

/*=====================================================
  PARTNERS COMPONENT
=====================================================*/
.partners-section {
    padding: 3rem 1rem;
    text-align: center;
}

.partners-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.partners-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    justify-items: center;
    align-items: center;
}

.partner-logo img {
    max-width: 100px;
    height: auto;
    display: block;
}

.partner-logo img:hover {
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .partners-logos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .partners-logos {
        grid-template-columns: 1fr;
    }
}

/*=====================================================
  UNIFIED CONTENT CARDS (Activities & Articles)
=====================================================*/
.content-list-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

.content-card {
    display: flex;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.content-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.content-card-image {
    flex: 0 0 280px;
    overflow: hidden;
    background: #f5f5f5;
}

.content-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.content-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.content-card:hover .content-card-image img {
    transform: scale(1.05);
}

.content-card-body {
    flex: 1;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}

.content-card-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.content-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-card-title a:hover {
    color: #007bff;
}

.content-card-meta {
    margin-bottom: 0.75rem;
}

.content-card-date {
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
}

.content-card-description {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
    margin: 0 0 1.25rem 0;
    flex: 1;
}

.content-card-link {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.content-card-link:hover {
    background: #0056b3;
    transform: translateX(2px);
}

@media (max-width: 768px) {
    .content-list-container {
        padding: 1rem 0;
        gap: 1rem;
    }

    .content-card {
        flex-direction: column;
    }

    .content-card-image {
        flex: 0 0 200px;
        width: 100%;
    }

    .content-card-body {
        padding: 1.25rem;
    }

    .content-card-title {
        font-size: 1.3rem;
    }

    .content-card-description {
        font-size: 0.95rem;
    }
}

.activity-detail-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.activity-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.activity-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 20px;
}

.activity-ingress {
    font-size: 1.1rem;
    font-weight: 500;
    color: #444;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    border-radius: 4px;
}

.activity-ingress p {
    margin: 0;
    line-height: 1.6;
}

.activity-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.activity-body {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/*=====================================================
  HERO WITH PRAYER TIMES COMPONENT
=====================================================*/
.hero-with-prayer-times {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    box-sizing: border-box;
    padding: 3rem 1rem;
}

.hero-prayer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.hero-prayer-container {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 2rem;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-prayer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.hero-prayer-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: #fff;
}

.hero-prayer-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-prayer-text p {
    margin: 0 0 1rem 0;
}

.hero-prayer-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-prayer-cta .call-to-action {
    background-color: #007bff;
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s;
    display: inline-block;
}

.hero-prayer-cta .call-to-action:hover {
    background-color: #0056b3;
}

.hero-prayer-times {
    flex: 0 0 400px;
    display: flex;
    align-items: center;
}

.prayer-times-embed {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.prayer-times-embed iframe {
    display: block;
    width: 100%;
    border: none;
}

/* Ensure nested block grid CTAs display properly */
.hero-prayer-cta .umb-block-grid__layout-container,
.hero-prayer-cta .umb-block-grid__area-container {
    display: flex !important;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-prayer-cta .umb-block-grid__area {
    flex: 0 1 auto;
}

/* Responsive design */
@media (max-width: 968px) {
    .hero-with-prayer-times {
        min-height: 600px;
        padding: 2rem 1rem;
    }

    .hero-prayer-container {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-prayer-times {
        flex: 1 1 auto;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-prayer-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-with-prayer-times {
        padding: 1.5rem 1rem;
    }

    .hero-prayer-content h1 {
        font-size: 1.8rem;
    }

    .hero-prayer-text {
        font-size: 0.95rem;
    }

    .hero-prayer-times {
        max-width: 100%;
    }
}


/*=====================================================
  PAGE HEADER SECTION - Hero Style
=====================================================*/
.page-header-section {
    /* Full bleed layout - same as hero */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    min-height: 300px;
    
    /* Background styling - same as hero */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Layout - same as hero */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
    box-sizing: border-box;
    
    /* Text color - same as hero */
    color: #fff;
}

/* Note: No dark overlay for solid color backgrounds */

.page-title {
    position: relative;
    z-index: 1;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .page-header-section {
        min-height: 200px;
        padding: 2rem 1rem;
    }

    .page-title {
        font-size: 2rem;
    }
}

/*=====================================================
  PAGINATION
=====================================================*/
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2.5rem 0 2rem 0;
    flex-wrap: wrap;
}

.pagination-link {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.pagination-link:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.pagination-link.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
    font-weight: 600;
}

.pagination-link.active:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.article-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.article-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.article-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

.article-ingress {
    font-size: 18px;
    font-weight: 500;
    color: #444;
    margin-bottom: 20px;
}

.article-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.article-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

@media (max-width: 600px) {
    .article-container {
        padding: 15px;
    }
}
