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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    line-height: 1.6;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('https://images.pexels.com/photos/417074/pexels-photo-417074.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    position: relative;
    color: white;
    margin-bottom: 0;
}

/* Top Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
    gap: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons img {
    width: 30px;
    height: 30px;
    filter: grayscale(100%); /* makes image black & white */
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.top-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.top-buttons a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.top-buttons a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-primary {
    background: #ffd700 !important;
    color: #000 !important;
    font-weight: 600;
}

/* Main Navigation */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    position: relative;
}

.logo {
    padding: 15px 25px;
    border-radius: 10px;
    color: #2c5282;
    font-weight: bold;
    height: 180px;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    transition: all 0.3s ease;
    display: block;
}

.nav-menu a:hover {
    color: #ffd700;
}

.dropdown::after {
    content: '▾';
}

/* Desktop Dropdowns */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -230%;
    list-style: none;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    min-width: 250px;
    border-radius: 10px;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-menu li:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sub-dropdown::after {
    content: ' ▸';
    position: absolute;
    right: 10px;      
    top: 50%;         
    transform: translateY(-50%); /* perfect vertical alignment */
    font-size: 14px;  /* adjust size if needed */
    pointer-events: none; /* arrow won't block clicks */
}

.sub-dropdown-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    list-style: none;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    min-width: 220px;
    border-radius: 10px;
    padding: 10px 0;
    margin-left: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dropdown-menu li:hover .sub-dropdown-menu {
    display: block;
}

/* Page Title */
.page-title {
    text-align: center;
}

.page-title h1 {
    font-size: 48px;
    font-weight: 700;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    margin-left: 120px;
    margin-right: 120px;
}

.join_button {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0;
}

.ber-joining {
    background: #ffcc00;
    color: #000;
    font-weight: 700;
    border: none;
    padding: 12px 30px;
    margin-bottom: 20px;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ber-joining:hover {
    background: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 184, 0, 0.3);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}

.mobile-nav-overlay.active {
    display: block;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.mobile-nav-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mobile-nav-menu {
    list-style: none;
}

.mobile-nav-menu > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 5px 0;
}

.mobile-nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffd700;
}

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 15px 20px;
    color: white;
    font-size: 18px;
    font-weight: 500;
    border-radius: 8px;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffd700;
}

.mobile-dropdown-toggle::after {
    content: '+';
    font-size: 20px;
    transition: transform 0.3s ease;
}

.mobile-dropdown-toggle.active::after {
    transform: rotate(45deg);
}

.mobile-dropdown-content {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 10px 0;
    padding: 10px;
}

.mobile-dropdown-content.active {
    display: block;
}

.mobile-dropdown-content a {
    padding: 10px 15px;
    font-size: 16px;
    margin: 2px 0;
}

.mobile-sub-dropdown {
    margin-left: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
}

/* Main Content */


/* Footer */
footer {
    background: #1a202c;
    color: white;
}

.footer-search {
    background: #2d3748;
    padding: 20px;
    text-align: center;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.search-container input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
}

.search-container button {
    padding: 12px 20px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.footer-content {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    flex: 0 0 300px;
}

.footer-columns {
    display: flex;
    gap: 60px;
    flex: 1;
    justify-content: flex-end;
}

.contact-info {
    margin-bottom: 20px;
}

.contact-info span {
    display: block;
    margin: 8px 0;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 35px;
    height: 35px;
    background: #4a90e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social img {
    width: 30px;
    height: 30px;
    filter: grayscale(100%); /* makes image black & white */
}

.footer-social a:hover {
    background: #357abd;
    transform: translateY(-2px);
}

.footer-col h4 {
    color: #4a90e2;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid #4a90e2;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col a {
    display: block;
    color: #cbd5e0;
    text-decoration: none;
    margin: 8px 0;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
    }

    .top-nav {
        flex-direction: column;
        padding: 15px;
    }

    .top-buttons {
        justify-content: center;
    }

    .top-buttons a {
        font-size: 12px;
        padding: 6px 12px;
    }

    .main-nav {
        padding: 20px 15px;
    }

    .logo {
        font-size: 18px;
        padding: 10px 15px;
    }

    .page-title h1 {
        font-size: 32px;
        margin-left: 80px;
        margin-right: 80px;
    }

    .footer-top {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-brand {
        flex: none;
    }

    .footer-columns {
        flex-direction: column;
        gap: 30px;
        justify-content: flex-start;
    }
    
    .footer-col {
        text-align: start;
    }

    .search-container {
        flex-direction: column;
    }

    .social-icons {
        gap: 10px;
    }

    .social-icons a {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .page-title h1 {
        font-size: 20px;
        margin-left: 40px;
        margin-right: 40px;
    }

    .logo {
        font-size: 16px;
        padding: 8px 12px;
    }

    .top-buttons a {
        font-size: 11px;
        padding: 4px 8px;
    }
}

.social-icons img {
    width: 30px;
    height: 30px;
    filter: grayscale(100%); /* makes image black & white */
}

.footer-social img {
    width: 30px;
    height: 30px;
    filter: grayscale(100%); /* makes image black & white */
}   