/* ==========================================================
   GLOBAL STYLES (global.css)
   Shared across ALL pages — nav, footer, social icons, hero banner.
   Loaded first on every page via <link> in <head>.
   ========================================================== */

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

/* --- Custom Font --- */
@font-face {
    font-family: 'MyCustomFont';
    src: url('../Photo/hp-simplified-hans-light.ttf') format('woff2');
    font-weight: bolder;
    font-style: normal;
}

/* --- Base Typography --- */
html {
    scroll-behavior: smooth;
}

li {
    font-size: larger;
}

body {
    font-family: 'MyCustomFont', Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
}

/* --- Header & Navigation --- */
header {
    background-color: #ffffff;
    padding: 10px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    flex-wrap: nowrap;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    flex-wrap: nowrap;
    align-items: center;
    white-space: nowrap;
    width: 100%;
    justify-content: flex-end;
}

.nav-links button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-weight: bold !important;
    font-size: 14px;
    color: #000000;
    padding: 5px;
    margin: 0px 5px;
    flex-shrink: 1;
    font-family: 'MyCustomFont', Arial, Helvetica, sans-serif !important;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    transition: background-color 0.3s ease;
}

.nav-links button:hover a {
    color: white;
}

.nav-links button:hover {
    transform: scale(1.05);
    background-color: #666;
    border-radius: 5px;
    color: white;
}

/* --- Gradient CTA Button --- */
.blue-submit-btnn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    background: linear-gradient(45deg, #d89b51, #82325d, #455db2);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blue-submit-btnn a {
    color: white;
    text-decoration: none;
}

.blue-submit-btnn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* --- Sponsorship Button --- */
.sponsorship-btn {
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    color: white;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    background: linear-gradient(45deg, #ff6b35, #f7931e, #fdc830);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    flex-shrink: 1;
}

.sponsorship-btn a {
    color: white;
    text-decoration: none;
}

.sponsorship-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.5);
}

/* --- Hero Banner (subpages) --- */
.hero {
    background-image: url('../Photo/main_baground_image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    padding: 20px;
}

.hero-content {
    max-width: 50%;
    text-align: left;
    z-index: 1;
}

.hero h2 {
    font-size: 38px;
    font-weight: bold;
    margin: 0;
    text-shadow: 0px 0px 4px #8e1f58;
}

/* --- Hamburger Menu --- */
.hamburger-icon {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    position: absolute;
    top: 10px;
    left: 20px;
}

.hamburger-icon .bar {
    width: 30px;
    height: 4px;
    background-color: #000;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hamburger-icon.active .bar:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.hamburger-icon.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.active .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* --- Footer --- */
.footer {
    position: relative;
    background: linear-gradient(to bottom right, #ffae3d, #4a50ff);
    color: white;
    padding: 10px 20px;
    text-align: center;
    border-top-left-radius: 100px;
    border-top-right-radius: 0;
    overflow: hidden;
    box-shadow: 0px -5px 10px rgba(0, 0, 0, 0.1);
}

.footer::before {
    content: "";
    position: absolute;
    top: -30px;
    left: -50px;
    width: 150px;
    height: 25px;
    background: linear-gradient(to bottom right, #8e44ad, #004a99);
    border-radius: 50%;
    z-index: -1;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 180px;
    margin: 8px;
}

.footer-section h4 {
    font-size: 1em;
    margin-bottom: 10px;
}

.contact {
    font-size: 0.9em;
    white-space: nowrap;
}

.footer-section p,
.footer-section a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
}

.footer-section a:hover {
    text-decoration: underline;
    color: #ffae3d;
}

.footer-bottom {
    margin-top: 15px;
    font-size: 0.8em;
    color: #cce6ff;
    margin-bottom: 1rem;
}

.footer-section.logo img {
    width: 130px;
}

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

/* --- Social Media Icons (Font Awesome) --- */
.social-icons img {
    width: 22px;
    height: 22px;
    margin: 0 4px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.1);
    filter: brightness(1.3);
}

.fa {
    padding: 6px;
    font-size: 16px;
    width: 30px;
    height: 30px;
    text-align: center;
    text-decoration: none;
    border-radius: 50%;
    transition: transform 0.3s ease;
    line-height: 18px;
}

.fa:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.fa-facebook {
    background: #3B5998;
    color: white;
}

.fa-twitter {
    background: #55ACEE;
    color: white;
}

.fa-linkedin {
    background: #007bb5;
    color: white;
}

.fa-youtube {
    background: #bb0000;
    color: white;
}

.fa-instagram {
    background: #fe259c;
    color: white;
}

/* --- Responsive: Tablet Nav (shrink buttons before hamburger) --- */
@media screen and (max-width: 1200px) {
    .nav-links button {
        font-size: 13px;
        padding: 4px;
        margin: 0 3px;
    }

    .blue-submit-btnn {
        padding: 8px 14px;
        font-size: 14px;
    }

    .sponsorship-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* --- Responsive: Mobile Nav (hamburger) --- */
@media screen and (max-width: 1067px) {
    nav {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 10px 20px;
    }

    .hamburger-icon {
        display: flex;
        z-index: 10;
    }

    .logo img {
        height: 50px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-top: 15px;
        justify-content: center;
        align-items: center;
        gap: 5px;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links button {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        font-size: 15px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links button:last-child {
        border-bottom: none;
    }

    .blue-submit-btnn,
    .sponsorship-btn {
        width: 80%;
        margin: 5px auto;
        text-align: center;
    }

    .dropdown-menu {
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        text-align: center;
        top: 42% !important;
        position: relative !important;
    }

    .hero {
        height: 150px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h2 {
        font-size: 28px;
    }
}

/* --- Responsive: Small Mobile --- */
@media screen and (max-width: 480px) {
    .logo img {
        height: 40px;
    }

    .nav-links button {
        font-size: 14px;
        padding: 10px 0;
    }

    .hero {
        height: 120px;
        padding: 10px;
    }

    .hero h2 {
        font-size: 22px;
    }

    /* Footer stacking */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .footer-section {
        min-width: unset;
        width: 100%;
    }

    .contact {
        white-space: normal;
    }

    .footer-img {
        width: 150px;
    }
}
