/* ================================================================
   SOS BLOCKS CSS - Public Website Block Rendering Styles
   SchoolOS 2.0 CMS Page Builder
   Trendy 2026 Glassmorphism UI with CSS Custom Properties
   ================================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES (Theme Engine)
   Overridden per-tenant via litThemeCSS in SOS_PublicMaster
   ============================================================ */
:root {
    --pub-primary: #5B4EE5;
    --pub-secondary: #7C6FF0;
    --pub-accent: #C9A84C;
    --pub-primary-light: rgba(91, 78, 229, 0.08);
    --pub-text: #1F2937;
    --pub-text-light: #6B7280;
    --pub-bg: #F9FAFB;
    --pub-card-bg: rgba(255, 255, 255, 0.75);
    --pub-border: rgba(0, 0, 0, 0.06);
    --pub-radius: 16px;
    --pub-font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --pub-font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --pub-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --pub-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   COLOR INHERITANCE FIX
   When a parent div sets color:#fff on a colored background,
   force child headings/paragraphs to inherit (override inline styles)
   ============================================================ */
div[style*="color:#fff"] h1,
div[style*="color:#fff"] h2,
div[style*="color:#fff"] h3,
div[style*="color:#fff"] h4,
div[style*="color:#fff"] h5,
div[style*="color:#fff"] h6,
div[style*="color: #fff"] h1,
div[style*="color: #fff"] h2,
div[style*="color: #fff"] h3,
div[style*="color: #fff"] h4,
div[style*="color: #fff"] h5,
div[style*="color: #fff"] h6 {
    color: #ffffff !important;
}

div[style*="color:#fff"] p,
div[style*="color: #fff"] p {
    color: rgba(255,255,255,0.9) !important;
}

/* ============================================================
   SECTION & CONTAINER
   ============================================================ */
.sos-block-section {
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}

.sos-block-section:first-child {
    padding-top: 0;
}

.sos-block-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.sos-section-title {
    font-family: var(--pub-font-heading);
    font-size: 32px;
    font-weight: 900;
    color: var(--pub-text);
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.sos-section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: var(--pub-primary);
    border-radius: 2px;
    margin: 16px auto 0;
}

.sos-no-data {
    text-align: center;
    padding: 40px 20px;
    color: var(--pub-text-light);
    font-size: 15px;
}

/* ============================================================
   GRID SYSTEM
   ============================================================ */
.sos-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.sos-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sos-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ============================================================
   HERO BANNER
   ============================================================ */
.sos-hero {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 80px 24px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--pub-primary) 0%, var(--pub-secondary) 50%, #A78BFA 100%);
}

.sos-hero-center { text-align: center; justify-content: center; }
.sos-hero-left { text-align: left; justify-content: flex-start; }
.sos-hero-right { text-align: right; justify-content: flex-end; }

.sos-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.sos-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.sos-hero-title {
    font-family: var(--pub-font-heading);
    font-size: 52px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.sos-hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 24px;
    font-weight: 400;
}

.sos-hero-left .sos-hero-subtitle { margin-left: 0; }
.sos-hero-right .sos-hero-subtitle { margin-right: 0; }

.sos-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sos-hero-btn:hover {
    background: #fff;
    color: var(--pub-primary);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   TEXT BLOCK
   ============================================================ */
.sos-text-block {
    font-size: 16px;
    line-height: 1.8;
    color: var(--pub-text);
    margin: 0 auto;
}

.sos-text-block h1, .sos-text-block h2, .sos-text-block h3, .sos-text-block h4 {
    font-family: var(--pub-font-heading);
    font-weight: 700;
    color: var(--pub-text);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

.sos-text-block p {
    margin-bottom: 1em;
}

.sos-text-block img {
    max-width: 100%;
    border-radius: var(--pub-radius);
    margin: 16px 0;
}

.sos-text-block ul, .sos-text-block ol {
    padding-left: 24px;
    margin-bottom: 1em;
}

.sos-text-block a {
    color: var(--pub-primary);
    text-decoration: underline;
}

/* ============================================================
   TEXT WITH IMAGE
   ============================================================ */
.sos-text-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.sos-text-image-img-left .sos-text-image-media {
    order: -1;
}

.sos-text-image-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--pub-text);
}

.sos-text-image-text h1, .sos-text-image-text h2, .sos-text-image-text h3, .sos-text-image-text h4 {
    font-family: var(--pub-font-heading);
    font-weight: 700;
    margin-bottom: 12px;
}

.sos-text-image-img {
    width: 100%;
    border-radius: var(--pub-radius);
    box-shadow: var(--pub-shadow);
    display: block;
}

.sos-text-image-caption {
    font-size: 13px;
    color: var(--pub-text-light);
    margin-top: 8px;
    text-align: center;
    font-style: italic;
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.sos-features-grid {
    display: grid;
    gap: 24px;
}

.sos-feature-card {
    padding: 32px;
    background: var(--pub-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--pub-radius);
    border: 1px solid rgba(255, 255, 255, 0.6);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.sos-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pub-shadow-hover);
}

.sos-feature-icon {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--pub-primary);
}

.sos-feature-title {
    font-family: var(--pub-font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--pub-text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.sos-feature-desc {
    font-size: 14px;
    color: var(--pub-text-light);
    line-height: 1.6;
    margin-bottom: 12px;
}

.sos-feature-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--pub-primary);
    text-decoration: none;
    transition: gap 0.3s ease;
}

.sos-feature-link:hover {
    gap: 10px;
}

/* ============================================================
   STAFF GRID
   ============================================================ */
.sos-staff-grid {
    display: grid;
    gap: 24px;
}

.sos-staff-card {
    text-align: center;
    padding: 28px 20px;
    background: var(--pub-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--pub-radius);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.sos-staff-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pub-shadow-hover);
}

.sos-staff-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    position: relative;
    border: 3px solid rgba(91, 78, 229, 0.12);
}

.sos-staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sos-staff-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 800;
    background: var(--pub-primary-light);
    color: var(--pub-primary);
    font-family: var(--pub-font-heading);
}

.sos-staff-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--pub-text);
    margin-bottom: 4px;
    line-height: 1.3;
}

.sos-staff-designation {
    font-size: 13px;
    color: var(--pub-text-light);
    line-height: 1.4;
}

.sos-staff-qualification {
    font-size: 12px;
    color: var(--pub-text-light);
    margin-top: 4px;
    font-style: italic;
}

.sos-staff-email {
    font-size: 12px;
    color: var(--pub-text-light);
    margin-top: 4px;
}

.sos-staff-email i {
    margin-right: 4px;
    color: var(--pub-primary);
    opacity: 0.6;
}

/* ============================================================
   TESTIMONIALS CAROUSEL
   ============================================================ */
.sos-testimonials {
    position: relative;
    overflow: hidden;
    padding: 0 48px;
}

.sos-testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 24px;
}

.sos-testimonial-card {
    min-width: calc(33.333% - 16px);
    padding: 32px;
    background: var(--pub-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--pub-radius);
    border: 1px solid rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.sos-testimonial-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--pub-text);
    font-style: italic;
    margin-bottom: 16px;
}

.sos-testimonial-content .fa-quote-left {
    font-size: 24px;
    color: var(--pub-primary);
    opacity: 0.3;
    margin-right: 8px;
    font-style: normal;
}

.sos-testimonial-rating {
    color: #F59E0B;
    font-size: 13px;
    margin-bottom: 12px;
}

.sos-testimonial-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sos-testimonial-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.sos-testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sos-testimonial-author {
    font-weight: 700;
    color: var(--pub-text);
    font-size: 14px;
    line-height: 1.3;
}

.sos-testimonial-role {
    font-size: 12px;
    color: var(--pub-text-light);
    line-height: 1.3;
}

.sos-testimonials-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--pub-border);
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--pub-text);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.sos-testimonials-nav button:hover {
    background: var(--pub-primary);
    color: #fff;
    border-color: var(--pub-primary);
}

.sos-testimonial-prev { left: 0; }
.sos-testimonial-next { right: 0; }

/* ============================================================
   STATS COUNTER
   ============================================================ */
.sos-stats-counter {
    padding: 60px 24px;
    text-align: center;
}

.sos-stats-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.sos-stat-item {
    min-width: 150px;
}

.sos-stat-icon {
    font-size: 36px;
    margin-bottom: 12px;
    color: var(--pub-primary);
}

.sos-stat-value {
    font-family: var(--pub-font-heading);
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    color: var(--pub-text);
}

.sos-stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--pub-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* ============================================================
   ACCORDION / FAQ
   ============================================================ */
.sos-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.sos-accordion-item {
    margin-bottom: 8px;
    border-radius: var(--pub-radius);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.sos-accordion-bordered .sos-accordion-item {
    border: 1.5px solid var(--pub-border);
}

.sos-accordion-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.sos-accordion-header {
    width: 100%;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--pub-card-bg);
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--pub-text);
    text-align: left;
    font-family: var(--pub-font-body);
    transition: background 0.3s ease;
}

.sos-accordion-header:hover {
    background: rgba(255, 255, 255, 0.95);
}

.sos-accordion-header i {
    transition: transform 0.3s ease;
    font-size: 14px;
    color: var(--pub-text-light);
    flex-shrink: 0;
    margin-left: 16px;
}

.sos-accordion-item.open .sos-accordion-header {
    color: var(--pub-primary);
}

.sos-accordion-item.open .sos-accordion-header i {
    transform: rotate(180deg);
    color: var(--pub-primary);
}

.sos-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 24px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--pub-text-light);
}

.sos-accordion-item.open .sos-accordion-body {
    max-height: 600px;
    padding: 0 24px 18px;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.sos-cta-banner {
    text-align: center;
    padding: 60px 24px;
    border-radius: var(--pub-radius);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pub-primary), var(--pub-secondary));
    color: #fff;
}

.sos-cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.sos-cta-heading {
    font-family: var(--pub-font-heading);
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.sos-cta-subtitle {
    font-size: 16px;
    opacity: 0.85;
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.sos-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: #fff;
    color: var(--pub-primary);
    font-weight: 700;
    font-size: 15px;
    border-radius: var(--pub-radius);
    margin-top: 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.sos-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   TIMELINE
   ============================================================ */
.sos-timeline {
    position: relative;
    padding-left: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.sos-timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--pub-border);
}

.sos-timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 32px;
}

.sos-timeline-item:last-child {
    margin-bottom: 0;
}

.sos-timeline-marker {
    position: absolute;
    left: -40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pub-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(91, 78, 229, 0.3);
}

.sos-timeline-year {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
}

.sos-timeline-content {
    background: var(--pub-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    border-radius: var(--pub-radius);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.sos-timeline-content h4 {
    font-family: var(--pub-font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--pub-text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.sos-timeline-content p {
    font-size: 14px;
    color: var(--pub-text-light);
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   VIDEO PLAYER
   ============================================================ */
.sos-video-player {
    position: relative;
    border-radius: var(--pub-radius);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 56.25%;
    background: #000;
}

.sos-video-player iframe,
.sos-video-player video {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: none;
}

/* ============================================================
   LOGO CAROUSEL
   ============================================================ */
.sos-logo-carousel {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.sos-logo-track {
    display: flex;
    gap: 48px;
    align-items: center;
}

.sos-logo-track.sos-logo-autoplay {
    animation: sosLogoScroll 30s linear infinite;
}

.sos-logo-track.sos-logo-autoplay:hover {
    animation-play-state: paused;
}

@keyframes sosLogoScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.sos-logo-item {
    flex-shrink: 0;
}

.sos-logo-item img {
    max-height: 60px;
    object-fit: contain;
    display: block;
}

.sos-logo-grayscale img {
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.sos-logo-grayscale img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.sos-contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.sos-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sos-form-group {
    margin-bottom: 16px;
}

.sos-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--pub-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.sos-form-group input,
.sos-form-group textarea,
.sos-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--pub-border);
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--pub-font-body);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    background: #fff;
    color: var(--pub-text);
}

.sos-form-group input:focus,
.sos-form-group textarea:focus,
.sos-form-group select:focus {
    border-color: var(--pub-primary);
    box-shadow: 0 0 0 3px rgba(91, 78, 229, 0.1);
}

.sos-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.sos-form-group input::placeholder,
.sos-form-group textarea::placeholder {
    color: #C0C5CC;
}

.sos-form-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: var(--pub-primary);
    color: #fff;
    border: none;
    border-radius: var(--pub-radius);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--pub-font-body);
}

.sos-form-submit:hover {
    background: var(--pub-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(91, 78, 229, 0.3);
}

.sos-form-success {
    text-align: center;
    padding: 40px;
    color: #10B981;
    font-size: 15px;
    font-weight: 600;
}

/* ============================================================
   IMAGE GALLERY GRID
   ============================================================ */
.sos-gallery-grid {
    display: grid;
    gap: 16px;
}

.sos-gallery-card {
    position: relative;
    border-radius: var(--pub-radius);
    overflow: hidden;
    cursor: pointer;
}

.sos-gallery-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.sos-gallery-card:hover img {
    transform: scale(1.05);
}

.sos-gallery-cover {
    position: relative;
    overflow: hidden;
}

.sos-gallery-cover img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.sos-gallery-card:hover .sos-gallery-cover img {
    transform: scale(1.05);
}

.sos-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sos-gallery-card:hover .sos-gallery-overlay {
    transform: translateY(0);
}

.sos-gallery-overlay h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.sos-gallery-overlay p {
    font-size: 12px;
    opacity: 0.8;
    margin: 4px 0 0;
}

/* Lightbox */
.sos-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.sos-lightbox.sos-lightbox-active {
    opacity: 1;
}

.sos-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.sos-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.sos-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   NEWS GRID
   ============================================================ */
.sos-news-grid {
    display: grid;
    gap: 24px;
}

.sos-news-card {
    background: var(--pub-card-bg);
    border-radius: var(--pub-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.sos-news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pub-shadow-hover);
}

.sos-news-image {
    overflow: hidden;
}

.sos-news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.sos-news-card:hover .sos-news-image img {
    transform: scale(1.03);
}

.sos-news-body {
    padding: 20px;
}

.sos-news-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--pub-primary-light);
    color: var(--pub-primary);
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.sos-news-title {
    font-family: var(--pub-font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--pub-text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.sos-news-date {
    font-size: 12px;
    color: var(--pub-text-light);
    margin-bottom: 8px;
}

.sos-news-date i {
    margin-right: 4px;
}

.sos-news-excerpt {
    font-size: 14px;
    color: var(--pub-text-light);
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   EVENTS
   ============================================================ */
.sos-events-grid {
    display: grid;
    gap: 24px;
}

.sos-event-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--pub-card-bg);
    border-radius: var(--pub-radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.sos-event-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--pub-shadow-hover);
}

.sos-event-date-badge {
    width: 60px;
    min-width: 60px;
    text-align: center;
    background: var(--pub-primary);
    color: #fff;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sos-event-date-day {
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.sos-event-date-month {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.sos-event-info h4 {
    font-family: var(--pub-font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--pub-text);
    margin-bottom: 6px;
    line-height: 1.3;
}

.sos-event-info p {
    font-size: 13px;
    color: var(--pub-text-light);
    line-height: 1.5;
    margin: 0;
}

.sos-event-meta {
    font-size: 12px;
    color: var(--pub-text-light);
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.sos-event-meta i {
    margin-right: 4px;
    color: var(--pub-primary);
    opacity: 0.7;
}

/* ============================================================
   DOWNLOADS LIST
   ============================================================ */
.sos-downloads-list {
    max-width: 800px;
    margin: 0 auto;
}

.sos-download-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--pub-card-bg);
    border-radius: var(--pub-radius);
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.sos-download-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.sos-download-icon {
    font-size: 24px;
    color: var(--pub-primary);
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.sos-download-info {
    flex: 1;
    min-width: 0;
}

.sos-download-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--pub-text);
    margin-bottom: 4px;
    line-height: 1.3;
}

.sos-download-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--pub-text-light);
    flex-wrap: wrap;
}

.sos-download-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sos-download-category {
    color: var(--pub-primary);
}

.sos-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--pub-primary);
    color: #fff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sos-download-btn:hover {
    background: var(--pub-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 78, 229, 0.3);
}

/* ============================================================
   ACHIEVEMENTS
   ============================================================ */
.sos-achievements-grid {
    display: grid;
    gap: 24px;
}

.sos-achievement-card {
    background: var(--pub-card-bg);
    border-radius: var(--pub-radius);
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.sos-achievement-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pub-shadow-hover);
}

.sos-achievement-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.sos-achievement-body {
    padding: 20px;
}

.sos-achievement-category {
    display: inline-block;
    padding: 4px 10px;
    background: var(--pub-primary-light);
    color: var(--pub-primary);
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.sos-achievement-body h4 {
    font-family: var(--pub-font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--pub-text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.sos-achievement-body p {
    font-size: 14px;
    color: var(--pub-text-light);
    line-height: 1.6;
    margin: 0 0 8px;
}

.sos-achievement-date {
    font-size: 12px;
    color: var(--pub-accent);
    font-weight: 600;
}

.sos-achievement-date i {
    margin-right: 4px;
}

/* ============================================================
   MAPS
   ============================================================ */
.sos-maps-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 0;
    border-radius: var(--pub-radius);
    overflow: hidden;
    min-height: 400px;
    border: 1px solid var(--pub-border);
}

.sos-maps-embed {
    position: relative;
    min-height: 400px;
}

.sos-maps-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
}

.sos-maps-info {
    padding: 32px;
    background: var(--pub-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.sos-maps-info h4 {
    font-family: var(--pub-font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--pub-text);
    margin-bottom: 20px;
}

.sos-maps-info p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--pub-text);
    line-height: 1.5;
}

.sos-maps-info p i {
    color: var(--pub-primary);
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

/* ============================================================
   EMBED
   ============================================================ */
.sos-embed {
    border-radius: var(--pub-radius);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.sos-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ============================================================
   VIEW ALL LINK
   ============================================================ */
.sos-view-all {
    text-align: center;
    margin-top: 32px;
}

.sos-view-all a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 2px solid var(--pub-primary);
    color: var(--pub-primary);
    border-radius: var(--pub-radius);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sos-view-all a:hover {
    background: var(--pub-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(91, 78, 229, 0.3);
}

.sos-view-all a i {
    transition: transform 0.3s ease;
}

.sos-view-all a:hover i {
    transform: translateX(4px);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 768px) {
    .sos-block-section {
        padding: 48px 0;
    }

    .sos-grid-3,
    .sos-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .sos-text-image {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .sos-text-image-img-left .sos-text-image-media {
        order: 0;
    }

    .sos-form-row {
        grid-template-columns: 1fr;
    }

    .sos-maps-container {
        grid-template-columns: 1fr;
    }

    .sos-maps-embed {
        min-height: 300px;
    }

    .sos-testimonial-card {
        min-width: calc(100% - 16px);
    }

    .sos-testimonials {
        padding: 0 36px;
    }

    .sos-hero {
        min-height: 400px;
        padding: 60px 20px;
    }

    .sos-hero-title {
        font-size: 32px;
    }

    .sos-hero-subtitle {
        font-size: 16px;
    }

    .sos-stat-value {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .sos-stats-grid {
        gap: 24px;
    }

    .sos-section-title {
        font-size: 26px;
    }

    .sos-cta-heading {
        font-size: 26px;
    }

    .sos-event-card {
        flex-direction: column;
    }

    .sos-event-date-badge {
        flex-direction: row;
        width: auto;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .sos-block-section {
        padding: 36px 0;
    }

    .sos-block-container {
        padding: 0 16px;
    }

    .sos-grid-2,
    .sos-grid-3,
    .sos-grid-4 {
        grid-template-columns: 1fr;
    }

    .sos-hero {
        min-height: 320px;
        padding: 48px 16px;
    }

    .sos-hero-title {
        font-size: 28px;
    }

    .sos-feature-card {
        padding: 24px;
    }

    .sos-stat-item {
        min-width: 120px;
    }

    .sos-timeline {
        padding-left: 32px;
    }

    .sos-timeline-item {
        padding-left: 24px;
    }

    .sos-timeline-marker {
        left: -32px;
        width: 32px;
        height: 32px;
    }

    .sos-timeline::before {
        left: 15px;
    }

    .sos-timeline-year {
        font-size: 10px;
    }

    .sos-gallery-card img,
    .sos-gallery-cover img {
        height: 180px;
    }

    .sos-testimonials {
        padding: 0;
    }

    .sos-testimonial-prev { left: 4px; }
    .sos-testimonial-next { right: 4px; }
}
