/*
Theme Name: Groupamat
Theme URI: https://groupamat.com/
Author: RAHMANI AbdElFattah (F7k-B0y)
Author URI: https://about.me/f7k.b0y
Description: A Premium and Responsive WordPress theme, designed for E-Commerce websites
Template: cozycorner
Version: 1.0.1
Tags: two-columns, left-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
Text Domain: groupamat
*/

/* Preserve the homepage hero typography while exposing its primary heading semantically. */
.elementor-element-dc521db .ard-home-h1 {
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    margin: 0;
    padding: 0;
}

/* Keep quote-page hero titles white after semantic heading conversion. */
.elementor-element-740852b1 .elementor-heading-title,
.elementor-element-4f8d04e3 .elementor-heading-title {
    color: #fff !important;
}

.ard-semantic-h1.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Groupamat member access button */
.groupamat-member-button > a { background:#ed1c24 !important; color:#fff !important; border-radius:4px; padding:10px 18px !important; font-weight:700; line-height:1.2; }
.groupamat-member-button > a:hover, .groupamat-member-button > a:focus { background:#c9151b !important; color:#fff !important; }
@media (max-width: 767px) { .groupamat-member-button > a { display:block; margin:8px 0; text-align:center; } }

/* Partner brand pages — adapted from the Groupamat design handoff. */
.groupamat-marque-single { color:#1b2230; background:#fff; }
.mp-container { max-width:1520px; margin:0 auto; padding-left:40px; padding-right:40px; }
.mp-hero-section { background:#fff; }
.mp-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,420px); gap:56px; align-items:center; padding-top:76px; padding-bottom:76px; }
.mp-eyebrow { display:block; margin-bottom:14px; color:#e51e1e; font-size:12.5px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.mp-hero h1 { margin:0; color:#0c1a3a; font-size:clamp(40px,5vw,56px); line-height:1.05; font-weight:800; letter-spacing:-.02em; }
.mp-lead { max-width:560px; margin:18px 0 0; color:#5b6473; font-size:18px; line-height:1.6; font-weight:500; }
.mp-text-link { display:inline-flex; align-items:center; gap:8px; margin-top:22px; color:#e51e1e; font-size:15px; font-weight:700; transition:gap .18s ease,color .18s ease; }
.mp-text-link:hover { gap:12px; color:#c81616; }
.mp-logo-panel { display:flex; align-items:center; justify-content:center; width:100%; min-height:280px; aspect-ratio:16/10; padding:34px; overflow:hidden; border-radius:16px; background:#f5f6f8; }
.mp-logo-panel img { display:block; max-width:90%; max-height:220px; width:auto; height:auto; object-fit:contain; }
.mp-logo-fallback { color:#0c1a3a; font-size:110px; line-height:1; font-weight:800; }
.mp-intro-section { background:#fff; }
.mp-intro { padding-top:10px; padding-bottom:76px; }
.mp-prose { max-width:780px; color:#3a4254; font-size:17px; line-height:1.75; }
.mp-prose h2 { margin:30px 0 14px; color:#0c1a3a; font-size:29px; line-height:1.2; font-weight:800; letter-spacing:-.015em; }
.mp-prose p { margin:0 0 26px; }
.mp-prose > :first-child { margin-top:0; }
.mp-info-section { border-top:1px solid #eaedf2; background:#f5f6f8; }
.mp-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; padding-top:56px; padding-bottom:76px; }
.mp-card { padding:26px 28px; border:1px solid #e6e9ef; border-radius:16px; background:#fff; box-shadow:0 1px 2px rgba(2,25,66,.05); transition:transform .22s ease,box-shadow .22s ease,border-color .18s ease; }
.mp-card:hover { border-color:#ffb3b0; box-shadow:0 20px 40px -20px rgba(2,25,66,.28); transform:translateY(-4px); }
.mp-card-icon { display:inline-flex; align-items:center; justify-content:center; width:48px; height:48px; margin-bottom:16px; border-radius:12px; background:#FCEEED; color:#e51e1e; font-size:16px; }
.mp-card h2 { margin:0 0 8px; color:#0c1a3a; font-size:18px; line-height:1.3; font-weight:800; }
.mp-card p { margin:0; color:#5b6473; font-size:15px; line-height:1.6; }
.mp-cta-section { position:relative; overflow:hidden; background:#021942; }
.mp-cta { display:flex; align-items:center; justify-content:space-between; gap:40px; padding-top:60px; padding-bottom:64px; }
.mp-cta h2 { margin:0; color:#fff; font-size:clamp(28px,3.4vw,36px); line-height:1.18; font-weight:800; letter-spacing:-.018em; }
.mp-cta h2 span { color:#e51e1e; }
.mp-cta p { margin:12px 0 0; color:#b9c2d6; font-size:16.5px; line-height:1.6; }
.mp-button { display:inline-flex; align-items:center; justify-content:center; gap:12px; flex:none; padding:18px 28px; border-radius:12px; background:#e51e1e; color:#fff !important; font-size:16px; font-weight:800; transition:background .18s ease,transform .18s ease,box-shadow .18s ease; }
.mp-button:hover { background:#c81616; color:#fff !important; box-shadow:0 16px 30px -16px rgba(229,30,30,.6); transform:translateY(-2px); }
@media (max-width:900px) { .mp-container { padding-left:24px; padding-right:24px; } .mp-hero { grid-template-columns:1fr; gap:32px; padding-top:48px; } .mp-logo-panel { max-width:560px; } .mp-cards { grid-template-columns:1fr; } .mp-cta { flex-direction:column; align-items:flex-start; } .mp-button { width:100%; } }

/* Blog archive and article layout. */
.blog-container { width:min(1520px, calc(100% - 80px)); margin:0 auto; }
.blog-archive-header, .blog-single-header { border-top:1px solid #eaedf2; background:#fff; padding:70px 0 48px; }
.blog-eyebrow { display:block; margin-bottom:14px; color:#e51e1e; font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.blog-archive-header h1, .blog-single-header h1 { margin:0; color:#0c1a3a; font-size:clamp(40px,5vw,58px); line-height:1.08; font-weight:800; letter-spacing:-.03em; }
.blog-archive-header p { max-width:620px; margin:18px 0 0; color:#5b6473; font-size:18px; line-height:1.6; }
.blog-archive-section { background:#f5f6f8; border-top:1px solid #eaedf2; padding:60px 0 84px; }
.blog-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.blog-card { display:flex; flex-direction:column; overflow:hidden; border:1px solid #e6e9ef; border-radius:16px; background:#fff; box-shadow:0 2px 8px rgba(2,25,66,.04); transition:transform .22s ease,box-shadow .22s ease,border-color .18s ease; }
.blog-card:hover { transform:translateY(-4px); border-color:#ffb3b0; box-shadow:0 20px 40px -22px rgba(2,25,66,.3); }
.blog-card-image { display:flex; align-items:center; justify-content:center; aspect-ratio:16/9; overflow:hidden; background:#eef1f5; }
.blog-card-image img { display:block; width:100%; height:100%; object-fit:cover; }
.blog-card-image-fallback { color:#0c1a3a; font-size:24px; font-weight:800; }
.blog-card-body { display:flex; flex:1; flex-direction:column; padding:24px 26px 26px; }
.blog-card-meta { display:flex; align-items:center; gap:8px; color:#5b6473; font-size:12px; font-weight:600; }
.blog-card-meta span { color:#e51e1e; }
.blog-card h2 { margin:14px 0 10px; color:#0c1a3a; font-size:23px; line-height:1.2; font-weight:800; }
.blog-card h2 a { color:inherit; }
.blog-card p { margin:0; color:#687282; font-size:15px; line-height:1.6; }
.blog-card-link { display:inline-flex; gap:8px; align-items:center; margin-top:auto; padding-top:22px; color:#e51e1e; font-size:14px; font-weight:800; }
.blog-card-link:hover { color:#c81616; }
.blog-single-header { padding-bottom:40px; }
.blog-single-header .blog-card-meta { margin-bottom:18px; }
.blog-single-columns { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:56px; align-items:start; padding-top:20px; padding-bottom:90px; }
.blog-single-content { min-width:0; max-width:900px; color:#3a4254; font-size:17px; line-height:1.75; }
.blog-single-content h2 { margin:42px 0 16px; color:#0c1a3a; font-size:32px; line-height:1.2; font-weight:800; }
.blog-single-content h3 { margin:32px 0 12px; color:#0c1a3a; font-size:23px; line-height:1.25; font-weight:800; }
.blog-single-content p { margin:0 0 24px; }
.blog-single-content figure { margin:28px 0 36px; }
.blog-single-content img { display:block; max-width:100%; height:auto; border-radius:12px; }
.blog-single-content figcaption { margin-top:8px; color:#7a8493; font-size:13px; }
.blog-sidebar { display:flex; flex-direction:column; gap:20px; position:sticky; top:30px; }
.blog-sidebar-card { padding:25px; border:1px solid #e6e9ef; border-radius:16px; background:#fff; box-shadow:0 2px 8px rgba(2,25,66,.04); }
.blog-sidebar-card h2 { margin:0 0 16px; color:#0c1a3a; font-size:22px; line-height:1.25; font-weight:800; }
.blog-sidebar-card a:not(.blog-sidebar-button) { display:flex; justify-content:space-between; gap:15px; padding:13px 0; border-top:1px solid #eaedf2; color:#26334a; font-size:14px; font-weight:700; }
.blog-sidebar-card a:not(.blog-sidebar-button) span { color:#e51e1e; }
.blog-sidebar-card p { margin:0 0 20px; color:#687282; font-size:15px; line-height:1.6; }
.blog-sidebar-cta { background:#fceed; }
.blog-sidebar-button { display:inline-flex; justify-content:center; width:100%; padding:13px 16px; border-radius:10px; background:#e51e1e; color:#fff !important; font-size:14px; font-weight:800; }
@media (max-width:1000px) { .blog-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } .blog-single-columns { grid-template-columns:minmax(0,1fr) 280px; gap:30px; } }
@media (max-width:700px) { .blog-container { width:min(100% - 40px, 620px); } .blog-archive-header, .blog-single-header { padding:45px 0 32px; } .blog-archive-section { padding:36px 0 55px; } .blog-cards, .blog-single-columns { grid-template-columns:1fr; } .blog-sidebar { position:static; } .blog-single-content { font-size:16px; } }

.blog-related-section { border-top:1px solid #eaedf2; background:#f5f6f8; padding:64px 0 80px; }
.blog-related-section h2 { margin:0 0 26px; color:#0c1a3a; font-size:32px; line-height:1.2; font-weight:800; }
.blog-related-section .blog-card h3 { margin:14px 0 10px; color:#0c1a3a; font-size:21px; line-height:1.25; font-weight:800; }
