/* ==========================================================================
   Saaththiyam Matrimony - Premium Informative & CMS Pages Styling
   Brand Colors: Royal Maroon (#880E4F / #6A0036) & Sacred Gold (#DAA520 / #D4AF37)
   ========================================================================== */

/* --- Page Hero / Banner --- */
.matrimony-page-hero {
    position: relative;
    background: linear-gradient(135deg, #4A0023 0%, #6A0036 35%, #880E4F 75%, #A81263 100%);
    padding: 60px 0 50px 0;
    color: #ffffff;
    overflow: hidden;
    box-shadow: inset 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.matrimony-page-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(218, 165, 32, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(255, 215, 0, 0.12) 0%, transparent 45%);
    pointer-events: none;
}

.matrimony-page-hero::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, #DAA520 0%, #FFD700 50%, #DAA520 100%);
}

.matrimony-page-hero .hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

.matrimony-page-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(218, 165, 32, 0.4);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #FFD700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 14px;
    backdrop-filter: blur(4px);
}

.matrimony-page-hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0 0 10px 0;
    line-height: 1.25;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.matrimony-page-hero .hero-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 16px 0;
    font-weight: 400;
}

.matrimony-page-hero .hero-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13.5px;
    margin: 0;
    list-style: none;
}

.matrimony-page-hero .hero-breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
}

.matrimony-page-hero .hero-breadcrumb li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.matrimony-page-hero .hero-breadcrumb li a:hover {
    color: #FFD700;
}

.matrimony-page-hero .hero-breadcrumb li.active {
    color: #FFD700;
    font-weight: 600;
}

.matrimony-page-hero .hero-breadcrumb li:not(:last-child)::after {
    content: "/";
    color: rgba(255, 255, 255, 0.4);
    margin-left: 2px;
}

/* --- Main Layout Section --- */
.matrimony-content-section {
    padding: 50px 0 70px 0;
    background: #FAF6F8;
    min-height: 600px;
}

.matrimony-content-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(106, 0, 54, 0.06), 0 2px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid #EFE4EB;
    position: relative;
    overflow: hidden;
    padding: 45px 50px;
    margin-bottom: 30px;
}

.matrimony-content-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #880E4F 0%, #DAA520 50%, #880E4F 100%);
}

/* --- Clean Typography & CMS Content Formatting --- */
.matrimony-article-body {
    color: #37333F;
    font-size: 15.5px;
    line-height: 1.85;
}

.matrimony-article-body h2 {
    color: #880E4F;
    font-size: 26px;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #F3E5EC;
    position: relative;
}

.matrimony-article-body h2::after {
    content: "";
    position: absolute;
    bottom: -2px; left: 0;
    width: 60px;
    height: 2px;
    background: #DAA520;
}

.matrimony-article-body h3 {
    color: #6A0036;
    font-size: 20px;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 14px;
}

.matrimony-article-body h4 {
    color: #880E4F;
    font-size: 17.5px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

.matrimony-article-body p {
    margin-bottom: 16px;
    color: #4A4453;
}

.matrimony-article-body strong {
    color: #26212D;
    font-weight: 600;
}

.matrimony-article-body hr {
    border: 0;
    border-top: 1px dashed #E2D1DA;
    margin: 35px 0;
}

/* --- Policy Blocks --- */
.policy-block, 
.matrimony-policy-card {
    background: #FFFFFF;
    border: 1px solid #EFE4EB;
    border-left: 4px solid #880E4F;
    border-radius: 10px;
    padding: 22px 26px;
    margin-bottom: 24px;
    transition: all 0.25s ease;
}

.policy-block:hover, 
.matrimony-policy-card:hover {
    border-left-color: #DAA520;
    box-shadow: 0 6px 20px rgba(136, 14, 79, 0.07);
    transform: translateY(-2px);
}

.policy-block h3, 
.matrimony-policy-card h3 {
    color: #880E4F !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    border: none !important;
    padding-left: 0 !important;
}

.policy-block ul, 
.matrimony-policy-card ul {
    list-style: none !important;
    margin: 12px 0 16px 0 !important;
    padding-left: 0 !important;
}

.policy-block ul li, 
.matrimony-policy-card ul li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    line-height: 1.7;
    color: #4A4453;
}

.policy-block ul li::before, 
.matrimony-policy-card ul li::before {
    content: "\f058";
    font-family: "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #880E4F;
    font-size: 14px;
}

/* --- Official Contact & Grievance Box --- */
.matrimony-official-card {
    background: linear-gradient(135deg, #FFF9FB 0%, #FFFDF9 100%);
    border: 1.5px solid #EAC8D7;
    border-radius: 12px;
    padding: 22px 26px;
    margin-top: 18px;
    box-shadow: 0 4px 15px rgba(136, 14, 79, 0.04);
}

.matrimony-official-card h5 {
    color: #880E4F;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.matrimony-official-card p {
    margin-bottom: 7px;
    font-size: 14.5px;
    color: #443E4E;
}

.matrimony-official-card a {
    color: #880E4F;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.matrimony-official-card a:hover {
    color: #DAA520;
    text-decoration: underline;
}

/* --- Alert Callout --- */
.matrimony-alert-box {
    background: #FFF4F7;
    border: 1px solid #F5C6D8;
    border-left: 4px solid #D81B60;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 20px 0;
    color: #6A0036;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.matrimony-alert-box i {
    font-size: 18px;
    color: #D81B60;
    margin-top: 2px;
}

/* --- Quick Jump Navigation (TOC) --- */
.matrimony-quick-jump {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid #EFE4EB;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.matrimony-quick-jump-label {
    font-size: 13.5px;
    font-weight: 700;
    color: #880E4F;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.matrimony-jump-pill {
    font-size: 12.5px;
    font-weight: 600;
    color: #6A0036;
    background: #FAF0F4;
    border: 1px solid #EBD5DF;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.matrimony-jump-pill:hover {
    background: #880E4F;
    color: #ffffff;
    border-color: #880E4F;
}

/* --- Matrimony Feature Grid (About Us & Safe Matrimony) --- */
.matrimony-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.matrimony-pillar-card {
    background: #ffffff;
    border: 1px solid #EFE4EB;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(106, 0, 54, 0.03);
}

.matrimony-pillar-card:hover {
    transform: translateY(-4px);
    border-color: #DAA520;
    box-shadow: 0 10px 25px rgba(136, 14, 79, 0.09);
}

.matrimony-pillar-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FAF0F4 0%, #FFF8E6 100%);
    border: 1.5px solid #F0D5E2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    color: #880E4F;
    font-size: 24px;
    transition: transform 0.2s ease;
}

.matrimony-pillar-card:hover .matrimony-pillar-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, #880E4F 0%, #A81263 100%);
    color: #FFD700;
    border-color: #880E4F;
}

.matrimony-pillar-title {
    font-size: 16.5px;
    font-weight: 700;
    color: #6A0036;
    margin-bottom: 8px;
}

.matrimony-pillar-desc {
    font-size: 13.5px;
    color: #5C5565;
    line-height: 1.6;
    margin: 0;
}

/* --- About Us Story Section --- */
.about-story-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.about-story-img-wrap {
    flex: 0 0 42%;
    position: relative;
}

.about-story-img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border: 3px solid #ffffff;
    outline: 2px solid #DAA520;
}

.about-story-badge {
    position: absolute;
    bottom: -15px;
    right: -10px;
    background: linear-gradient(135deg, #880E4F, #6A0036);
    color: #FFD700;
    border: 2px solid #DAA520;
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.about-story-text {
    flex: 1;
}

/* --- Mission & Vision Split --- */
.about-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 35px;
}

.about-vision-box {
    background: #ffffff;
    border: 1px solid #EFE4EB;
    border-radius: 12px;
    padding: 26px 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(106, 0, 54, 0.04);
}

.about-vision-box::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: #880E4F;
}

.about-vision-box.mission::before {
    background: #DAA520;
}

.about-vision-box h4 {
    color: #880E4F;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-vision-box p {
    font-size: 14.5px;
    color: #4A4453;
    line-height: 1.75;
    margin: 0;
}

/* --- Contact Us Specific Styles --- */
.contact-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.contact-metric-card {
    background: #ffffff;
    border: 1px solid #EFE4EB;
    border-radius: 12px;
    padding: 24px 18px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(136, 14, 79, 0.04);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-metric-card:hover {
    transform: translateY(-4px);
    border-color: #DAA520;
    box-shadow: 0 12px 30px rgba(136, 14, 79, 0.1);
}

.contact-metric-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FAF0F4 0%, #FFF8E6 100%);
    border: 1.5px solid #F0D5E2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    color: #880E4F;
    font-size: 22px;
}

.contact-metric-card:hover .contact-metric-icon {
    background: #880E4F;
    color: #FFD700;
    border-color: #880E4F;
}

.contact-metric-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #6A0036;
    margin-bottom: 6px;
}

.contact-metric-card p {
    font-size: 13.5px;
    color: #4A4453;
    line-height: 1.6;
    margin-bottom: 12px;
}

.contact-metric-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    background: #FAF0F4;
    color: #880E4F;
    border: 1px solid #EAD4E0;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-metric-btn:hover {
    background: #880E4F;
    color: #ffffff;
    border-color: #880E4F;
}

/* Contact Split Form & Sidebar */
.contact-split-row {
    display: flex;
    gap: 30px;
    margin-bottom: 35px;
}

.contact-form-column {
    flex: 1.4;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #EFE4EB;
    padding: 35px 35px;
    box-shadow: 0 8px 25px rgba(106, 0, 54, 0.04);
}

.contact-sidebar-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-column h3 {
    color: #880E4F;
    font-size: 22px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 6px;
}

.contact-form-column p.form-sub {
    color: #645D6D;
    font-size: 14px;
    margin-bottom: 24px;
}

.matrimony-form-group {
    margin-bottom: 18px;
}

.matrimony-form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #4A4453;
    margin-bottom: 6px;
}

.matrimony-form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 14.5px;
    border: 1.5px solid #E2D1DA;
    border-radius: 8px;
    background: #ffffff;
    color: #2D251E;
    transition: all 0.2s ease;
    outline: none;
}

.matrimony-form-control:focus {
    border-color: #880E4F;
    box-shadow: 0 0 0 3.5px rgba(136, 14, 79, 0.12);
}

textarea.matrimony-form-control {
    min-height: 100px;
    resize: vertical;
}

.matrimony-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #880E4F 0%, #A81263 100%);
    color: #ffffff;
    font-size: 15.5px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(136, 14, 79, 0.25);
    transition: all 0.25s ease;
}

.matrimony-btn-submit:hover {
    background: linear-gradient(135deg, #6A0036 0%, #880E4F 100%);
    box-shadow: 0 8px 22px rgba(136, 14, 79, 0.35);
    transform: translateY(-2px);
    color: #FFD700;
}

/* Sidebar VIP Support Card */
.contact-vip-card {
    background: linear-gradient(135deg, #6A0036 0%, #880E4F 100%);
    color: #ffffff;
    border-radius: 14px;
    padding: 30px 26px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(106, 0, 54, 0.18);
}

.contact-vip-card::after {
    content: "";
    position: absolute;
    bottom: -30px; right: -30px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: rgba(218, 165, 32, 0.15);
    pointer-events: none;
}

.contact-vip-card h4 {
    color: #FFD700;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-vip-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 20px;
    background: #25D366;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.contact-whatsapp-btn:hover {
    background: #1EBE5D;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.contact-call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-call-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #FFD700;
}

/* Map Frame */
.matrimony-map-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #EFE4EB;
    overflow: hidden;
    padding: 15px;
    box-shadow: 0 6px 20px rgba(106, 0, 54, 0.04);
}

.matrimony-map-card iframe {
    width: 100%;
    height: 340px;
    border: 0;
    border-radius: 10px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    .matrimony-content-card {
        padding: 30px 25px;
    }
    .about-story-row {
        flex-direction: column;
        gap: 25px;
    }
    .about-story-img-wrap {
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
    }
    .about-vision-grid {
        grid-template-columns: 1fr;
    }
    .contact-metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-split-row {
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    .matrimony-page-hero {
        padding: 40px 0 35px 0;
    }
    .matrimony-page-hero h1 {
        font-size: 26px;
    }
    .matrimony-page-hero .hero-subtitle {
        font-size: 14px;
    }
    .matrimony-content-card {
        padding: 24px 16px;
        border-radius: 12px;
    }
    .matrimony-article-body h2 {
        font-size: 22px;
    }
    .contact-metric-grid {
        grid-template-columns: 1fr;
    }
    .contact-form-column {
        padding: 24px 18px;
    }
}
