@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;700;800&display=swap');

:root {
    --maroon: #5e0012;
    --maroon-dark: #40000c;
    --maroon-light: #7a031a;
    --gold: #d4a034;
    --gold-light: #f7d77a;
    --gold-gradient: linear-gradient(135deg, #f7d77a 0%, #d4a034 100%);
    --bg: #fdfaf7;
    --card-bg: #ffffff;
    --text: #2c1f21;
    --text-muted: #6e5f62;
    --border: #ebdcd6;
    --border-light: #f3eae6;
    --shadow: 0 4px 20px rgba(94, 0, 18, 0.07);
    --shadow-hover: 0 8px 30px rgba(94, 0, 18, 0.12);
    --radius: 12px;
}

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

body {
    font-family: 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Top Notification Bar */
.top-bar {
    background: var(--maroon-dark);
    color: #f7e6e8;
    font-size: 13px;
    padding: 8px 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Main Header */
.header {
    background: #ffffff;
    padding: 12px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brand-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--maroon);
    line-height: 1.1;
}

.brand-domain {
    font-size: 14px;
    font-family: Georgia, serif;
    color: var(--gold);
    font-weight: 700;
}

/* Nav */
.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav a {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    padding: 6px 10px;
    border-radius: 6px;
}

.nav a:hover {
    color: var(--maroon);
    background: var(--bg);
}

.user-pill {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--maroon) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-weight: 700 !important;
}

.admin-link {
    color: #b33900 !important;
    background: #fff4ed;
    padding: 8px 14px !important;
    border-radius: 8px;
    font-weight: 700 !important;
}

.logout-btn {
    color: #990000 !important;
}

/* Container */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 20px;
    flex: 1;
}

/* Flash alerts */
.flash {
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.flash-success {
    background: #eafaf1;
    color: #12753a;
    border: 1px solid #c2eed5;
}

.flash-error {
    background: #fdf2f2;
    color: #a81c1c;
    border: 1px solid #fad2d2;
}

.flash-notice {
    background: #fef9e7;
    color: #8f6805;
    border: 1px solid #fce8aa;
}

/* Notice box */
.notice {
    background: #fff9e6;
    border: 1px solid #f6deb0;
    border-radius: 10px;
    padding: 15px 20px;
    color: #7a5806;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
    margin-bottom: 22px;
}

.card h1, .card h2, .card h3 {
    color: var(--maroon);
    margin-bottom: 14px;
    font-weight: 700;
}

/* Grids */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--maroon);
    color: #ffffff;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    text-align: center;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn:hover {
    background: var(--maroon-light);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(94, 0, 18, 0.2);
}

.gold-btn, .btn-gold {
    background: var(--gold-gradient);
    color: #3b2203 !important;
    font-weight: 800;
    border: none;
}

.gold-btn:hover, .btn-gold:hover {
    background: linear-gradient(135deg, #fae092 0%, #e0b048 100%);
    color: #2b1700 !important;
}

.btn-secondary {
    background: #f0e6e3;
    color: var(--maroon);
}

.btn-secondary:hover {
    background: #e3d2cd;
    color: var(--maroon-dark);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Forms */
label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #443235;
}

input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #ffffff;
    color: var(--text);
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 160, 52, 0.2);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.table th, .table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
    font-size: 14px;
}

.table th {
    background: #fbf5f2;
    color: var(--maroon);
    font-weight: 700;
}

.table tr:hover td {
    background: #fdfaf9;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.badge-success {
    background: #eafaf1;
    color: #12753a;
}

.badge-warning {
    background: #fef9e7;
    color: #946c07;
}

.badge-danger {
    background: #fdf2f2;
    color: #a81c1c;
}

.badge-muted {
    background: #f3ebe8;
    color: var(--text-muted);
}

/* Hero Section */
.hero {
    background: linear-gradient(90deg, rgba(64, 0, 12, 0.92) 0%, rgba(94, 0, 18, 0.78) 60%, rgba(64, 0, 12, 0.85) 100%),
                url("hero-couple.jpg") center/cover no-repeat;
    color: #ffffff;
    padding: 70px 40px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(94, 0, 18, 0.15);
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    color: var(--gold-light);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero h1 span {
    color: var(--gold-light);
}

.hero p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #f7e6e8;
}

/* Photos */
.profile-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
}

/* Footer */
.footer {
    background: var(--maroon-dark);
    color: #f7e6e8;
    padding: 50px 5% 20px;
    margin-top: auto;
}

.footer-wrap {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 35px;
}

.foot-brand {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.foot-brand img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.foot-brand h3 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 6px;
}

.foot-brand p {
    font-size: 14px;
    color: #d1b8bc;
    line-height: 1.6;
}

.foot-col h4 {
    color: var(--gold-light);
    font-size: 16px;
    margin-bottom: 15px;
}

.foot-col a, .foot-col p {
    display: block;
    color: #d1b8bc;
    font-size: 14px;
    margin-bottom: 10px;
}

.foot-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #a68f93;
}

/* Responsive Styles */
@media (max-width: 900px) {
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .grid, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    .footer-wrap {
        grid-template-columns: 1fr 1fr;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero {
        padding: 40px 20px;
    }
}

@media (max-width: 600px) {
    .footer-wrap {
        grid-template-columns: 1fr;
    }
    .top-bar-right {
        display: none;
    }
}

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