/* ============================================
   SUGAR KAPUSKÉPZÉS - MAIN CSS
   Design System from Figma
   ============================================ */

/* --- CSS VARIABLES --- */
:root {
    --color-black: #1E212B;
    --color-surf: #21A3CE;
    --color-grey: #5A6C72;
    --color-light-blue: #E8F7FD;
    --color-white: #FFFFFF;
    --color-shadow: #EAE9ED;
    --color-bg-gradient-start: rgba(231, 246, 253, 0.9);

    --font-primary: 'Reddit Sans', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    --radius-card: 24px;
    --radius-btn: 32px;
    --radius-tag: 4px;
    --shadow-card: 4px 4px 24px var(--color-shadow);

    --page-padding: 64px;
    --section-padding: 112px;
    --section-padding-md: 80px;
    --container-max: 1280px;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    color: var(--color-black);
    background: var(--color-white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s, opacity 0.2s;
}

/* --- CONTAINER --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--page-padding);
    width: 100%;
}

/* --- TYPOGRAPHY --- */
.heading-1 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 80px;
    line-height: 1;
    letter-spacing: -0.02em;
}

.heading-2 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 64px;
    line-height: 1.1;
}

.heading-3 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 56px;
    line-height: 1.1;
}

.heading-4 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
}

.heading-5 {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 24px;
    line-height: 1.1;
}

.heading-6 {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 24px;
    line-height: 1.1;
}

.tagline {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--color-surf);
}

.body-text {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    color: var(--color-grey);
}

.body-text-roboto {
    font-family: var(--font-secondary);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-grey);
}

.text-accent {
    color: var(--color-surf);
}

.text-white {
    color: var(--color-white);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-black);
    color: var(--color-white);
    border: 1px solid var(--color-black);
    border-radius: var(--radius-card);
    padding: 8px 20px;
}

.btn-primary:hover {
    background: var(--color-surf);
    border-color: var(--color-surf);
}

.btn-secondary {
    background: transparent;
    color: var(--color-black);
    border: 2px solid var(--color-black);
    border-radius: var(--radius-btn);
    padding: 12px 24px;
}

.btn-secondary:hover {
    background: var(--color-black);
    color: var(--color-white);
}

.btn-tertiary {
    background: none;
    border: none;
    color: var(--color-black);
    padding: 0;
    gap: 8px;
    font-weight: 600;
}

.btn-tertiary svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s;
}

.btn-tertiary:hover svg {
    transform: translateX(4px);
}

/* --- TAG --- */
.tag {
    display: inline-flex;
    align-items: center;
    background: var(--color-light-blue);
    border-radius: var(--radius-tag);
    padding: 4px 8px;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-black);
}

/* --- STARS --- */
.stars {
    display: flex;
    gap: 4px;
}

.stars svg {
    width: 20px;
    height: 19px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: var(--color-white);
    height: 72px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo img {
    height: 49px;
    width: auto;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    font-size: 16px;
    color: var(--color-black);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-surf);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.nav-dropdown-toggle svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s;
}

.nav-dropdown.open .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    padding: 16px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 100;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 8px;
    border-radius: 8px;
    font-size: 15px;
}

.nav-dropdown-menu a:hover {
    background: var(--color-light-blue);
}

/* Mobile menu */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-black);
    margin: 6px 0;
    transition: all 0.3s;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 824px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 0 0 48px 48px;
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(30, 33, 43, 0.9) 20%, rgba(30, 33, 43, 0.54) 80%);
    z-index: 1;
}

/* Decorative circles */
.hero::after {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    border: 1px solid rgba(33, 163, 206, 0.15);
    top: -100px;
    right: -100px;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
}

.hero-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 80px;
    line-height: 1;
    color: var(--color-white);
    margin-bottom: 24px;
}

.hero-title .accent {
    color: var(--color-surf);
}

.hero-text {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    color: var(--color-white);
    margin-bottom: 32px;
    max-width: 576px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero .btn-secondary {
    color: var(--color-white);
    border-color: var(--color-white);
}

.hero .btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-black);
}

/* ============================================
   SECTION - COMMON
   ============================================ */
.section {
    padding: var(--section-padding) 0;
    overflow: hidden;
}

.section-md {
    padding: var(--section-padding-md) 0;
}

.section-title {
    text-align: center;
    max-width: 768px;
    margin: 0 auto 80px;
}

.section-title .tagline {
    margin-bottom: 16px;
    display: block;
}

.section-title .heading-2 {
    margin-bottom: 24px;
}

.section-title-left {
    text-align: left;
    max-width: none;
    margin: 0 0 32px;
}

/* ============================================
   PILLARS (3 Cards)
   ============================================ */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.pillar-card {
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 100%), 
                linear-gradient(90deg, var(--color-surf) 0%, var(--color-surf) 100%);
    border-radius: var(--radius-card);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 356px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 4px 8px 32px var(--color-shadow);
}

/* Decorative ellipse */
.pillar-card::before {
    content: '';
    position: absolute;
    width: 300%;
    height: 300%;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    top: -200%;
    left: -200%;
    mix-blend-mode: plus-lighter;
}

.pillar-card-icon {
    align-self: flex-end;
    color: white;
    opacity: 0.6;
}

.pillar-card-icon svg {
    width: 48px;
    height: 48px;
}

.pillar-card-content {
    position: relative;
    z-index: 1;
}

.pillar-card-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    color: var(--color-white);
    margin-bottom: 16px;
}

.pillar-card-text {
    font-family: var(--font-secondary);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-white);
    margin-bottom: 24px;
}

.pillar-card .btn-tertiary {
    color: var(--color-black);
}

/* ============================================
   EVENT CARDS
   ============================================ */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

.event-card {
    background: var(--color-white);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-4px);
}

.event-card-image {
    position: relative;
    aspect-ratio: 405 / 270;
    overflow: hidden;
    background: linear-gradient(to top, rgba(33,163,206,0.36), rgba(33,163,206,0));
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-date {
    position: absolute;
    top: 0;
    right: 16px;
    background: var(--color-white);
    border-radius: 0 0 12px 12px;
    padding: 12px 4px;
    width: 112px;
    text-align: center;
}

.event-card-date .day-name {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 14px;
    color: var(--color-grey);
}

.event-card-date .day-number {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 24px;
    color: var(--color-black);
    line-height: 1.1;
}

.event-card-date .month-year {
    font-family: var(--font-secondary);
    font-weight: 400;
    font-size: 14px;
    color: var(--color-grey);
}

.event-card-body {
    padding: 24px;
}

.event-card-tags {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.event-card-title {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 24px;
    line-height: 1.1;
    color: var(--color-black);
}

.event-card-location {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    color: var(--color-black);
    margin-bottom: 8px;
}

.event-card-desc {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    color: var(--color-grey);
    margin-bottom: 16px;
}

.event-card-action {
    padding-top: 8px;
}

/* ============================================
   FOUNDATION SECTION
   ============================================ */
.foundation-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    min-height: 864px;
}

.foundation-content {
    padding: 112px 0;
}

.foundation-content .heading-2 {
    margin-bottom: 24px;
}

.foundation-content .body-text {
    margin-bottom: 24px;
}

.foundation-content .body-text strong,
.foundation-content .body-text b {
    color: var(--color-black);
    font-weight: 800;
}

.foundation-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.foundation-image {
    position: relative;
    padding: 56px 0;
}

.foundation-image-wrapper {
    border-radius: var(--radius-card);
    overflow: hidden;
    position: relative;
}

.foundation-image-wrapper img {
    width: 100%;
    height: 752px;
    object-fit: cover;
}

.foundation-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(33,163,206,0) 47%, rgba(33,163,206,0.21));
    pointer-events: none;
}

.foundation-logo {
    position: absolute;
    top: 79px;
    right: 14px;
    width: 174px;
    z-index: 2;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.stat-card {
    background: var(--color-white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.stat-number {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 56px;
    line-height: 1.1;
    color: var(--color-black);
}

.stat-label {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 24px;
    line-height: 1.1;
    color: var(--color-black);
    margin-bottom: 8px;
}

.stat-desc {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    color: var(--color-grey);
}

.stats-content .heading-3 {
    margin-bottom: 24px;
}

.stats-content .body-text {
    margin-bottom: 32px;
}

/* ============================================
   PUBLICATIONS / PRODUCTS
   ============================================ */
.publications-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 80px;
}

.publications-header .section-title-left {
    margin-bottom: 0;
    max-width: 768px;
}

.publications-slider {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
    scrollbar-width: none;
}

.publications-slider::-webkit-scrollbar {
    display: none;
}

.publication-card {
    flex: 0 0 296px;
    scroll-snap-align: start;
    transition: transform 0.3s;
}

.publication-card:hover {
    transform: translateY(-4px);
}

.publication-card-image {
    width: 304px;
    height: 365px;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    overflow: hidden;
    background: var(--color-shadow);
}

.publication-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.publication-card-content {
    padding-top: 16px;
}

.publication-card-title {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 16px;
    line-height: 1.4;
    color: var(--color-black);
    max-height: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.publication-card-format {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    color: var(--color-grey);
}

.publication-card-price {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 24px;
    line-height: 1.1;
    color: var(--color-black);
    margin-top: 8px;
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-shadow);
    transition: background 0.3s;
}

.slider-dot.active {
    background: var(--color-black);
}

.slider-arrows {
    display: flex;
    gap: 12px;
}

.slider-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--color-black);
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.slider-arrow:hover {
    background: var(--color-black);
    color: var(--color-white);
}

.slider-arrow:hover svg {
    stroke: var(--color-white);
}

.slider-arrow.disabled {
    opacity: 0.2;
    pointer-events: none;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-card);
    padding: 32px;
    box-shadow: var(--shadow-card);
}

.testimonial-stars {
    margin-bottom: 24px;
}

.testimonial-quote {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    color: var(--color-grey);
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 16px;
    color: var(--color-black);
}

.testimonial-role {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    color: var(--color-grey);
}

/* ============================================
   SPONSORS / LOGOS
   ============================================ */
.sponsors {
    text-align: center;
}

.sponsors .heading-5 {
    margin-bottom: 48px;
}

.sponsors-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.sponsors-grid img {
    max-height: 120px;
    width: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s;
}

.sponsors-grid img:hover {
    filter: grayscale(0);
}

/* ============================================
   NEWS / BLOG CARDS
   ============================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

.news-card {
    background: var(--color-white);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-4px);
}

.news-card-image {
    aspect-ratio: 405 / 270;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

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

.news-card-body {
    padding: 24px;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.news-card-date {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 14px;
    color: var(--color-grey);
}

.news-card-title {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 24px;
    line-height: 1.1;
    color: var(--color-black);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-card-excerpt {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    color: var(--color-grey);
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 3%, var(--color-bg-gradient-start) 73%);
}

.cta-card {
    background: var(--color-white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.cta-content {
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
}

.cta-content .heading-2 .accent {
    color: var(--color-surf);
}

.cta-image {
    aspect-ratio: 600 / 400;
}

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    overflow: hidden;
    padding: var(--section-padding-md) 0;
}

.footer-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.footer-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(30,33,43,0.9) 10%, rgba(30,33,43,0.72) 90%);
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
}

.footer-logo img {
    height: 49px;
    width: auto;
}

.footer-nav {
    display: flex;
    gap: 32px;
    list-style: none;
}

.footer-nav a {
    font-weight: 600;
    font-size: 16px;
    color: var(--color-white);
}

.footer-nav a:hover {
    color: var(--color-surf);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    color: var(--color-white);
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--color-surf);
}

.footer-social svg {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-copyright {
    font-weight: 600;
    font-size: 16px;
    color: var(--color-white);
}

.footer-legal a {
    font-weight: 400;
    font-size: 14px;
    color: var(--color-white);
    text-decoration: underline;
}

/* ============================================
   SECTION ACTIONS (centered button)
   ============================================ */
.section-actions {
    display: flex;
    justify-content: center;
}

/* ============================================
   PAGE TEMPLATES
   ============================================ */
.page-hero {
    background: var(--color-black);
    padding: 120px 0 80px;
    border-radius: 0 0 48px 48px;
    text-align: center;
}

.page-hero .heading-2 {
    color: var(--color-white);
}

.page-hero .tagline {
    margin-bottom: 16px;
    display: block;
}

.page-content {
    padding: 80px 0;
}

.page-content p {
    margin-bottom: 16px;
    line-height: 1.6;
}

.page-content h2, .page-content h3 {
    margin: 32px 0 16px;
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.02);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --page-padding: 32px;
        --section-padding: 80px;
    }

    .heading-1, .hero-title { font-size: 56px; }
    .heading-2 { font-size: 48px; }
    .heading-3 { font-size: 40px; }
    .heading-4 { font-size: 36px; }

    .pillars-grid,
    .events-grid,
    .testimonials-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .foundation-row {
        grid-template-columns: 1fr;
        gap: 48px;
        min-height: auto;
    }

    .foundation-content { padding: 0; }
    .foundation-image-wrapper img { height: 500px; }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .cta-card {
        grid-template-columns: 1fr;
    }

    .cta-image { aspect-ratio: 16/9; }

    .footer-top {
        flex-direction: column;
        gap: 32px;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --page-padding: 20px;
        --section-padding: 64px;
    }

    .heading-1, .hero-title { font-size: 42px; }
    .heading-2 { font-size: 36px; }
    .heading-3 { font-size: 32px; }
    .heading-4 { font-size: 28px; }
    .pillar-card-title { font-size: 32px; }
    .stat-number { font-size: 40px; }

    .navbar-toggle { display: block; }

    .navbar-right {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 32px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .navbar-right.open {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .nav-links a {
        font-size: 18px;
        padding: 12px 0;
        display: block;
    }

    .pillars-grid,
    .events-grid,
    .testimonials-grid,
    .news-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 600px;
        border-radius: 0 0 32px 32px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .publications-header {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .publication-card { flex: 0 0 260px; }

    .cta-content {
        padding: 32px 24px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Contact page responsive */
    .page-content [style*="grid-template-columns: 1fr 1fr"],
    .page-content [style*="grid-template-columns: 300px 1fr"],
    .page-content [style*="grid-template-columns: 1fr 300px"] {
        grid-template-columns: 1fr !important;
    }

    /* Video grids */
    .page-content [style*="grid-template-columns: repeat(auto-fill, minmax(400px"] {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for grids */
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
