:root {
    --primary-color: #1a73e8;
    --secondary-color: #FFD700;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Open Sans', sans-serif; color: #333; overflow-x: hidden; }
h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; }

/* Top Bar */
.top-bar { background: linear-gradient(135deg, var(--dark-color), #16213e); padding: 8px 0; font-size: 0.9rem; }
.top-bar a { color: rgba(255,255,255,0.8); text-decoration: none; transition: color 0.3s; }
.top-bar a:hover { color: var(--secondary-color); }
.top-bar .btn-login { background: transparent; border: 1px solid var(--secondary-color); color: var(--secondary-color); padding: 5px 15px; border-radius: 20px; font-size: 0.85rem; transition: all 0.3s; }
.top-bar .btn-login:hover { background: var(--secondary-color); color: var(--dark-color); }

/* Main Navbar */
.main-navbar { background: rgba(255,255,255,0.98); box-shadow: 0 2px 20px rgba(0,0,0,0.1); padding: 15px 0; transition: all 0.3s ease; }
.main-navbar.scrolled { padding: 10px 0; }
.navbar-brand img { height: 50px; transition: height 0.3s; }
.main-navbar .nav-link { color: var(--dark-color) !important; font-weight: 600; padding: 10px 18px !important; position: relative; }
.main-navbar .nav-link::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: var(--primary-color); transition: all 0.3s; transform: translateX(-50%); }
.main-navbar .nav-link:hover::after, .main-navbar .nav-link.active::after { width: 80%; }
.main-navbar .nav-link:hover, .main-navbar .nav-link.active { color: var(--primary-color) !important; }

/* Hero Carousel */
.hero-carousel { position: relative; }
.hero-carousel .carousel-item { height: 85vh; min-height: 500px; background-size: cover; background-position: center; position: relative; }
.hero-carousel .carousel-item::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.7)); }
.hero-carousel .carousel-caption { bottom: 50%; transform: translateY(50%); text-align: left; max-width: 700px; }
.hero-carousel h1 { font-size: 3.5rem; font-weight: 700; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); margin-bottom: 1.5rem; }
.hero-carousel p { font-size: 1.25rem; margin-bottom: 2rem; opacity: 0.95; }

/* Buttons */
.btn-hero { padding: 15px 35px; font-size: 1rem; font-weight: 600; border-radius: 30px; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s; }
.btn-hero-primary { background: var(--secondary-color); color: var(--dark-color); border: none; }
.btn-hero-primary:hover { background: #fff; color: var(--dark-color); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4); }
.btn-hero-outline { background: transparent; color: #fff; border: 2px solid #fff; margin-left: 15px; }
.btn-hero-outline:hover { background: #fff; color: var(--dark-color); transform: translateY(-3px); }

/* Sections */
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; font-weight: 700; color: var(--dark-color); margin-bottom: 15px; }
.section-title .divider { width: 80px; height: 3px; background: var(--secondary-color); margin: 0 auto 20px; }
.section-title p { color: #666; max-width: 600px; margin: 0 auto; }

/* Vision Section */
.vision-section { background: linear-gradient(135deg, var(--dark-color), #16213e); color: #fff; position: relative; overflow: hidden; }
.vision-section::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: rgba(255, 215, 0, 0.1); border-radius: 50%; }
.vision-card { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border-radius: 15px; padding: 40px 30px; text-align: center; transition: transform 0.3s, box-shadow 0.3s; border: 1px solid rgba(255,255,255,0.1); height: 100%; }
.vision-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.vision-card .icon { width: 80px; height: 80px; background: var(--secondary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 25px; font-size: 2rem; color: var(--dark-color); }
.vision-card h4 { margin-bottom: 15px; font-weight: 600; }

/* Services Section */
.services-section { background: var(--light-color); }
.service-card { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 25px rgba(0,0,0,0.08); transition: all 0.3s; height: 100%; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.service-card img { width: 100%; height: 200px; object-fit: cover; }
.service-card .card-body { padding: 25px; }
.service-card h5 { color: var(--dark-color); font-weight: 600; margin-bottom: 10px; }
.service-card .time { color: var(--primary-color); font-weight: 600; font-size: 0.9rem; }

/* Involve Section */
.involve-section { background: url('https://images.unsplash.com/photo-1438232992991-995b7058bbb3?auto=format&fit=crop&w=1920&q=80') center/cover fixed; position: relative; }
.involve-section::before { content: ''; position: absolute; inset: 0; background: rgba(26, 26, 46, 0.9); }
.involve-card { background: #fff; border-radius: 15px; padding: 35px 25px; text-align: center; transition: all 0.3s; height: 100%; }
.involve-card:hover { transform: scale(1.05); box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.involve-card .icon { width: 70px; height: 70px; background: linear-gradient(135deg, var(--primary-color), #0d47a1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.5rem; color: #fff; }

/* News Card */
.news-card { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 25px rgba(0,0,0,0.08); transition: all 0.3s; height: 100%; }
.news-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.news-card img { width: 100%; height: 200px; object-fit: cover; }
.news-card .card-body { padding: 25px; }
.news-card .date { color: var(--primary-color); font-size: 0.85rem; font-weight: 600; margin-bottom: 10px; }
.news-card h5 { color: var(--dark-color); font-weight: 600; margin-bottom: 15px; }
.news-card p { color: #666; font-size: 0.95rem; }
.news-card .read-more { color: var(--primary-color); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; transition: gap 0.3s; }
.news-card .read-more:hover { gap: 10px; }

/* Upcoming Section */
.upcoming-section { background: var(--light-color); }
.event-card { background: #fff; border-radius: 15px; padding: 25px; display: flex; align-items: center; gap: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: all 0.3s; margin-bottom: 20px; }
.event-card:hover { transform: translateX(10px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.event-card .date-box { background: var(--primary-color); color: #fff; padding: 15px 20px; border-radius: 10px; text-align: center; min-width: 80px; }
.event-card .date-box .day { font-size: 1.8rem; font-weight: 700; line-height: 1; }
.event-card .date-box .month { font-size: 0.85rem; text-transform: uppercase; }
.event-card .event-info h5 { color: var(--dark-color); font-weight: 600; margin-bottom: 5px; }
.event-card .event-info p { color: #666; margin: 0; font-size: 0.9rem; }
.event-card .event-info .time { color: var(--primary-color); font-weight: 600; }

/* Footer */
.footer { background: linear-gradient(135deg, var(--dark-color), #0f0f23); color: #fff; padding: 60px 0 20px; }
.footer h5 { color: var(--secondary-color); font-weight: 600; margin-bottom: 25px; }
.footer p, .footer a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.3s; }
.footer a:hover { color: var(--secondary-color); }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { display: flex; align-items: center; gap: 10px; }
.footer-links a i { color: var(--secondary-color); }
.social-links { display: flex; gap: 15px; }
.social-links a { width: 45px; height: 45px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: all 0.3s; }
.social-links a:hover { background: var(--secondary-color); color: var(--dark-color); transform: translateY(-5px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; margin-top: 40px; text-align: center; }

/* Modal Login */
.modal-login .modal-content { background: linear-gradient(135deg, #1a1a2e, #16213e); border: 2px solid var(--secondary-color); border-radius: 15px; }
.modal-login .modal-header { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 25px 30px; }
.modal-login .modal-title { color: #fff; font-weight: 600; }
.modal-login .btn-close { filter: invert(1); }
.modal-login .modal-body { padding: 30px; }
.modal-login .form-control { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 12px 15px; border-radius: 8px; }
.modal-login .form-control::placeholder { color: rgba(255,255,255,0.5); }
.modal-login .form-control:focus { background: rgba(255,255,255,0.15); border-color: var(--secondary-color); box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); color: #fff; }
.modal-login .form-label { color: rgba(255,255,255,0.8); font-weight: 500; }
.modal-login .btn-login-submit { background: var(--secondary-color); color: var(--dark-color); border: none; padding: 12px; font-weight: 600; border-radius: 8px; transition: all 0.3s; }
.modal-login .btn-login-submit:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4); }
.modal-login .toggle-password { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); cursor: pointer; color: rgba(255,255,255,0.5); z-index: 10; }
.modal-login .login-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.modal-login .login-links a:hover { color: var(--secondary-color); }
.modal-login .divider { display: flex; align-items: center; color: rgba(255,255,255,0.5); margin: 25px 0; }
.modal-login .divider::before, .modal-login .divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.2); }
.modal-login .divider span { padding: 0 15px; font-size: 0.9rem; }
.modal-login .btn-member { background: transparent; border: 2px solid var(--secondary-color); color: var(--secondary-color); padding: 12px; font-weight: 600; border-radius: 8px; transition: all 0.3s; }
.modal-login .btn-member:hover { background: var(--secondary-color); color: var(--dark-color); }

/* Hero for inner pages */
.page-hero { background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff; padding: 80px 0; text-align: center; }
.page-hero h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; }

/* User Dropdown (logged-in member) */
.user-dropdown { position: relative; display: inline-block; }
.user-dropdown .btn-user { background: var(--secondary-color); border: none; color: var(--dark-color); padding: 5px 15px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.user-dropdown .btn-user:hover { background: #fff; }
.user-dropdown .dropdown-menu { position: absolute; top: 100%; right: 0; background: var(--dark-color); border: 1px solid var(--secondary-color); border-radius: 10px; min-width: 180px; padding: 8px 0; margin-top: 5px; display: none; z-index: 9999; }
.user-dropdown.show .dropdown-menu { display: block; }
.user-dropdown .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 15px; color: rgba(255,255,255,0.8); text-decoration: none; transition: all 0.2s; }
.user-dropdown .dropdown-item:hover { background: rgba(255,215,0,0.1); color: var(--secondary-color); }
.user-dropdown .dropdown-item i { width: 18px; color: var(--secondary-color); }

/* Responsive */
@media (max-width: 991px) { 
    .hero-carousel .carousel-item { height: 70vh; } 
    .hero-carousel h1 { font-size: 2.5rem; } 
    .hero-carousel .carousel-caption { text-align: center; max-width: 100%; padding: 0 20px; } 
    .btn-hero { display: block; margin: 10px auto; } 
    .btn-hero-outline { margin-left: 0; } 
}
@media (max-width: 767px) { 
    .section { padding: 50px 0; } 
    .section-title h2 { font-size: 2rem; } 
    .hero-carousel h1 { font-size: 2rem; } 
    .top-bar .d-flex { flex-direction: column; gap: 10px; text-align: center; } 
    .page-hero { padding: 60px 0; }
    .page-hero h1 { font-size: 2rem; }
}
