﻿html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.result-link {
    text-decoration: none;
    color: inherit;
    display: block; 
}


.ticker .content {
    animation: scroll 40s linear infinite;
    padding-right: 0;
}

.grid {
    max-width: 100vw;
    padding: 30px 15px;
}

nav {
    flex-wrap: nowrap;
    overflow-x: auto;
}

@media (max-width: 992px) {
    .grid {
        padding: 20px 10px;
    }
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7ec 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: linear-gradient(135deg, #1c2a3a 0%, #0d1a29 100%);
    color: white;
    text-align: center;
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

    header .header-content {
        max-width: 100%;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
        position: relative;
        z-index: 2;
    }

    header img {
        height: 80px;
        width: auto;
        object-fit: contain;
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
        animation: pulse 3s infinite;
    }

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

header h2 {
    font-size: 1.8rem;
    margin: 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

nav {
    background: linear-gradient(135deg, #1c2a3a 0%, #0d1a29 100%);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    position: relative;
    overflow: visible;
}

    nav::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 100%;
        height: 200%;
        pointer-events: none;
        z-index: 1;
    }

    nav a {
        color: white;
        text-decoration: none;
        padding: 15px 20px;
        font-weight: bold;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        position: relative;
        display: flex;
        align-items: center;
        gap: 8px;
        z-index: 2;
        white-space: nowrap; 
    }

        nav a:hover {
            background-color: #2c3e50;
        }

        nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 0;
            height: 3px;
            background: #4a9fe3;
            transition: width 0.3s ease;
        }

        nav a:hover::after {
            width: 100%;
            left: 0;
        }

        nav a i {
            font-size: 1.2rem;
        }

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, #1c2a3a 0%, #0d1a29 100%);
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    padding: 12px 20px;
    display: block;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .dropdown-content a:last-child {
        border-bottom: none;
    }

    .dropdown-content a:hover {
        background-color: #2c3e50;
        padding-right: 25px;
    }

    .dropdown-content a i {
        font-size: 1rem;
        min-width: 20px;
        text-align: center;
    }

.grid {
    display: grid;
    grid-template-areas:
        "manager activities result"
        "ads     ads       result";
    grid-template-columns: 1fr 2fr 1.6fr;
    grid-template-rows: auto auto;
    gap: 25px;
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
    flex: 1;
}

.box {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 280px;
    max-height: 420px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

    .box::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(to right, #4a9fe3, #1c2a3a);
        border-radius: 12px 12px 0 0;
    }

    .box:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

.manager {
    grid-area: manager;
}

.activities {
    grid-area: activities;
}

.ads {
    grid-area: ads;
}


.result {
    grid-area: result;
    min-height: 420px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #d0e5ff;
}

.box h3, .box strong {
    margin: 0 0 15px;
    font-size: 1.3rem;
    color: #1c2a3a;
    border-bottom: 2px solid #4a9fe3;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .box h3::before, .box strong::before {
        content: "•";
        color: #4a9fe3;
        font-size: 1.8rem;
    }

.box p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
}

.manager img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #eee;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.result img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.result h3, .result p {
    text-align: center;
    margin: 10px 0;
}

.result h3 {
    color: #1a5fb4;
    font-size: 1.5rem;
    margin-top: 20px;
}

.ticker {
    height: 42px;
    overflow: hidden;
    position: relative;
    background: #f1f6fd;
    border-top: 1px solid #d0e5ff;
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    color: #1a5fb4;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

    .ticker .content {
        position: absolute;
        white-space: nowrap;
        animation: scroll 40s linear infinite;
        display: flex;
        align-items: center;
        gap: 15px;
    }

        .ticker .content span {
            background: #e3f2fd;
            padding: 4px 10px;
            border-radius: 4px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            white-space: nowrap;
        }

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }

}

.manager-content {
    margin-top: 15px;
    background: #f8fafd;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #4a9fe3;
}

    .manager-content p {
        font-size: 1.05rem;
        line-height: 1.8;
        color: #333;
    }

.read-more {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: #4a9fe3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid #3a8fd3;
}

    .read-more:hover {
        background: #3a8fd3;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(74, 159, 227, 0.3);
    }

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 15px;
    text-align: center;
}

    .slide-overlay h4 {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }

    .slide-overlay p {
        font-size: 0.95rem;
        opacity: 0.9;
    }

footer {
    background: #1c2a3a;
    color: #fff;
    text-align: center;
    padding: 25px 0;
    margin-top: auto;
    font-size: 1rem;
    position: relative;
    width: 100%;
}

    footer::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(to right, #4a9fe3, #1c2a3a);
    }

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 15px 0;
}

    .footer-links a {
        color: #a0d0ff;
        text-decoration: none;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 5px;
    }

        .footer-links a:hover {
            color: #fff;
            text-decoration: underline;
        }

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

    .social-icons a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        font-size: 1.2rem;
        transition: all 0.3s ease;
    }

        .social-icons a:hover {
            background: #4a9fe3;
            transform: translateY(-3px);
        }

.slider {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 240px;
}

    .slider img {
        position: absolute;
        top: 0;
        left: 100%;
        width: 100%;
        height: 240px;
        object-fit: cover;
        opacity: 0;
        transition: all 0.6s ease;
        z-index: 0;
    }

        .slider img.active {
            left: 0;
            opacity: 1;
            z-index: 1;
        }

        .slider img.prev {
            left: -100%;
            z-index: 0;
        }


.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .slider-btn:hover {
        background: rgba(0, 0, 0, 0.8);
    }

    .slider-btn.prev {
        right: 10px;
    }

    .slider-btn.next {
        left: 10px;
    }

@media (max-width: 1200px) {
    .grid {
        grid-template-columns: 1fr 1.8fr 1.5fr;
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .grid {
        grid-template-areas:
            "result"
            "manager"
            "activities"
            "ads";
        grid-template-columns: 1fr;
        padding: 20px;
    }

    header .header-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    nav a {
        padding: 12px 15px;
        font-size: 1rem;
    }

    .box {
        min-height: auto;
        max-height: none;
    }

    .result {
        min-height: auto;
    }

    .slider {
        height: 300px;
    }

        .slider img {
            height: 300px;
        }

    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }
}

@media (max-width: 768px) {
    .slider {
        height: 250px;
    }

        .slider img {
            height: 250px;
        }

    nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    header h2 {
        font-size: 1.4rem;
    }

    nav {
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
    }

        nav a {
            width: auto;
            text-align: center;
        }

    .box {
        padding: 15px;
    }

    .ticker .content span {
        padding: 3px 8px;
        font-size: 0.9rem;
    }

    .slider {
        height: 200px;
    }

        .slider img {
            height: 200px;
        }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

.box.ads {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: auto !important;
    height: auto !important;
}
