/* ============================================================
   FILE: /assets/css/main.css
   PURPOSE: Global page styling for Roma Girls’ website
            Light blue → white → Roma deep blue background
            Clean margins, spacing, and professional layout
   ============================================================ */

/* ROOT VARIABLES */
:root {
    --rg-blue-light: #e8f3ff;      /* soft academic light blue */
    --rg-blue-white: #ffffff;      /* clean white */
    --rg-blue-deep: #002b5c;       /* Roma deep blue */
    --rg-gold: #d4af37;            /* Roma gold */
    --rg-muted: #6b7280;
    --rg-white: #ffffff;
    --rg-shadow: 0 8px 24px rgba(2,10,30,0.06);
    --rg-max-width: 1280px;
}

/* ============================================================
   GLOBAL BACKGROUND (Light blue )
   ============================================================ */



body {
    margin: 0;
    font-family: 'Nunito', sans-serif;

    /* Uniform light-blue background */
    background: #e8f3ff;   /* clean academic light blue */
    background-attachment: fixed;
}



/* ============================================================
   PAGE SHELL (white content area with margins)
   ============================================================ */

.rg-main {
    margin-top: 210px; /* matches fixed header height */
}

.rg-page-shell {
    background: rgba(255,255,255,0.96);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    margin: 20px auto;
    max-width: var(--rg-max-width);
    padding: 0 20px;
}

/* ============================================================
   SECTION SPACING
   ============================================================ */

.rg-section {
    padding: 40px 0;
}

.rg-section-soft {
    background: #f9f9f9;
    border-radius: 14px;
    padding: 40px 20px;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */

.rg-section-header {
    text-align: center;
    margin-bottom: 24px;
}

.rg-section-kicker {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--rg-gold);
    color: var(--rg-blue-deep);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rg-section-title {
    margin: 10px 0 6px;
    font-size: 26px;
    font-weight: 900;
    color: var(--rg-blue-deep);
}

.rg-section-lead {
    margin: 0 auto;
    max-width: 720px;
    color: var(--rg-muted);
}

/* ============================================================
   GRID LAYOUT
   ============================================================ */

.rg-container {
    max-width: var(--rg-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.rg-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    gap: 24px;
}

@media (max-width: 980px) {
    .rg-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   GOLD CAPSULES (controlled)
   ============================================================ */

.rg-pill-gold {
    background: var(--rg-gold);
    color: var(--rg-blue-deep);
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
    display: inline-block;
}

/* Prevent accidental capsule inheritance */
.rg-section-title,
.rg-news-title,
.rg-event-title,
.rg-hm-text,
.rg-tile-caption,
.rg-block-subtitle {
    background: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    color: inherit !important;
}

/* ============================================================
   TILES (Discover Roma Girls’ Distinction)
   ============================================================ */

.rg-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap: 20px;
    margin-top: 20px;
}

.rg-tile {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: var(--rg-shadow);
    text-decoration: none;
    color: var(--rg-blue-deep);
    transition: transform 0.2s ease;
}

.rg-tile:hover {
    transform: translateY(-4px);
}

.rg-tile-caption {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

/* ============================================================
   ROMABOT BLOCK
   ============================================================ */

.rg-bot-block {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg,
        var(--rg-blue-deep) 0%,
        #004b8f 40%,
        var(--rg-gold) 100%
    );
    color: #fff;
}

.rg-bot-text h2 {
    margin: 8px 0;
    font-size: 24px;
    font-weight: 900;
}

.rg-bot-footnote {
    font-size: 12px;
    opacity: 0.85;
}

.rg-bot-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.rg-bot-avatar span {
    font-size: 40px;
}

.rg-bot-caption {
    font-size: 13px;
    max-width: 220px;
    margin: 0 auto;
}

@media (max-width: 780px) {
    .rg-bot-block {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================================
   VIDEO BLOCK (wrapped + beautiful)
   ============================================================ */

.rg-video-block {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: var(--rg-shadow);
}

.rg-video-embed iframe {
    width: 100%;
    height: 360px;
    border-radius: 12px;
    border: none;
}

/* Allow special layouts to override container spacing */
body.news-archive .rg-container {
    padding: 0 24px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 560px) {
    .rg-container {
        padding: 0 14px;
    }

    .rg-section {
        padding: 30px 0;
    }

    .rg-page-shell {
        padding: 0 14px;
    }
}
