/* =========================================================
   AIPA TOURNAMENTS
   Modern sports-card design
   ========================================================= */

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

:root {
    --aipa-green: #075b3b;
    --aipa-dark: #043c28;
    --aipa-light: #eaf5ef;
    --aipa-yellow: #f4c430;
    --text-dark: #123f2d;
    --text-muted: #718078;
    --white: #ffffff;
}

body {
    font-family: "DM Sans", Arial, sans-serif;
    background:
        radial-gradient(circle at 10% 10%, rgba(7, 91, 59, 0.07), transparent 28%),
        radial-gradient(circle at 90% 90%, rgba(244, 196, 48, 0.08), transparent 25%),
        #f3f7f5;
    color: var(--text-dark);
    min-height: 100vh;
}

/* =========================================================
   MAIN SECTION
   ========================================================= */

.tournament-section {
    position: relative;
    max-width: 1250px;
    margin: 45px auto;
    padding: 42px;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(7, 91, 59, 0.08);
    border-radius: 28px;

    box-shadow:
        0 20px 60px rgba(3, 57, 38, 0.10);
}

/* Decorative circles */

.tournament-section::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -190px;
    top: -190px;
    border-radius: 50%;
    border: 55px solid rgba(7, 91, 59, 0.035);
    pointer-events: none;
}

.tournament-section::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    left: -160px;
    bottom: -160px;
    border-radius: 50%;
    border: 45px solid rgba(244, 196, 48, 0.06);
    pointer-events: none;
}

/* =========================================================
   HEADING
   ========================================================= */

.section-heading {
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 8px;

    color: var(--aipa-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.2px;
}

.section-heading h1 {
    color: var(--aipa-dark);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-heading p {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 15px;
}

.heading-line {
    position: relative;
    z-index: 2;
    width: 72px;
    height: 4px;
    margin: 18px 0 30px;

    border-radius: 20px;
    background: var(--aipa-yellow);
}

/* =========================================================
   PICKLEBALL MARK
   ========================================================= */

.pickleball-mark {
    position: relative;
    flex: 0 0 70px;

    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: var(--aipa-yellow);

    color: var(--aipa-dark);
    font-size: 27px;

    box-shadow:
        0 12px 25px rgba(4, 60, 40, 0.16);
}

.pickleball-mark span {
    position: absolute;
    inset: 6px;
    border: 2px dashed rgba(4, 60, 40, 0.28);
    border-radius: 50%;
}

/* =========================================================
   GRID
   ========================================================= */

.tournament-grid {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

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

.tournament-card {
    position: relative;
    min-height: 370px;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border-radius: 20px;
    background: #143f2e;

    box-shadow: 0 10px 30px rgba(3, 57, 38, 0.12);

    isolation: isolate;

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.tournament-card:hover {
    transform: translateY(-9px);
    box-shadow: 0 20px 45px rgba(3, 57, 38, 0.20);
}

/* =========================================================
   DUMMY PHOTOGRAPHS
   Replace these URLs with your own AIPA images later.
   ========================================================= */

.past-card .card-photo {
    background-image: url("img/image1.jpg");
}

.upcoming-card .card-photo {
    background-image: url("img/image2.jpg");
}

.domestic-card .card-photo {
    background-image: url("img/image3.jpg");
}

.global-card .card-photo {
    /*background-image: url("https://loremflickr.com/1200/900/pickleball,sport?lock=44");*/
	background-image: url("img/image4.jpg");
}

.card-photo {
    position: absolute;
    inset: 0;

    background-position: center;
    background-size: cover;

    transform: scale(1.02);

    transition:
        transform 0.7s ease,
        filter 0.7s ease;
}

.tournament-card:hover .card-photo {
    transform: scale(1.10);
}

/* =========================================================
   PHOTO OVERLAY
   ========================================================= */

.photo-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(3, 35, 24, 0.28) 0%,
            rgba(3, 35, 24, 0.20) 28%,
            rgba(3, 45, 29, 0.72) 65%,
            rgba(2, 35, 23, 0.96) 100%
        );

    z-index: 1;
}

/* =========================================================
   CARD TOP
   ========================================================= */

.card-top {
    position: relative;
    z-index: 3;

    padding: 20px 20px 0;
}

.event-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 11px;

    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 30px;

    background: rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(7px);

    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* =========================================================
   CARD CONTENT
   ========================================================= */

.card-content {
    position: relative;
    z-index: 3;

    padding: 20px;
}

.card-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 14px;

    border: 1px solid rgba(255,255,255,0.30);
    border-radius: 13px;

    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);

    color: #ffffff;
    font-size: 19px;
}

.card-content h2 {
    color: #ffffff;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
}

.card-content p {
    max-width: 330px;
    margin: 9px 0 20px;

    color: rgba(255,255,255,0.82);
    font-size: 13.5px;
    line-height: 1.55;
}

/* =========================================================
   BUTTON
   ========================================================= */

.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 11px 17px;

    border-radius: 30px;

    background: #ffffff;
    color: var(--aipa-dark);

    text-decoration: none;

    font-size: 13px;
    font-weight: 800;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.view-btn i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.view-btn:hover {
    background: var(--aipa-yellow);
    color: var(--aipa-dark);
    transform: translateX(3px);
}

.view-btn:hover i {
    transform: translateX(4px);
}

/* =========================================================
   GLOBAL CARD
   ========================================================= */

.global-card {
    grid-column: span 1;
}

/* Slightly stronger international feel */

.global-card .photo-overlay {
    background:
        linear-gradient(
            180deg,
            rgba(2, 30, 45, 0.18),
            rgba(2, 37, 28, 0.95)
        );
}

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

@media (max-width: 1000px) {

    .tournament-section {
        margin: 25px 18px;
        padding: 32px;
    }

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

}

@media (max-width: 650px) {

    .tournament-section {
        margin: 15px 10px;
        padding: 25px 18px 30px;
        border-radius: 20px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-heading p {
        max-width: 450px;
        line-height: 1.5;
    }

    .pickleball-mark {
        flex: 0 0 52px;
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .tournament-grid {
        grid-template-columns: 1fr;
    }

    .tournament-card {
        min-height: 350px;
    }

}

@media (max-width: 430px) {

    .section-heading {
        gap: 15px;
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .section-heading h1 {
        font-size: 28px;
    }

    .section-heading p {
        font-size: 13px;
    }

    .pickleball-mark {
        display: none;
    }

}
