/*
Common Styles - RODA
Centralized styles that are used across multiple pages
*/

/* Section Title Styles */
.section-title {
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--primary-blue);
    font-weight: 500;
}

.section-title span {
    color: var(--text-light) !important;
    font-weight: 800;
}

.section-title:after {
    display: none; /* Disabled - using .title-underline div instead */
}

/* Title Underline Styles */
.title-underline {
    display: block;
    height: 1px;
    width: 33%;
    border: 3px solid var(--primary-blue);
    margin: 10px auto 0;
}

/* Standardized Section */
.standard-section {
    padding: 40px 0;
    background: white;
}

/* Darker background for alternating sections */
.standard-section.darker {
    background: linear-gradient(135deg, var(--primary-blue), #0a0a2e);
    color: white;
    position: relative;
    overflow: hidden;
}

.standard-section.darker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.standard-section.darker .container {
    position: relative;
    z-index: 2;
}

.standard-section.darker .section-header .modern-title,
.standard-section.darker .section-title {
    color: white !important;
}

.standard-section.darker .section-header .modern-title span,
.standard-section.darker .section-title span {
    color: white !important;
}

.standard-section.darker .section-header .section-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

.standard-section.darker .title-underline {
    background: white !important;
}

.standard-section.darker .section-header .title-underline {
    background: white !important;
}

.standard-section.darker .section-header .modern-title + .title-underline {
    background: white !important;
}

.standard-section.darker .section-header .title-underline {
    background: white !important;
    border-color: white !important;
}

.standard-section.darker .title-underline::after {
    background: white !important;
}

/* Schools section with lighter dark background */
.standard-section.schools-section {
    background: #f1f3f4;
}

/* Darker section content styling */
.standard-section.darker h1,
.standard-section.darker h2,
.standard-section.darker h3,
.standard-section.darker h4,
.standard-section.darker h5,
.standard-section.darker h6,
.standard-section.darker .darker-title {
    color: white !important;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.standard-section.darker p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.standard-section.darker a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.standard-section.darker a:hover {
    color: white !important;
}

.standard-section.darker .card,
.standard-section.darker .detail-card {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.standard-section.darker .card h4,
.standard-section.darker .card h5,
.standard-section.darker .detail-card h4,
.standard-section.darker .detail-card h5 {
    color: white !important;
}

.standard-section.darker .card p,
.standard-section.darker .detail-card p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.standard-section.darker .card a,
.standard-section.darker .detail-card a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.standard-section.darker .card a:hover,
.standard-section.darker .detail-card a:hover {
    color: white !important;
}

/* Standardized Section Header */
.section-header {
    text-align: center;
    margin-bottom: 1rem;
}

.section-header .section-title {
    margin-bottom: 1rem;
}

.section-header .modern-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue) !important;
    margin-bottom: 1rem;
    position: relative;
    letter-spacing: -1px;
}

.section-header .modern-title span {
    color: var(--primary-blue) !important;
    font-weight: 800;
}

.section-header .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive styles for standard-section */
@media(max-width: 768px) {
    .standard-section {
        padding: 30px 0;
    }
    
    .section-header .modern-title {
        font-size: 3rem;
        letter-spacing: -1px;
    }
}

@media(max-width: 576px) {
    .standard-section {
        padding: 20px 0;
    }
    
    .section-header .modern-title {
        font-size: 2.5rem;
    }
}

/* Responsive styles for section-title */
@media(min-width:768px) {
    .section-title:after {
        width: 16%;
    }
}

@media(min-width:992px) {
    .section-title {
        margin-bottom: 50px;
        font-size: 35px;
        letter-spacing: 2px;
    }

    .section-title:after {
        width: 12%;
    }
}

/* Specific section overrides */
.results .section-title {
    color: var(--text-light);
}

.trainers-list .section-title {
    color: var(--text-dark);
}

.trainers-list .section-title:after {
    border: 3px solid var(--primary-blue);
}

.trainers-list.about-us .section-title {
    color: var(--primary-blue);
}

.trainers-list.about-us .section-title:after {
    border: 3px solid var(--accent-blue) !important;
}

.schools-section .section-title span {
    color: var(--primary-blue) !important;
}

/* .newest-news .section-title styles moved to section-header include */
