/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* === COLORS === */
:root {
    --saffron: #FF8C00;
    --gold: #DAA520;
    --deep-blue: #1a237e;
    --navy: #0d1b3e;
    --white: #ffffff;
    --light-bg: #fdf8f0;
    --text: #333333;
    --text-light: #666666;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 5px 30px rgba(0,0,0,0.15);
    --radius: 10px;
    --transition: all 0.3s ease;
}

/* === HEADER === */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--navy);
    padding: 0 2rem;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}
.logo-img { width: 55px; height: 55px; object-fit: contain; }
.logo-text { font-size: 0.85rem; font-weight: 600; line-height: 1.3; }
.logo-text .trust-name { color: var(--saffron); font-size: 0.95rem; }

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-links a {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--saffron);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--saffron);
    transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* === HERO === */
.hero {
    position: relative;
    height: 85vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    margin-top: 85px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,27,62,0.8) 0%, rgba(26,35,126,0.6) 50%, rgba(255,140,0,0.3) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeUp 1s ease;
}
.hero-logo {
    height: 200px;
    width: auto;
    display: block;
    margin: 0 auto 1rem;
}
.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    white-space: nowrap;
}
.hero .subtitle {
    font-size: 1rem;
    color: var(--saffron);
    font-weight: 400;
    margin-bottom: 0.5rem;
}
.hero .location {
    display: block;
    width: fit-content;
    margin: 0 auto 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    padding: 0.35rem 1rem;
    border-radius: 50px;
}
.hero-btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background: var(--saffron);
    color: var(--white);
    font-weight: 600;
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255,140,0,0.4);
}
.hero-btn:hover {
    background: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,140,0,0.5);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === SECTIONS === */
.section {
    padding: 5rem 2rem;
}
.section-alt { background: var(--light-bg); }
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: 2rem;
    color: var(--navy);
    position: relative;
    display: inline-block;
    padding-bottom: 0.8rem;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 3px;
    background: var(--saffron);
    border-radius: 2px;
}
.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 1rem auto 0;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* === ABOUT === */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
}
.about-content p + p { margin-top: 1rem; }

/* === MISSION === */
.mission-content { max-width: 850px; margin: 0 auto; line-height: 1.8; color: var(--text); }
.mission-content p + p { margin-top: 1rem; }
.mission-content h3 { margin-top: 2rem; margin-bottom: 1rem; color: var(--navy); font-size: 1.3rem; }
.mission-pillars { list-style: none; padding: 0; }
.mission-pillars li { padding: 0.6rem 0 0.6rem 1.5rem; position: relative; }
.mission-pillars li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; background: var(--saffron); border-radius: 50%; }
.mission-pillars li strong { color: var(--navy); }
.mission-quote { margin-top: 2rem; padding: 1.5rem 2rem; border-left: 4px solid var(--saffron); background: rgba(255,140,0,0.06); font-style: italic; font-size: 1.1rem; color: var(--navy); }

/* === SERVICES === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 3px solid transparent;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--saffron);
}
.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.service-card h3 {
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.service-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* === GALLERY PREVIEW === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.2rem;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0,0,0,0.6));
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay span {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
}
.gallery-more {
    text-align: center;
    margin-top: 2rem;
}
.btn {
    display: inline-block;
    padding: 0.7rem 2rem;
    background: var(--saffron);
    color: var(--white);
    font-weight: 600;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.btn:hover {
    background: var(--gold);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--saffron);
    color: var(--saffron);
}
.btn-outline:hover {
    background: var(--saffron);
    color: var(--white);
}

/* === CONTACT INFO === */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.contact-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
}
.contact-card .icon {
    font-size: 2rem;
    color: var(--saffron);
    margin-bottom: 1rem;
}
.contact-card h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.contact-card p, .contact-card a {
    color: var(--text-light);
    font-size: 0.95rem;
}
.contact-card a:hover { color: var(--saffron); }

/* === FOOTER === */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 2rem;
}
.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.footer-social a {
    color: rgba(255,255,255,0.7);
    font-size: 1.3rem;
    transition: var(--transition);
}
.footer-social a:hover { color: var(--saffron); }
.site-footer p { font-size: 0.85rem; }

/* === LIGHTBOX === */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.lightbox.active { display: flex; }
.lightbox img, .lightbox video {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
}
.lightbox-close {
    position: absolute;
    top: 1.5rem; right: 2rem;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    border: none;
    width: 45px; height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    border: none;
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* === FULL GALLERY PAGE === */
.page-header {
    margin-top: 85px;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--deep-blue) 100%);
    color: var(--white);
    text-align: center;
}
.page-header h1 { font-size: 2rem; }
.page-header p { color: rgba(255,255,255,0.7); margin-top: 0.3rem; }

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.gallery-tab {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--saffron);
    border-radius: 50px;
    background: transparent;
    color: var(--saffron);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.9rem;
}
.gallery-tab.active, .gallery-tab:hover {
    background: var(--saffron);
    color: var(--white);
}

.video-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
    box-shadow: var(--shadow);
    background: #000;
}
.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    transition: var(--transition);
}
.video-play-icon::after {
    content: '▶';
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.video-item:hover .video-play-icon {
    background: rgba(0,0,0,0.1);
}

/* === CONTACT PAGE === */
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.contact-info-item .ci-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.contact-info-item h3 { font-size: 1rem; color: var(--navy); }
.contact-info-item p, .contact-info-item a {
    color: var(--text-light);
    font-size: 0.9rem;
}
.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
}
.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* === TEAM PAGE === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}
.team-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
}
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.team-photo-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--light-bg);
}
.team-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}
.team-card:hover .team-photo-wrap img { transform: scale(1.05); }
.team-info {
    padding: 1rem;
    border-top: 3px solid var(--saffron);
}
.team-info h3 {
    font-size: 0.95rem;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.team-position {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--saffron);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Staff list */
.staff-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.staff-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.8rem;
    border-left: 4px solid var(--saffron);
}
.staff-photo-wrap {
    width: 130px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--light-bg);
}
.staff-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
.staff-info { flex: 1; }
.staff-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #eee;
}
.staff-header h3 { font-size: 1.15rem; color: var(--navy); }
.staff-position {
    background: var(--saffron);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.staff-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 2rem;
}
.staff-detail-row { display: flex; flex-direction: column; gap: 0.1rem; }
.sd-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}
.sd-value { font-size: 0.9rem; color: var(--navy); }
.sd-since {
    color: var(--saffron);
    font-weight: 600;
}

@media (max-width: 700px) {
    .staff-card { flex-direction: column; gap: 1.2rem; }
    .staff-photo-wrap { width: 100%; height: 200px; }
    .staff-details { grid-template-columns: 1fr; }
}

/* === DONATE === */
.donate-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: stretch;
}
.donate-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--saffron);
}
.donate-payment-card { padding: 0; overflow: hidden; }
.donate-payment-split {
    display: flex;
    align-items: stretch;
}
.donate-split-col {
    flex: 1;
    padding: 2rem;
}
.donate-split-upi {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--light-bg);
}
.donate-split-divider {
    width: 1px;
    background: #ebebeb;
    flex-shrink: 0;
}
.donate-card-note {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}
.donate-card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}
.donate-icon { font-size: 1.8rem; }
.donate-card-header h3 { font-size: 1.1rem; color: var(--navy); }

@media (max-width: 900px) {
    .donate-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .donate-payment-split { flex-direction: column; }
    .donate-split-divider { width: 100%; height: 1px; }
    .donate-split-upi { align-items: flex-start; text-align: left; }
}
.bank-details { display: flex; flex-direction: column; gap: 0.9rem; }
.bank-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}
.bank-row:last-child { border-bottom: none; padding-bottom: 0; }
.bank-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.bank-value {
    font-size: 0.9rem;
    color: var(--navy);
    text-align: right;
    font-weight: 500;
}
.bank-mono {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    color: var(--deep-blue);
    font-weight: 700;
}
.upi-wrap { text-align: center; }
.upi-qr { width: 180px; height: auto; margin: 0 auto 1rem; display: block; border-radius: 8px; }
.upi-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
}
.upi-id {
    display: inline-block;
    background: var(--light-bg);
    border: 2px dashed var(--saffron);
    border-radius: 8px;
    padding: 0.7rem 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}
.upi-note {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* === CONTACT FORM === */
.contact-form-wrap {
    max-width: 760px;
    margin: 0 auto;
}
.contact-form-alert {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.5rem;
}
.contact-form textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    resize: vertical;
    min-height: 150px;
}
.contact-form textarea:focus {
    outline: none;
    border-color: var(--saffron);
}
/* Honeypot — invisible to humans, bots fill it in */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
.required { color: var(--saffron); margin-left: 2px; }
.optional { color: var(--text-light); font-size: 0.8rem; font-weight: 400; }

@media (max-width: 600px) {
    .contact-form-row { grid-template-columns: 1fr; gap: 0; }
}

/* === ADMIN MESSAGES === */
.msg-list { display: flex; flex-direction: column; gap: 0; }
.msg-row {
    padding: 1.2rem 0;
    border-bottom: 1px solid #eee;
}
.msg-row:last-child { border-bottom: none; }
.msg-unread { background: #fffbf4; border-left: 3px solid var(--saffron); padding-left: 1rem; margin-left: -1rem; }
.msg-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}
.msg-badge {
    background: var(--saffron);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.msg-name { font-size: 0.95rem; color: var(--navy); }
.msg-email { font-size: 0.85rem; color: var(--saffron); }
.msg-email:hover { text-decoration: underline; }
.msg-phone { font-size: 0.85rem; color: var(--text-light); }
.msg-phone a:hover { color: var(--saffron); }
.msg-date { font-size: 0.8rem; color: var(--text-light); margin-left: auto; }
.msg-subject { font-weight: 600; font-size: 0.95rem; color: var(--navy); margin-bottom: 0.4rem; }
.msg-body { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; white-space: pre-wrap; margin-bottom: 0.8rem; }
.msg-actions { display: flex; gap: 0.5rem; }
.nav-badge {
    background: var(--saffron);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 20px;
    margin-left: auto;
    line-height: 1.4;
}

/* ============================
   ADMIN PANEL STYLES
   ============================ */
.admin-body {
    background: #f0f2f5;
    min-height: 100vh;
}

/* Admin Login */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--deep-blue) 100%);
    padding: 2rem;
}
.login-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 3rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}
.login-box h1 {
    text-align: center;
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}
.login-box .login-sub {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}
.login-dev {
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid #eee;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}
.login-dev span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #bbb;
}
.login-dev img {
    max-width: 90px;
    height: auto;
    opacity: 0.7;
    transition: var(--transition);
}
.login-dev a:hover img { opacity: 1; }
.login-dev a:last-child {
    font-size: 0.72rem;
    color: #999;
    transition: var(--transition);
}
.login-dev a:last-child:hover { color: var(--saffron); }
.form-group {
    margin-bottom: 1.2rem;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.4rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--saffron);
}
.btn-full {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
}
.alert {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.alert-error {
    background: #fde8e8;
    color: #c62828;
    border: 1px solid #f5c6c6;
}
.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 240px;
    background: var(--navy);
    color: var(--white);
    padding: 1.5rem 0;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
}
.admin-sidebar .sidebar-logo {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}
.admin-sidebar .sidebar-logo h2 {
    font-size: 1rem;
    color: var(--saffron);
}
.admin-sidebar .sidebar-logo small {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}
.admin-nav { flex: 1; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}
.admin-nav a:hover, .admin-nav a.active {
    background: rgba(255,255,255,0.1);
    color: var(--saffron);
}
.admin-nav .nav-icon { font-size: 1.1rem; }

.admin-main {
    margin-left: 240px;
    flex: 1;
    padding: 2rem;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.admin-header h1 { font-size: 1.5rem; color: var(--navy); }

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.stat-icon {
    width: 55px; height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.stat-icon.photos { background: #e3f2fd; }
.stat-icon.videos { background: #fce4ec; }
.stat-icon.recycle { background: #fff3e0; }
.stat-info { flex: 1; }
.stat-info h3 { font-size: 1.8rem; color: var(--navy); line-height: 1; }
.stat-info p { font-size: 0.85rem; color: var(--text-light); }
.stat-size {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--saffron);
    background: var(--light-bg);
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    white-space: nowrap;
}

/* Admin Cards/Tables */
.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.admin-card h2 {
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #eee;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.media-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #f5f5f5;
}
.media-item img, .media-item video {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.media-item .caption {
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.media-item .actions {
    padding: 0.3rem 0.7rem 0.7rem;
    display: flex;
    gap: 0.5rem;
}
.btn-sm {
    padding: 0.3rem 0.8rem;
    font-size: 0.78rem;
    border-radius: 5px;
}
.btn-danger {
    background: #e53935;
    color: white;
}
.btn-danger:hover { background: #c62828; }
.btn-success {
    background: #43a047;
    color: white;
}
.btn-success:hover { background: #2e7d32; }

/* Upload Form */
.upload-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    background: var(--light-bg);
    border-radius: var(--radius);
}
.upload-form .form-group { margin-bottom: 0; }
.upload-form input[type="file"] {
    border: none;
    padding: 0.4rem 0;
}

/* Recycle bin table-like */
.recycle-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}
.recycle-item:last-child { border-bottom: none; }
.recycle-item img, .recycle-item video {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}
.recycle-info { flex: 1; }
.recycle-info .name { font-weight: 500; font-size: 0.9rem; }
.recycle-info .meta { font-size: 0.8rem; color: var(--text-light); }
.recycle-actions { display: flex; gap: 0.5rem; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 0.5rem; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 85px; left: 0; right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 0.5rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 0.8rem 0; font-size: 1rem; }
    .mobile-toggle { display: block; }

    .hero { height: 70vh; min-height: 400px; }
    .hero h1 { font-size: 1.8rem; }
    .hero .subtitle { font-size: 1rem; }

    .services-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-page-grid { grid-template-columns: 1fr; }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: var(--transition);
    }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .admin-toggle {
        display: block !important;
    }
    .upload-form { flex-direction: column; align-items: stretch; }
    .media-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .media-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.5rem; }
    .section { padding: 3rem 1rem; }
}

/* Developer Branding */
.sidebar-dev {
    margin-top: auto;
    padding: 1rem 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.dev-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 0.6rem;
}
.dev-logo-link { display: inline-block; margin-bottom: 0.5rem; }
.dev-logo {
    max-width: 100px;
    height: auto;
    opacity: 0.8;
    transition: var(--transition);
}
.dev-logo-link:hover .dev-logo { opacity: 1; }
.dev-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.dev-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}
.dev-title {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
}
.dev-phone, .dev-site {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}
.dev-phone:hover, .dev-site:hover {
    color: var(--saffron);
}

/* Admin mobile toggle */
.admin-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--navy);
}
