/* =========================================================
VARIABLES
========================================================= */

:root {
    --green: #007a3d;
    --green-dark: #005c2e;
    --green-light: #0aa65a;
    --red: #ce1126;
    --gold: #d99a25;
    --black: #080d0b;
    --dark: #111918;
    --white: #ffffff;
    --light: #f6f8f7;
    --muted: #71807b;
    --border: rgba(0,0,0,.07);
    --transition: all .35s cubic-bezier(.2,.8,.2,1);
}

.cat-badge {
    color: #fff;
}

.cat-opinion {
    background: var(--gold);
}

.cat-political {
    background: var(--red);
}

.cat-activities {
    background: var(--green);
}

.cat-social {
    background: var(--dark);
}

.cat-default {
    background: var(--muted);
}

/* =========================================================
RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Cairo', sans-serif;
    color: var(--dark);
    background: var(--light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

::selection {
    color: white;
    background: var(--green);
}

/* =========================================================
   NAVBAR — GLASSMORPHISM
   ========================================================= */

.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    min-height: 78px;
    /* شفاف في البداية */
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: min-height 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

/* تفعيل ظهور القائمة المنسدلة عند مرور الماوس (Hover Dropdown) */
.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* إزالة الفراغ الوهمي لتبقى القائمة متصلة بالزر */
}

/* تنسيق شكل القائمة المنسدلة */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
    animation: fadeInDropdown 0.3s ease;
}

.dropdown-item {
    font-weight: 600;
    color: #1F2937;
    padding: 10px 20px;
    transition: all 0.2s ease;
}

    .dropdown-item:hover {
        background-color: rgba(0, 122, 61, 0.08);
        color: #007A3D;
        padding-right: 25px; /* تأثير حركة خفيفة لداخل العنصر عند المرور */
    }

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
NAVBAR AFTER SCROLL
========================================================= */

.main-navbar.scrolled {
    min-height: 66px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border-bottom: 1px solid rgba(0, 122, 61, 0.10);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   NAVBAR CONTAINER
   ========================================================= */

.main-navbar .container {
    min-height: 78px;
    display: flex;
    align-items: center;
    transition: min-height 0.35s ease;
}


.main-navbar.scrolled .container {
    min-height: 66px;
}


/* =========================================================
   BRAND
   ========================================================= */

.main-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--syria-green) !important;
    font-weight: 900;
    white-space: nowrap;
    transition: transform 0.3s ease;
}


    .main-navbar .navbar-brand:hover {
        transform: translateY(-2px);
    }


/* =========================================================
   BRAND SYMBOL
   ========================================================= */
.brand-logo-wrapper {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    transition: width 0.35s ease, height 0.35s ease, transform 0.35s ease;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.main-navbar .navbar-brand:hover .brand-logo {
    transform: scale(1.06);
}

.main-navbar.scrolled .brand-logo-wrapper {
    width: 46px;
    height: 46px;
}

.brand-symbol {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 1.15rem;
    font-weight: 900;
    background: linear-gradient( 135deg, var(--syria-green), #005b2d );
    box-shadow: 0 7px 20px rgba(0, 122, 61, 0.25);
    position: relative;
    overflow: hidden;
    transition: width 0.35s ease, height 0.35s ease, box-shadow 0.35s ease;
}


.main-navbar.scrolled .brand-symbol {
    width: 38px;
    height: 38px;
    box-shadow: 0 5px 15px rgba(0, 122, 61, 0.20);
}


/* لمعان الشعار */

.brand-symbol::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 20px;
    background: rgba(255,255,255,0.30);
    transform: rotate(-45deg);
    top: -30px;
    left: -40px;
    transition: 0.6s ease;
}


.main-navbar .navbar-brand:hover .brand-symbol::after {
    top: 60px;
    left: 40px;
}


/* =========================================================
   BRAND TEXT
   ========================================================= */

.brand-text {
    font-size: 1rem;
    transition: font-size 0.35s ease;
}


.main-navbar.scrolled .brand-text {
    font-size: 0.92rem;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.main-navbar .navbar-collapse {
    align-items: center;
}


@media (min-width: 992px) {

    .main-navbar .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        visibility: visible !important;
        opacity: 1 !important;
    }


    .main-navbar .navbar-nav {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        visibility: visible !important;
        opacity: 1 !important;
    }
}


/* =========================================================
   NAV LINKS
   ========================================================= */

.main-navbar .nav-link {
    position: relative;
    padding: 10px 16px !important;
    color: #1f2937 !important;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}


    .main-navbar .nav-link::before {
        content: "";
        position: absolute;
        bottom: 3px;
        right: 16px;
        left: 16px;
        height: 3px;
        border-radius: 20px;
        background: var(--syria-green);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.3s ease;
    }


    .main-navbar .nav-link:hover {
        color: var(--syria-green) !important;
        background: rgba(0, 122, 61, 0.05);
        transform: translateY(-2px);
    }


        .main-navbar .nav-link:hover::before,
        .main-navbar .nav-link.active::before {
            transform: scaleX(1);
        }


    .main-navbar .nav-link.active {
        color: var(--syria-green) !important;
    }


/* =========================================================
   ADD ARTICLE BUTTON
   ========================================================= */

.navbar-actions {
    display: flex;
    align-items: center;
    margin-right: 10px;
}


.btn-add-article {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    text-decoration: none;
    color: white !important;
    font-size: 0.85rem;
    font-weight: 800;
    background: linear-gradient( 135deg, var(--syria-green), #006b35 );
    box-shadow: 0 7px 20px rgba(0, 122, 61, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}


    .btn-add-article i {
        font-size: 1rem;
        transition: transform 0.3s ease;
    }


    .btn-add-article:hover {
        color: white !important;
        transform: translateY(-3px);
        box-shadow: 0 12px 25px rgba(0, 122, 61, 0.30);
    }


        .btn-add-article:hover i {
            transform: rotate(90deg);
        }


/* =========================================================
   MOBILE TOGGLER
   ========================================================= */

.main-navbar .navbar-toggler {
    border: 0;
    padding: 8px;
    border-radius: 10px;
    background: rgba(0, 122, 61, 0.07);
    box-shadow: none !important;
}


    .main-navbar .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(0, 122, 61, 0.12) !important;
    }


.main-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23007A3D' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 991.98px) {

    .main-navbar {
        min-height: 70px;
    }


        .main-navbar .container {
            min-height: 70px;
        }


        .main-navbar .navbar-collapse {
            width: 100%;
            margin-top: 12px;
            padding: 14px;
            border-radius: 18px;
            background: rgba(255, 255, 255, 0.94);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.10);
        }


        .main-navbar .navbar-nav {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 4px !important;
        }


        .main-navbar .nav-link {
            padding: 12px 15px !important;
        }


            .main-navbar .nav-link::before {
                display: none;
            }


    .navbar-actions {
        width: 100%;
        margin: 10px 0 0;
    }


    .btn-add-article {
        width: 100%;
    }


    .main-navbar.scrolled {
        min-height: 66px;
    }
}


/* =========================================================
   BODY OFFSET
   ========================================================= */

body {
    padding-top: 78px;
}


@media (max-width: 991.98px) {

    body {
        padding-top: 70px;
    }
}


/* =========================================================
CONTAINER
========================================================= */

.main-navbar .container {
    min-height: 78px;
    display: flex;
    align-items: center;
}


/* =========================================================
BRAND
========================================================= */

.main-navbar .navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--syria-green) !important;
    font-weight: 900;
    white-space: nowrap;
    margin-left: 0;
}


.brand-symbol {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 1.15rem;
    font-weight: 900;
    background: linear-gradient( 135deg, var(--syria-green), #005c2d );
    box-shadow: 0 6px 18px rgba(0, 122, 61, 0.25);
    position: relative;
    overflow: hidden;
}


    /* لمعان الشعار */

    .brand-symbol::after {
        content: "";
        position: absolute;
        width: 80px;
        height: 20px;
        background: rgba(255,255,255,0.25);
        transform: rotate(-45deg);
        top: -30px;
        left: -30px;
        transition: 0.5s ease;
    }

.main-navbar .navbar-brand:hover .brand-symbol::after {
    top: 60px;
    left: 40px;
}


.brand-text {
    font-size: 1rem;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.main-navbar .navbar-collapse {
    align-items: center;
}


/*
   مهم جداً:

   هنا نضمن أن القائمة تظهر على الشاشات الكبيرة
*/

@media (min-width: 992px) {

    .main-navbar .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .main-navbar .navbar-nav {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        visibility: visible !important;
        opacity: 1 !important;
    }
}


/* =========================================================
   NAV LINKS
   ========================================================= */

.main-navbar .nav-link {
    position: relative;
    padding: 10px 16px !important;
    color: #1f2937 !important;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}


    .main-navbar .nav-link::before {
        content: "";
        position: absolute;
        bottom: 2px;
        right: 16px;
        left: 16px;
        height: 3px;
        border-radius: 20px;
        background: var(--syria-green);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.3s ease;
    }


    .main-navbar .nav-link:hover {
        color: var(--syria-green) !important;
        transform: translateY(-2px);
    }


        .main-navbar .nav-link:hover::before,
        .main-navbar .nav-link.active::before {
            transform: scaleX(1);
        }


    .main-navbar .nav-link.active {
        color: var(--syria-green) !important;
    }


/* =========================================================
   ADD ARTICLE BUTTON
   ========================================================= */

.navbar-actions {
    display: flex;
    align-items: center;
    margin-right: 10px;
}


.btn-add-article {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    text-decoration: none;
    color: white !important;
    font-size: 0.85rem;
    font-weight: 800;
    background: linear-gradient( 135deg, var(--syria-green), #006b35 );
    box-shadow: 0 7px 20px rgba(0, 122, 61, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}


    .btn-add-article i {
        font-size: 1rem;
        transition: transform 0.3s ease;
    }


    .btn-add-article:hover {
        color: white !important;
        transform: translateY(-3px);
        box-shadow: 0 12px 25px rgba(0, 122, 61, 0.3);
    }


        .btn-add-article:hover i {
            transform: rotate(90deg);
        }


/* =========================================================
   MOBILE TOGGLER
   ========================================================= */

.main-navbar .navbar-toggler {
    border: 0;
    padding: 8px;
    border-radius: 10px;
    background: rgba(0, 122, 61, 0.08);
    box-shadow: none !important;
}


    .main-navbar .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(0, 122, 61, 0.12) !important;
    }


/* =========================================================
   MOBILE MENU ICON
   ========================================================= */

.main-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23007A3D' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 991.98px) {

    .main-navbar {
        min-height: 70px;
    }


        .main-navbar .container {
            min-height: 70px;
            flex-wrap: wrap;
        }


        .main-navbar .navbar-collapse {
            width: 100%;
            margin-top: 15px;
            padding: 15px;
            border-radius: 18px;
            background: rgba(255,255,255,0.98);
            box-shadow: 0 15px 35px rgba(0,0,0,0.08);
        }


        .main-navbar .navbar-nav {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 4px !important;
        }


        .main-navbar .nav-link {
            padding: 12px 15px !important;
            border-radius: 10px;
        }


            .main-navbar .nav-link:hover {
                background: rgba(0, 122, 61, 0.07);
                transform: none;
            }


            .main-navbar .nav-link::before {
                display: none;
            }


    .navbar-actions {
        width: 100%;
        margin: 10px 0 0;
    }


    .btn-add-article {
        width: 100%;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .brand-text {
        font-size: 0.85rem;
    }


    .brand-symbol {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

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

.navbar-actions {
    position: relative;
    z-index: 1000002;
}

.btn-publish {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 18px;
    color: white;
    background: linear-gradient( 135deg, var(--green), var(--green-light) );
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 25px rgba(0,122,61,.25);
    transition: var(--transition);
}

    .btn-publish:hover {
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 14px 35px rgba(0,122,61,.35);
    }

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

.navbar-toggle {
    display: none;
    position: relative;
    z-index: 1000005;
    width: 44px;
    height: 44px;
    padding: 0;
    color: white;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    font-size: 25px;
}

.navbar-scrolled .navbar-toggle {
    color: var(--dark);
    background: rgba(0,0,0,.04);
    border-color: rgba(0,0,0,.08);
}

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

main {
    position: relative;
    z-index: 1;
    padding-top: 0;
}

/* =========================================================
HERO
========================================================= */

.hero-section {
    position: relative;
    z-index: 1;
    min-height: 900px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 50px 0 130px;
    color: white;
    background: radial-gradient( circle at 10% 20%, rgba(0,122,61,.45), transparent 35% ), radial-gradient( circle at 90% 80%, rgba(206,17,38,.12), transparent 30% ), linear-gradient( 135deg, #07110d, #0d1915 50%, #101514 );
}

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

.hero-grid {
    position: absolute;
    z-index: 1;
    inset: 0;
    opacity: .07;
    background-image: linear-gradient( rgba(255,255,255,.2) 1px, transparent 1px ), linear-gradient( 90deg, rgba(255,255,255,.2) 1px, transparent 1px );
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {

    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 60px;
    }
}

/* =========================================================
GLOW
========================================================= */

.hero-glow {
    position: absolute;
    z-index: 1;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .15;
    pointer-events: none;
}

.glow-one {
    top: -250px;
    right: -150px;
    background: var(--green);
    animation: floatingGlow 8s ease-in-out infinite;
}

.glow-two {
    bottom: -300px;
    left: -150px;
    background: var(--red);
    animation: floatingGlow 10s ease-in-out infinite reverse;
}

@keyframes floatingGlow {

    0%,100% {
        transform: translate(0,0) scale(1);
    }

    50% {
        transform: translate(30px,-30px) scale(1.15);
    }
}

/* =========================================================
HERO CONTENT
========================================================= */

.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.hero-text {
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 15px;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50px;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,.8);
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34,197,94,.12);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {

    0%,100% {
        box-shadow: 0 0 0 4px rgba(34,197,94,.1);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(34,197,94,0);
    }
}

.hero-text h1 {
    margin: 0 0 25px;
    font-size: clamp(43px,5vw,76px);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -2px;
}

    .hero-text h1 span {
        display: block;
        color: transparent;
        background: linear-gradient( 90deg, #36d17a, #8ee8b3 );
        background-clip: text;
        -webkit-background-clip: text;
        animation: textGlow 4s ease-in-out infinite;
    }

@keyframes textGlow {

    0%,100% {
        filter: drop-shadow( 0 0 0 rgba(0,122,61,0) );
    }

    50% {
        filter: drop-shadow( 0 0 25px rgba(0,122,61,.35) );
    }
}

.hero-text > p {
    max-width: 620px;
    margin: 0 0 35px;
    color: rgba(255,255,255,.64);
    font-size: 16px;
    line-height: 2;
}

/* =========================================================
HERO BUTTONS
========================================================= */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 45px;
}

.btn-primary-custom,
.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 55px;
    padding: 0 25px;
    border-radius: 13px;
    font-weight: 800;
    transition: var(--transition);
}

.btn-primary-custom {
    color: white;
    background: linear-gradient( 135deg, var(--green), #00a653 );
    box-shadow: 0 15px 30px rgba(0,122,61,.25);
}

    .btn-primary-custom:hover {
        color: white;
        transform: translateY(-4px);
        box-shadow: 0 20px 40px rgba(0,122,61,.35);
    }

    .btn-primary-custom i {
        transition: transform .3s ease;
    }

    .btn-primary-custom:hover i {
        transform: translateX(-5px);
    }

.btn-outline-custom {
    color: white;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.04);
}

    .btn-outline-custom:hover {
        color: white;
        background: rgba(255,255,255,.1);
        border-color: rgba(255,255,255,.4);
        transform: translateY(-4px);
    }

/* =========================================================
STATS
========================================================= */

.hero-stats {
    display: flex;
    gap: 35px;
}

    .hero-stats div {
        display: flex;
        flex-direction: column;
    }

    .hero-stats strong {
        color: #7ae5a5;
        font-size: 22px;
    }

    .hero-stats span {
        color: rgba(255,255,255,.45);
        font-size: 11px;
    }

/* =========================================================
FLAG
========================================================= */

.hero-visual {
    position: relative;
    z-index: 10;
    height: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.flag-wrapper {
    position: relative;
    z-index: 10;
    width: min(510px,90%);
    aspect-ratio: 1.7;
    transform-style: preserve-3d;
    transition: transform .2s ease;
    filter: drop-shadow( 0 35px 45px rgba(0,0,0,.5) );
}

.syria-flag {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 9px;
    transform: rotateY(-8deg) rotateX(3deg);
    box-shadow: 0 0 0 1px rgba(255,255,255,.12), inset 0 0 50px rgba(0,0,0,.15);
    animation: flagWave 5s ease-in-out infinite;
    transform-origin: left center;
}

@keyframes flagWave {

    0%,100% {
        transform: rotateY(-8deg) rotateX(3deg) skewY(0deg);
    }

    25% {
        transform: rotateY(-11deg) rotateX(5deg) skewY(1deg);
    }

    50% {
        transform: rotateY(-4deg) rotateX(2deg) skewY(-1deg);
    }

    75% {
        transform: rotateY(-12deg) rotateX(4deg) skewY(1deg);
    }
}

/* =========================================================
FLAG STRIPES
========================================================= */

.flag-stripe {
    position: absolute;
    right: 0;
    left: 0;
    height: 33.333%;
}

.flag-green {
    top: 0;
    background: linear-gradient( 90deg, #005c2e, #007a3d 50%, #00a653 );
}

.flag-white {
    top: 33.333%;
    background: linear-gradient( 90deg, #eeeeee, #ffffff 50%, #e9e9e9 );
}

.flag-black {
    bottom: 0;
    background: linear-gradient( 90deg, #020202, #111, #000 );
}

/* =========================================================
STARS
========================================================= */

.flag-stars {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 38px;
    color: var(--red);
    font-size: 45px;
    text-shadow: 0 3px 5px rgba(0,0,0,.15);
    animation: starsFloat 3s ease-in-out infinite;
}

@keyframes starsFloat {

    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* =========================================================
FLAG FABRIC SHINE
========================================================= */

.flag-shine {
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    background: linear-gradient( 110deg, transparent 0%, rgba(255,255,255,.12) 45%, transparent 60% );
    background-size: 250% 100%;
    animation: flagShine 5s ease-in-out infinite;
}

@keyframes flagShine {

    0% {
        background-position: 200% 0;
    }

    50% {
        background-position: -50% 0;
    }

    100% {
        background-position: -50% 0;
    }
}

/* =========================================================
ORBITS
========================================================= */

.flag-orbit {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    pointer-events: none;
}

.orbit-one {
    width: 590px;
    height: 590px;
    animation: orbitRotate 20s linear infinite;
}

.orbit-two {
    width: 430px;
    height: 430px;
    border-color: rgba(0,122,61,.25);
    animation: orbitRotate 15s linear infinite reverse;
}

@keyframes orbitRotate {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
CAPTION
========================================================= */

.flag-caption {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 35px;
    color: rgba(255,255,255,.5);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.caption-line {
    width: 45px;
    height: 1px;
    background: rgba(255,255,255,.2);
}

/* =========================================================
HERO WAVE
========================================================= */

.hero-bottom-wave {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    z-index: 20;
    height: 95px;
    background: var(--light);
    clip-path: ellipse(65% 55% at 50% 100%);
}

/* =========================================================
SECTIONS
========================================================= */

.section-padding {
    padding: 50px 0;
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
}

    .section-heading > span,
    .section-label {
        display: inline-block;
        margin-bottom: 12px;
        color: var(--green);
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 2px;
    }

    .section-heading h2 {
        margin: 0 0 15px;
        color: var(--dark);
        font-size: clamp(30px,4vw,48px);
        font-weight: 900;
    }

    .section-heading p {
        margin: 0;
        color: var(--muted);
        line-height: 2;
    }

/* =========================================================
PRINCIPLES
========================================================= */

.principles-section {
    position: relative;
    z-index: 1;
    background: var(--light);
}

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

.principle-card {
    position: relative;
    min-height: 350px;
    padding: 35px 28px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255,255,255,.85);
    box-shadow: 0 10px 35px rgba(0,0,0,.035);
    transition: var(--transition);
}

    .principle-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 0;
        height: 4px;
        background: linear-gradient( 90deg, var(--green), var(--green-light) );
        transition: width .4s ease;
    }

    .principle-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 25px 60px rgba(0,0,0,.09);
        border-color: rgba(0,122,61,.15);
    }

        .principle-card:hover::before {
            width: 100%;
        }

.card-number {
    position: absolute;
    top: 20px;
    left: 22px;
    color: rgba(0,0,0,.07);
    font-size: 35px;
    font-weight: 900;
}

.principle-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border-radius: 16px;
    color: var(--green);
    background: rgba(0,122,61,.08);
    font-size: 25px;
    transition: var(--transition);
}

.principle-card:hover .principle-icon {
    color: white;
    background: var(--green);
    transform: rotateY(180deg);
}

.principle-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 900;
}

.principle-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
    font-size: 14px;
}

.card-arrow {
    position: absolute;
    bottom: 25px;
    left: 28px;
    color: var(--green);
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
}

.principle-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================================
ABOUT
========================================================= */

.about-section {
    position: relative;
    z-index: 1;
    padding: 30px 0 110px;
    background: var(--light);
}

.about-box {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 220px;
    align-items: center;
    min-height: 390px;
    overflow: hidden;
    padding: 60px;
    border-radius: 30px;
    color: white;
    background: radial-gradient( circle at 90% 20%, rgba(0,166,83,.3), transparent 35% ), linear-gradient( 135deg, #101b17, #07100d );
    box-shadow: 0 30px 80px rgba(0,0,0,.15);
}

.about-decoration {
    position: absolute;
    width: 400px;
    height: 400px;
    left: -150px;
    top: -150px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 50%;
}

.about-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

    .about-content h2 {
        margin: 0 0 20px;
        font-size: clamp(30px,4vw,50px);
        line-height: 1.4;
        font-weight: 900;
    }

        .about-content h2 strong {
            color: #4cdb8b;
        }

    .about-content p {
        max-width: 650px;
        color: rgba(255,255,255,.6);
        line-height: 2;
        font-size: 15px;
    }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    color: #6be69d;
    font-weight: 800;
    transition: var(--transition);
}

    .text-link:hover {
        color: white;
        gap: 15px;
    }

.about-mark {
    position: relative;
    z-index: 2;
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    background: rgba(255,255,255,.03);
}

    .about-mark span {
        font-size: 75px;
        line-height: 1;
        font-weight: 900;
    }

    .about-mark small {
        color: #5fe396;
        font-weight: 800;
    }

/* =========================================================
ARTICLES
========================================================= */

.articles-section {
    position: relative;
    z-index: 1;
    background: white;
}

.articles-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 50px;
}

    .articles-header h2 {
        margin: 0;
        font-size: clamp(28px,4vw,44px);
        font-weight: 900;
    }

.all-articles {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--green);
    font-weight: 800;
    transition: var(--transition);
}

    .all-articles:hover {
        color: var(--green-dark);
        gap: 15px;
    }

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

.article-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: white;
    box-shadow: 0 8px 30px rgba(0,0,0,.035);
    transition: var(--transition);
}

    .article-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 25px 60px rgba(0,0,0,.11);
    }

.article-image {
    position: relative;
    height: 230px;
    overflow: hidden;
}

    .article-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .7s cubic-bezier(.2,.8,.2,1);
    }

.article-card:hover img {
    transform: scale(1.08);
}

.article-category {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 7px 13px;
    color: white;
    background: rgba(0,122,61,.9);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
}

    .article-category.gold {
        background: rgba(217,154,37,.95);
    }

.article-body {
    padding: 28px;
}

.article-date {
    display: block;
    margin-bottom: 10px;
    font-family: "Questrial", Sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    font-style: normal;
    text-decoration: none;
    line-height: 1.5em;
    letter-spacing: -0.01em;
    word-spacing: 0em;
    color: #8D8D8D;
}

.article-body h3 {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 18px;
    line-height: 1.7;
    font-weight: 900;
    transition: var(--transition);
}

.article-card:hover .article-body h3 {
    color: var(--green);
}

.article-body p {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.article-body a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
    transition: var(--transition);
}

    .article-body a:hover {
        gap: 14px;
    }

/* =========================================================
CTA
========================================================= */

.cta-section {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 120px 0;
    color: white;
    background: linear-gradient( 135deg, var(--green-dark), #003e20 );
}

.cta-pattern {
    position: absolute;
    inset: 0;
    opacity: .08;
    background-image: radial-gradient( circle, white 1px, transparent 1px );
    background-size: 30px 30px;
    animation: patternMove 15s linear infinite;
}

@keyframes patternMove {

    from {
        background-position: 0 0;
    }

    to {
        background-position: 30px 30px;
    }
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

    .cta-content > span {
        color: #70e6a0;
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 2px;
    }

    .cta-content h2 {
        margin: 15px 0;
        font-size: clamp(35px,5vw,60px);
        font-weight: 900;
    }

        .cta-content h2 strong {
            color: white;
        }

    .cta-content p {
        max-width: 600px;
        margin: 0 auto 30px;
        color: rgba(255,255,255,.65);
        line-height: 2;
    }

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 27px;
    color: var(--green-dark);
    background: white;
    border-radius: 50px;
    font-weight: 900;
    transition: var(--transition);
}

    .cta-button:hover {
        color: var(--green-dark);
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,.2);
    }

/* =========================================================
FOOTER
========================================================= */

.site-footer {
    position: relative;
    z-index: 1;
    padding: 80px 0 25px;
    color: rgba(255,255,255,.6);
    background-color: #111827 !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 70px;
    padding-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-symbol {
    width: 38px;
    height: 38px;
}

.footer-logo div {
    display: flex;
    flex-direction: column;
}

.footer-logo strong {
    color: white;
    font-size: 16px;
}

.footer-logo small {
    margin-top: 3px;
    color: #5bdc91;
    font-size: 10px;
}

.footer-brand p {
    max-width: 430px;
    margin: 0;
    color: rgba(255,255,255,.45);
    line-height: 2;
    font-size: 13px;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .footer-links h4,
    .footer-contact h4 {
        margin-bottom: 12px;
        color: white;
        font-size: 15px;
        font-weight: 900;
    }

    .footer-links a,
    .footer-contact a {
        color: rgba(255,255,255,.45);
        font-size: 13px;
        transition: var(--transition);
    }

        .footer-links a:hover,
        .footer-contact a:hover {
            color: #63e29a;
            transform: translateX(-5px);
        }

    .footer-contact a {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .footer-contact i {
        color: #55dc91;
    }

.social-links {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

    .social-links a {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255,255,255,.1);
        border-radius: 50%;
        transition: var(--transition);
    }

        .social-links a:hover {
            color: white;
            background: var(--green);
            border-color: var(--green);
            transform: translateY(-4px);
        }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,.07);
    color: rgba(255,255,255,.3);
    font-size: 11px;
}

/* =========================================================
REVEAL
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}

    .reveal.show {
        opacity: 1;
        transform: translateY(0);
    }

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

@media (max-width: 1100px) {

    .hero-content {
        gap: 35px;
    }


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

@media (max-width: 991px) {

    .navbar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }


    .main-navbar .navbar-container {
        flex-wrap: wrap;
    }


    .navbar-collapse {
        position: absolute !important;
        top: calc(100% + 10px);
        right: 12px;
        left: 12px;
        width: auto;
        padding: 15px;
        background: rgba(255,255,255,.98);
        border: 1px solid rgba(0,0,0,.06);
        border-radius: 18px;
        box-shadow: 0 20px 50px rgba(0,0,0,.16);
        z-index: 9999999 !important;
    }


        .navbar-collapse .nav-link {
            color: #26332f !important;
        }


            .navbar-collapse .nav-link:hover,
            .navbar-collapse .nav-link.active {
                color: var(--green) !important;
            }


    .navbar-actions {
        margin-top: 10px;
    }


    .btn-publish {
        justify-content: center;
        width: 100%;
    }


    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }


    .hero-text > p {
        margin-right: auto;
        margin-left: auto;
    }


    .hero-buttons,
    .hero-stats {
        justify-content: center;
    }


    .hero-visual {
        height: 470px;
    }


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


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

@media (max-width: 767px) {

    .main-navbar {
        padding: 12px 0;
    }


        .main-navbar.navbar-scrolled {
            padding: 9px 0;
        }


    .brand {
        min-width: auto;
    }


    .brand-text strong {
        font-size: 15px;
    }


    .brand-symbol {
        width: 38px;
        height: 38px;
    }


    .hero-section {
        min-height: auto;
        padding: 135px 0 100px;
    }


    .hero-text h1 {
        font-size: 43px;
        letter-spacing: -1px;
    }


    .hero-text > p {
        font-size: 14px;
    }


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


    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
    }


    .hero-stats {
        gap: 25px;
    }


    .hero-visual {
        height: 360px;
    }


    .flag-wrapper {
        width: 90%;
    }


    .flag-stars {
        font-size: 30px;
        gap: 22px;
    }


    .orbit-one {
        width: 350px;
        height: 350px;
    }


    .orbit-two {
        width: 280px;
        height: 280px;
    }


    .section-padding {
        padding: 75px 0;
    }


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


    .principle-card {
        min-height: 300px;
    }


    .about-box {
        grid-template-columns: 1fr;
        padding: 40px 25px;
        text-align: center;
    }


    .about-content {
        margin: auto;
    }


    .about-mark {
        width: 130px;
        height: 130px;
        margin: 30px auto 0;
    }


        .about-mark span {
            font-size: 55px;
        }


    .articles-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }


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


    .article-image {
        height: 210px;
    }


    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }


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

/* =========================================================
REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}


.transition-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .transition-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 1rem 3rem rgba(0,0,0,.08) !important;
    }

.transition-zoom {
    transition: transform 0.5s ease;
}

.article-card:hover .transition-zoom {
    transform: scale(1.05);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hover-text-success:hover {
    color: #198754 !important;
    padding-right: 5px;
    transition: all 0.3s ease;
}