/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Variables --- */
:root {
    --mediaverse-red: hsl(356, 92%, 50%);
    --mediaverse-dark: hsl(220, 8%, 13%);
    --mediaverse-light: hsl(60, 22%, 96%);
}

/* --- Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', 'Inter', 'Open Sans', system-ui, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Utility Classes --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    transition: all 0.3s;
    background-color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
    padding: 0 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    height: 2rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #000;
}

.logo-sub {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    color: #000;
}

.desktop-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #374151;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--mediaverse-red);
}

.contact-btn {
    background-color: var(--mediaverse-red);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.contact-btn:hover {
    background-color: hsl(356, 92%, 45%);
}

.mobile-menu-btn {
    padding: 0.5rem;
    border-radius: 0.375rem;
    color: #374151;
}

.mobile-menu-btn:hover {
    color: var(--mediaverse-red);
}

.mobile-menu {
    background-color: white;
    padding: 1rem 0;
}

.mobile-menu a {
    display: block;
    text-align: center;
    padding: 0.5rem 0;
    color: #374151;
    font-weight: 500;
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: var(--mediaverse-red);
}

.mobile-menu .contact-btn {
    display: block;
    margin: 0.5rem 1rem;
    text-align: center;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    transition: opacity 1s;
    opacity: 0;
}

.carousel-slide.active {
    opacity: 1;
}

/* === CODE FIX START === */
/* Changed object-position from 'top' to 'center' to fix image centering. */
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* === CODE FIX END === */

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 10;
    padding: 0 1.5rem;
    padding-bottom: 8rem;
}

.hero-text {
    text-align: center;
    color: white;
    max-width: 56rem;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-accent {
    color: var(--mediaverse-red);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #e5e7eb;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.btn-primary {
    background-color: var(--mediaverse-red);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: hsl(356, 92%, 45%);
    transform: scale(1.05);
}

.btn-secondary {
    border: 2px solid white;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: white;
    color: #111827;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 20;
    background: none;
    border: none;
    cursor: pointer;
}

.carousel-control:hover {
    opacity: 1;
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 20;
}

.carousel-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.carousel-dot.active {
    background-color: white;
}

.scroll-down {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%) translateX(-50%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0) translateX(-50%);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* --- Partnership Section --- */
.partnership {
    padding: 4rem 0;
    background: linear-gradient(to bottom right, var(--mediaverse-light), white);
}

.partnership-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.partnership-image {
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
}

.partnership-badge {
    background-color: var(--mediaverse-red);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 1rem;
}

.partnership-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.partnership-description {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.partnership-cta {
    display: inline-flex;
    align-items: center;
    background-color: var(--mediaverse-red);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s;
}

.partnership-cta:hover {
    background-color: hsl(356, 92%, 45%);
}

.partnership-cta svg {
    margin-left: 0.5rem;
    transition: transform 0.2s;
}

.partnership-cta:hover svg {
    transform: translateX(0.25rem);
}

.partnership-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.tag {
    background-color: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

/* --- News Section --- */
.news {
    padding: 4rem 0;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.news-articles {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.news-article {
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #f3f4f6;
    transition: box-shadow 0.3s;
}

.news-article:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.news-grid {
    display: grid;
}

.news-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9fafb;
    padding: 2rem;
}

.news-image {
    width: 100%;
    max-width: 28rem;
    border-radius: 0.5rem;
}

.news-content {
    padding: 2rem;
}

.news-badge {
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 1rem;
}

.badge-blue {
    background-color: #2563eb;
}

.badge-green {
    background-color: #16a34a;
}

.news-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.news-excerpt {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    color: var(--mediaverse-red);
    font-weight: 600;
    transition: color 0.2s;
    border: none;
    background: none;
    cursor: pointer;
}

.read-more-btn:hover {
    color: hsl(356, 92%, 45%);
}

.read-more-btn svg {
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.news-full-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    color: #4b5563;
}

.news-full-content p {
    margin-bottom: 1rem;
}

/* Make the standalone TRAINING EVENT card a bit larger */
.news .single-article-container .news-article { max-width: 800px; }
.news .single-article-container .news-image { max-width: none; width: 100%; height: auto; }

/* --- Services Section --- */
.services {
    padding: 4rem 0;
    background-color: white;
}

.services-grid {
    display: grid;
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border: 1px solid #f3f4f6;
}

.service-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-color: rgba(229, 9, 20, 0.2);
}

.service-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.service-card:hover .service-title {
    color: var(--mediaverse-red);
}

.service-description {
    color: #4b5563;
    line-height: 1.6;
}

/* --- About Section --- */
.about {
    padding: 4rem 0;
    background-color: white;
}

.about-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.about-badge {
    background-color: #f3f4f6;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 1rem;
}

.about-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.about-description {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--mediaverse-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.25rem;
    color: white;
}

.feature-text {
    color: #4b5563;
}

.about-quote {
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--mediaverse-red);
}

.about-quote blockquote {
    color: #374151;
    font-weight: 500;
    font-style: italic;
}

.about-image {
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
}

/* --- Alliance Section --- */
.alliance {
    padding: 4rem 0;
    background: linear-gradient(to bottom right, var(--mediaverse-light), white);
}

.alliance-card {
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.alliance-grid {
    display: grid;
}

.alliance-content {
    padding: 2rem;
}

.alliance-logo {
    width: 8rem;
    margin-bottom: 2rem;
}

.alliance-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
}

.alliance-description {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.alliance-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.alliance-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alliance-feature svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--mediaverse-red);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.alliance-feature-text {
    color: #4b5563;
}

.alliance-link {
    display: inline-flex;
    align-items: center;
    color: var(--mediaverse-red);
    font-weight: 600;
    transition: color 0.2s;
}

.alliance-link:hover {
    color: hsl(356, 92%, 45%);
}

.alliance-link svg {
    margin-left: 0.5rem;
    transition: transform 0.2s;
}

.alliance-link:hover svg {
    transform: translateX(0.25rem);
}

.alliance-benefits {
    background-color: var(--mediaverse-red);
    padding: 2rem;
    color: white;
}

.benefits-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: rgba(254, 226, 226, 1);
}


/* --- Media Partners (icon gradients) --- */
.media-partners {
    padding: 4rem 1rem;
    background-color: #f9fafb;
}

.media-partners-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.media-partner-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.media-partner-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}
/* Make the icon itself use the gradient color */
.media-partner-icon i {
    background: inherit;                 /* inherit inline gradient from parent */
    -webkit-background-clip: text;       /* clip gradient to icon glyph */
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;                  /* ensure the glyph shows the gradient */
}

.media-partner-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.media-partner-card p {
    color: #4b5563;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .media-partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .media-partner-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Partnerships & Alliances: snippet parity (single-column, full-width images) */
#partnerships .news-grid { grid-template-columns: 1fr !important; grid-template-rows: auto auto; }
#partnerships .news-image-container { padding: 0; }
#partnerships .news-image { max-width: none; width: 100%; height: auto; border-radius: 0; }
#partnerships .news-content { padding: 2rem; }
#partnerships .news-article { overflow: hidden; }



/* Hero mobile parity: force desktop-like look on mobile (EN/AR) */
@media (max-width: 767px) {
  .hero { height: 100vh !important; }
  .carousel-slide { background-color: transparent !important; }
  .carousel-slide img { object-fit: cover !important; width: 100% !important; height: 100% !important; }
  .hero-content { align-items: flex-end !important; padding-bottom: 8rem !important; }
}
/* Ensure same framing as desktop on very small screens */
@media (max-width: 480px) {
  #slide-1 img { object-position: 65% 30% !important; }
  #slide-2 img { object-position: center 25% !important; }
  #slide-3 img { object-position: center 25% !important; }
}

/* --- Contact Section --- */
.contact {
    padding: 4rem 0;
    background: linear-gradient(to bottom right, #111827, var(--mediaverse-dark));
    color: white;
}

.contact-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--mediaverse-red);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.contact-text p:first-child {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-text a {
    color: #d1d5db;
    transition: color 0.2s;
}

.contact-text a:hover {
    color: white;
}

.contact-form-container {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    color: white;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--mediaverse-red);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.5);
}

.form-control::placeholder {
    color: #9ca3af;
}

textarea.form-control {
    resize: vertical;
    min-height: 6rem;
}

.submit-btn {
    background-color: var(--mediaverse-red);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.submit-btn:hover {
    background-color: hsl(356, 92%, 45%);
    transform: scale(1.05);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Footer --- */
footer {
    background-color: var(--mediaverse-dark);
    color: #d1d5db;
    padding: 4rem 1rem;
    margin-top: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo img {
    height: 2.5rem;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
    color: white;
}

.footer-logo-main {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
}

.footer-logo-sub {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.footer-tagline {
    color: #9ca3af;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--mediaverse-red);
    transform: translateY(-5px);
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.875rem;
}


/* Responsive Design */
@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
    
    .partnership-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .alliance-grid {
        grid-template-columns: 60% 40%;
    }
}

@media (min-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
    }
    
    .desktop-menu {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .news-content,
    .alliance-content {
        padding: 3rem;
    }
    
    .alliance-benefits {
        padding: 3rem;
    }
}

/* Mobile-specific fixes */
@media (max-width: 767px) {
   @media (max-width: 767px) {
    .about-grid { display: flex; flex-direction: column-reverse; }
    .news-articles { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .alliance-grid, .contact-grid { grid-template-columns: 1fr; }

    /* =================================================================== */
    /* ============== FINAL MOBILE FIX FOR PARTNERSHIP CARD ============== */
    /* This code ONLY applies to screens smaller than 768px.           */
    /* =================================================================== */

   /* 1. Give the background image more space by adjusting text padding */
    .hero-content {
        padding-bottom: 7rem;
    }

    /* 2. Custom-tune the position for EACH image to avoid covering faces */
    /* For the group photo, focus on the top right to avoid the main speaker */
    #slide-1 img {
        object-position: 85% 25%;
    }
    /* For the certificate photo, focus lower down to show the certificate */
    #slide-2 img {
        object-position: center 70%;
    }
    /* For the training photo, a top-center focus works well */
    #slide-3 img {
        object-position: center 25%;
    }
}