:root {
    --bg-color: #0B0F29;
    --text-color: #F2F2F2;
    --accent-color: #F5C542;
    --accent-dark: #C9A12F;
    --section-bg: #11152F;
    --card-bg: #1A1F3D;
}

body {
    margin: 0;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', sans-serif;
}

.section {
    padding: 3rem 2rem;
    text-align: center;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.section.events {
    background: #0B0F29;   /* matches your dark theme */
    color: #fff;
}


.section.about {
    background: #0B0F29;   /* matches your dark theme */
    color: #fff;
	font-size: 1.5rem;
}




.btn-primary {
    background: var(--accent-color);
    color: #0B0F29;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-weight: 600;
}

.btn-secondary {
    border: 2px solid var(--accent-color);
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    color: var(--accent-color);
}

.btn-small {
    background: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: #0B0F29;
    font-size: 0.9rem;
}
.btn-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}


.event-card,
.blog-card,
.astro-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem;
}

.astro-card-details {
    max-width: 700px;        /* half-screen width on desktop */
    margin: 2rem auto;       /* centers the box */
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;

    text-align: center;      /* center text inside the box */
    line-height: 1.6;
}

.astro-card-details img {
    display: block;
    margin: 0 auto 1rem auto;
    max-width: 200px;
    border-radius: 8px;
}

.astro-card-details p.bio {
    text-align: left;
    margin-top: 1rem;
    line-height: 1;
	color: #87CEEB; ;           /* sky blue */
}

.astro-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;   /* circle */
    margin: 0 auto 1rem auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-card {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

.gallery-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.gallery-user {
    font-size: 0.9rem;
    opacity: 0.8;
}
.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    text-align: center;
}

.sponsor-card {
    background: #111;
    padding: 12px;
    border-radius: 8px;
}

.sponsor-card img {
    width: 200px;        /* or 200px */
    height: auto;
    object-fit: contain; /* keeps logo proportions */
    display: block;
    margin: 0 auto;      /* centers the logo */
}

.sponsor-name {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #ccc;
}

.dashboard-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.profile-box {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    width: 260px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.dashboard-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 260px;
}

.event-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.event-tag.public {
    background: #4CC9F0;
    color: #0B0F29;
}

.event-tag.members {
    background: #F5C542;
    color: #0B0F29;
}

/* Admin Email Form */
form.form-auth-members {
    max-width: 650px;
    margin: 20px auto;
    padding: 20px;
	color: white;
    background: white;   /* lighter than section-bg */
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

form.form-auth-members label {
	color: white;
    display: block;
    margin: 12px 0 6px;
    font-weight: 600;
    color: black;
}

form.form-auth-members input[type="text"],
form.form-auth-members select,
form.form-auth-members textarea {
    width: 100%;
    padding: 0.9rem;
    border-radius: 8px;
    background: white;          /* slightly lighter navy */
    color: black;
    border: 1px solid #333;
    margin-bottom: 12px;
}

form.form-auth-members textarea {
    min-height: 150px;
}

form.form-auth-members button {
    margin-top: 1rem;
}


.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 10px;
}

.blog-cover {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.blog-cover-large {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.blog-meta {
    opacity: 0.8;
    font-size: 0.9rem;
}

.blog-content {
    line-height: 1.6;
    font-size: 1.1rem;
}

.blog-author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.blog-author-avatar-small {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 6px;
}

.blog-author-bio {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

.blog-author-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}



nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

nav a:hover {
    color: #4CC9F0;
}

.nav-menu {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
	justify-content: flex-end; /* NEW: aligns items to the right */
    text-align: right;         /* helps when wrapping */
	margin-left: auto; /* pushes nav to the right */
}

@media (max-width: 900px) {
    .nav-menu {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

.site-header {
    width: 100%;
    background: #0B0F29;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

* {
    box-sizing: border-box;
}

/* Admin Table Styling */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.admin-table th {
    background-color: #1e293b; /* dark header */
    color: #fff;
    text-align: left;
    padding: 10px;
}

.admin-table td {
	color: #1e293b;
    border-bottom: 1px solid #ddd;
    padding: 10px;
	text-align: left;
}

.admin-table tr:hover {
	color: #1e293b;
    background-color: #f1f5f9; /* subtle hover */
	
}

.admin-table a {
    color: #2563eb;
    text-decoration: none;
}

.admin-table a:hover {
    text-decoration: underline;
}

/* Admin Links Styling */
.admin-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1rem;
}

.admin-links a {
    display: inline-block;
    background-color: #1e293b; /* dark navy tone */
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.admin-links a:hover {
    background-color: #2563eb; /* bright blue hover */
    transform: translateY(-2px);
}

.admin-links a:active {
    background-color: #0f172a;
    transform: translateY(0);
}

/* General button background behavior */
.dashboard-links a {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff; /* ensures text stays visible */
    font-weight: bold;
}

/* Individual backgrounds */
.btn-astronomy {
    background-image: url('assets/images/bg-astronomy.jpg');
}

.btn-science {
    background-image: url('assets/images/bg-science.jpg');
}

.btn-math {
    background-image: url('assets/images/bg-math.jpg');
}

.btn-arts {
    background-image: url('assets/images/bg-arts.jpg');
}

.btn-history {
    background-image: url('assets/images/bg-history.jpg');
}

.btn-geography {
    background-image: url('assets/images/bg-geography.jpg');
}

.btn-politics {
    background-image: url('assets/images/bg-politics.jpg');
}

.btn-culture {
    background-image: url('assets/images/bg-culture.jpg');
}

.btn-profile {
    background-image: url('assets/images/bg-profile.jpg');
}

.btn-logout {
    background-image: url('assets/images/bg-logout.jpg');
}

.progress-card {
    background: #1f2937;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    color: #fff;
}

.progress-bar {
    background: #374151;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    background: #3b82f6;
    height: 10px;
}

.leader-card {
    background: #1f2937;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    color: #fff;
    width: 260px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.leader-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.leader-rank {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #3b82f6;
}

.badge-card {
    background: #1f2937;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    color: #fff;
    width: 260px;
}

.badge-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.footer-counter, .footer-categories {
    margin-top: 10px;
    font-size: 0.9em;
    opacity: 0.85;
}
