/**
 * Home Page V2 Styles - Modern Layouts
 * Hero Carousel, Asymmetric Grid, Bento Grid, Masonry Grid
 */

/* ==========================
   GLOBAL MOBILE FIXES
   ========================== */

* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

.container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

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

/* ==========================
   HERO CAROUSEL - MODERN STYLE
   ========================== */

.hero-carousel-v2 {
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero-slider-modern {
    position: relative;
}

.slide-modern {
    min-height: 550px;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 60px;
}

.hero-content-modern {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 30px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    animation: gentle-reveal 0.8s ease-out;
}

.hero-content-modern h1 {
    animation: gentle-reveal 1s ease-out 0.2s both;
}

.hero-content-modern p {
    animation: gentle-reveal 1s ease-out 0.4s both;
}

.hero-content-modern > div {
    animation: gentle-reveal 1s ease-out 0.6s both;
}

.hero-btn-primary,
.hero-btn-secondary {
    transition: all 0.3s ease;
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Slick Carousel Custom Styles */
.hero-slider-modern .slick-dots {
    bottom: 30px;
    z-index: 10;
}

.hero-slider-modern .slick-dots li button:before {
    font-size: 12px;
    color: white;
    opacity: 0.5;
}

.hero-slider-modern .slick-dots li.slick-active button:before {
    color: white;
    opacity: 1;
}

.hero-slider-modern .slick-prev,
.hero-slider-modern .slick-next {
    width: 50px;
    height: 50px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-slider-modern .slick-prev:hover,
.hero-slider-modern .slick-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-slider-modern .slick-prev {
    left: 30px;
}

.hero-slider-modern .slick-next {
    right: 30px;
}

/* Responsive Hero */
@media (max-width: 768px) {
    .slide-modern {
        min-height: 400px;
    }

    .hero-content-modern {
        padding: 80px 0 60px 0 !important;
    }

    .hero-content-modern h1 {
        font-size: 32px !important;
    }

    .hero-content-modern p {
        font-size: 16px !important;
    }

    .hero-slider-modern .slick-prev,
    .hero-slider-modern .slick-next {
        width: 40px;
        height: 40px;
    }

    .hero-slider-modern .slick-prev {
        left: 15px;
    }

    .hero-slider-modern .slick-next {
        right: 15px;
    }
}

/* ==========================
   MODERN HEADINGS
   ========================== */

.heading-v2 {
    font-size: 38px;
    font-weight: 600;
    color: var(--color-text);
    font-family: var(--font-primary);
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.2;
}

.heading-v2 .accent-text {
    color: var(--color-primary);
    position: relative;
}

.section-badge-v2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(40, 46, 121, 0.1);
    color: var(--color-primary);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.lead-text {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
}

/* ==========================
   HOME BOXES - ASYMMETRIC GRID
   ========================== */

.homeBoxes-v2 {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.asymmetric-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.grid-item.large {
    grid-column: span 6;
    grid-row: span 2;
}

.grid-item.medium {
    grid-column: span 6;
}

/* ==========================
   CARD V2 SYSTEM
   ========================== */

.card-v2 {
    position: relative;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 100%;
    min-height: 280px;
    transition: all 0.4s ease;
}

.card-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.card-v2 .card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.card-v2:hover .card-image {
    transform: scale(1.08);
}

.card-v2 .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(40, 46, 121, 0.85), rgba(40, 46, 121, 0.6));
}

.card-v2 .card-content {
    position: relative;
    z-index: 2;
    padding: 35px;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-icon {
    font-size: 42px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.card-v2 h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
}

.card-v2 p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 0;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    margin-top: 15px;
    opacity: 0.9;
    transition: all 0.3s ease;
    font-weight: 500;
}

.card-link:hover {
    opacity: 1;
    gap: 12px;
    color: white;
}

/* ==========================
   STATISTICS SECTION
   ========================== */

.stats-section-v2 {
    position: relative;
}

.stats-modern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card-modern {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.stat-card-modern .stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: transform 0.3s ease;
}

.stat-card-modern:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-card-modern .stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.stat-card-modern p {
    margin: 0;
    color: #666;
    font-size: 14px;
    font-weight: 600;
}

/* Responsive Stats Grid */
@media (max-width: 768px) {
    .stats-modern-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card-modern {
        padding: 20px;
    }

    .stat-card-modern .stat-number {
        font-size: 28px;
    }
}

/* ==========================
   BENTO GRID - ABOUT SECTION
   ========================== */

.about-v2 {
    padding: 80px 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.bento-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.bento-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.bento-item.span-2 {
    grid-column: span 2;
}

.bento-item.image-block {
    padding: 0;
    overflow: hidden;
    position: relative;
}

.bento-item.image-block img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.bento-item.image-block:hover img {
    transform: scale(1.1);
}

.bento-item.feature-block h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text);
}

.bento-item.feature-block p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ==========================
   MASONRY GRID - ADVANTAGES
   ========================== */

.advantages-v2 {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    position: relative;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.masonry-item {
    break-inside: avoid;
}

/* ==========================
   ADVANTAGE CARDS
   ========================== */

.advantage-card-v2 {
    background: white;
    border-radius: var(--border-radius);
    padding: 35px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.advantage-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.advantage-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.advantage-card-v2:hover::before {
    transform: scaleX(1);
}

.card-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.1;
    line-height: 1;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.advantage-card-v2:hover .icon-wrapper {
    transform: rotate(5deg) scale(1.1);
}

.advantage-card-v2 h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
}

.advantage-card-v2 p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ==========================
   EVENTS - COMPACT CARD GRID
   ========================== */

.events-v2 {
    padding: 60px 0;
    background: #ffffff;
}

.event-card-compact {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.event-card-compact:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-image-compact {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.event-card-compact:hover .event-image-compact {
    transform: scale(1.05);
}

.event-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-primary);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Legacy Timeline Styles */

.timeline {
    position: relative;
    padding: 50px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 45%;
    margin-bottom: 50px;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 55%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 15px;
    height: 15px;
    background: var(--color-primary);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(40, 46, 121, 0.2);
}

.timeline-item.left::before {
    right: -33px;
}

.timeline-item.right::before {
    left: -33px;
}

.timeline-content {
    position: relative;
}

/* ==========================
   EVENT CARDS
   ========================== */

.event-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.event-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.event-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.event-card:hover .event-image {
    transform: scale(1.1);
}

.event-info {
    padding: 25px;
}

.event-location {
    display: inline-block;
    background: rgba(40, 46, 121, 0.1);
    color: var(--color-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.event-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text);
}

.event-info p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ==========================
   RESPONSIVE GRIDS
   ========================== */

@media (max-width: 991px) {
    /* Asymmetric Grid */
    .asymmetric-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .grid-item.large,
    .grid-item.medium {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* Bento Grid */
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item.span-2 {
        grid-column: span 1;
    }

    /* Masonry Grid */
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Stats Grid */
    .stats-modern-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Timeline */
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 60px;
    }

    .timeline-item::before {
        left: 23px !important;
    }
}

@media (max-width: 768px) {
    /* Headings */
    .heading-v2 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .section-badge-v2 {
        font-size: 12px;
        padding: 6px 15px;
    }

    .lead-text {
        font-size: 16px;
    }

    /* Section Padding */
    .homeBoxes-v2,
    .about-v2,
    .advantages-v2,
    .events-v2,
    .stats-section-v2 {
        padding: 50px 0;
    }

    /* Hero Carousel */
    .slide-modern {
        min-height: 450px;
        padding-top: 40px;
    }

    .hero-content-modern {
        padding: 100px 0 70px 0 !important;
    }

    .hero-content-modern h1 {
        font-size: 36px !important;
    }

    .hero-content-modern p {
        font-size: 18px !important;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        padding: 12px 24px !important;
        font-size: 14px;
    }

    /* Home Boxes */
    .asymmetric-grid {
        gap: 15px;
    }

    /* Bento Grid */
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .bento-item.span-2 {
        grid-column: span 1;
    }

    .bento-item {
        padding: 25px;
    }

    /* Stats Cards */
    .stat-card-modern {
        padding: 20px;
    }

    .stat-card-modern .stat-icon {
        width: 45px;
        height: 45px;
    }

    .stat-card-modern .stat-number {
        font-size: 28px;
    }

    /* Masonry Grid */
    .masonry-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Cards */
    .card-v2 {
        min-height: 250px;
    }

    .card-v2 .card-content {
        padding: 25px;
    }

    .card-v2 h3 {
        font-size: 20px;
    }

    .card-icon {
        font-size: 36px;
    }

    /* Advantage Cards */
    .advantage-card-v2 {
        padding: 25px;
    }

    .icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }

    /* Event Cards */
    .event-card-compact {
        margin-bottom: 15px;
    }

    .event-image-compact {
        height: 150px;
    }

    .event-info h3 {
        font-size: 18px;
    }

    .event-info p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    /* Headings */
    .heading-v2 {
        font-size: 24px;
    }

    .lead-text {
        font-size: 15px;
    }

    /* Section Padding */
    .homeBoxes-v2,
    .about-v2,
    .advantages-v2,
    .events-v2,
    .stats-section-v2 {
        padding: 40px 0;
    }

    /* Hero Carousel */
    .slide-modern {
        min-height: 400px;
    }

    .hero-content-modern {
        padding: 80px 0 60px 0 !important;
    }

    .hero-content-modern h1 {
        font-size: 28px !important;
    }

    .hero-content-modern p {
        font-size: 16px !important;
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 15px;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 12px 20px !important;
    }

    /* Cards */
    .card-v2 h3 {
        font-size: 18px;
    }

    .card-v2 p {
        font-size: 14px;
    }

    .card-icon {
        font-size: 32px;
    }

    /* Advantage Cards */
    .advantage-card-v2 h3 {
        font-size: 18px;
    }

    .advantage-card-v2 p {
        font-size: 14px;
    }

    .card-number {
        font-size: 32px;
    }

    /* Stats */
    .stat-card-modern .stat-number {
        font-size: 24px;
    }

    .stat-card-modern p {
        font-size: 12px;
    }
}

@media (max-width: 375px) {
    /* Extra Small Devices */
    .heading-v2 {
        font-size: 22px;
    }

    .hero-content-modern h1 {
        font-size: 24px !important;
    }

    .hero-content-modern p {
        font-size: 14px !important;
    }

    .card-v2 .card-content,
    .advantage-card-v2,
    .bento-item {
        padding: 20px;
    }
}
