* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f7f4;
    color: #1b1b1b;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1260px, 92%);
    margin: 0 auto;
}

.top-contact-bar {
    background: #0b7d46;
    color: #fff;
    font-size: 0.88rem;
    padding: 7px 0;
}

.top-contact-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.top-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0.96;
}

.top-contact-item .icon {
    font-size: 0.9rem;
}

.site-header {
    background: #f0f5f1;
    border-bottom: 1px solid rgba(12, 69, 39, 0.12);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100px;
    gap: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: url(https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQqaeW4ijFV8W1pM-y2DCGZB9s5C-Dxz_cPZT2_XoqECi_G4LdllEcIduWu&s=10);
    position: relative;
    box-shadow: inset 0 0 0 2px #ffffff;
    flex-shrink: 0;
    background-size: cover;
    border: 1px solid #0f8b4d;
    background-position: center;
}

.brand-mark {}

.brand-mark::before {
    content: "";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #0b3c27;
    font-size: 1.5rem;
    font-weight: 800;
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-name {
    color: #1a2d28;
    text-decoration: none;
    font-size: clamp(1.15rem, 1.8vw, 1.6rem);
    line-height: 1.2;
    font-weight: 800;
}

.brand-bangla {
    font-size: 0.7rem;
    color: #1d463a;
    margin-top: 3px;
    font-weight: 600;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

.main-nav a {
    color: #1b2a2a;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.96rem;
    padding: 8px 0;
    position: relative;
}

.main-nav a:not(.admin-login-link)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #0b7d46;
    transition: 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:first-child::after {
    width: 100%;
}

.admin-login-link {
    background: #0f8b4d;
    color: #fff !important;
    padding: 11px 18px !important;
    border-radius: 10px;
    box-shadow: 0 10px 18px rgba(15, 139, 77, 0.15);
}

.page-content {
    min-height: 75vh;
}

.hero-banner {
    background: linear-gradient(135deg, #dfeee7, #f4faf5 60%, #e3f3eb 100%);
    padding: 0 0 10px;
    border-bottom: 5px solid #0f8b4d;
}

.hero-banner-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 30px;
    min-height: 520px;
}

.hero-copy-area {
    padding: 42px 0 18px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0f8b4d;
    color: #fff;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 18px;
}

.hero-copy-area h1 {
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    line-height: 1.08;
    color: #101c1a;
    font-weight: 900;
    margin-bottom: 18px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #12372d;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-text {
    font-size: 1.05rem;
    color: #415e57;
    line-height: 1.75;
    max-width: 620px;
    margin-bottom: 22px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 26px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #0f8b4d, #0b7d46);
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 139, 77, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #0c7145;
    border-color: #0c7145;
}

.hero-image-box {
    height: 100%;
    min-height: 690px;
    background-image: linear-gradient(rgba(11, 55, 37, 0.18), rgba(11, 55, 37, 0.08)),
        url(../../add.jpeg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 35px rgba(14, 55, 36, 0.14), inset 0 0 0 1px rgba(0,0,0,0.04);
}

.hero-image-overlay {
    position: absolute;
    left: 50%;
    top: 42px;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.76);
    border: 1px solid rgba(12, 69, 39, 0.2);
    color: #0d3d2a;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.why-us {
    padding: 52px 0 20px;
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    gap: 26px;
    align-items: start;
}

.features-panel {
    background: #fff;
    border-radius: 18px;
    padding: 26px 22px;
    border: 1px solid #dfeae4;
    box-shadow: 0 10px 28px rgba(12, 73, 38, 0.04);
}

.features-panel h3,
.section-title {
    color: #1b2b2a;
    font-size: clamp(2rem, 2.5vw, 2.7rem);
    margin-bottom: 22px;
    font-weight: 800;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.feature-item {
    background: #f8faf9;
    border: 1px solid #e2e9e5;
    border-radius: 16px;
    padding: 18px 16px;
    min-height: 180px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #dff4e8;
    color: #0f8b4d;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    margin-bottom: 14px;
}

.feature-item h4 {
    color: #1b2d27;
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.feature-item p {
    color: #4e605a;
    line-height: 1.7;
}

.sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-box {
    background: #0f8b4d;
    color: #fff;
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 12px 26px rgba(13, 92, 60, 0.15);
}

.sidebar-box h4 {
    margin-bottom: 14px;
    font-size: 1.22rem;
    font-weight: 800;
}

.date-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-size: 0.96rem;
}

.date-row:last-child {
    border-bottom: none;
}

.date-row span {
    color: rgba(255,255,255,0.95);
}

.date-row strong {
    color: #fff;
    font-size: 0.9rem;
    text-align: right;
}

.contact-box {
    background: #ffffff;
    border: 1px solid #dfeae4;
    color: #1a2d2b;
    box-shadow: 0 10px 24px rgba(17, 34, 26, 0.04);
}

.contact-box h4 {
    color: #0c7145;
    margin-bottom: 14px;
}

.contact-row {
    padding: 12px 0;
    border-bottom: 1px solid #e4ece7;
    color: #1a2d2b;
    font-weight: 700;
}

.contact-row:last-child {
    border-bottom: none;
}

.departments {
    padding: 32px 0 70px;
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.dept-item {
    background: #ffffff;
    color: #1a2d2b;
    border: 1px solid #dce8e1;
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
    font-weight: 700;
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0,0,0,0.02);
}

.site-footer {
    border-top: 1px solid #dfe7e2;
    background: #fafcfb;
    padding: 16px 0;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: #4a5d57;
}

.site-footer p {
    font-size: 0.98rem;
}

.footer-brand {
    font-weight: 800;
    color: #0b7d46;
}

@media (max-width: 1100px) {
    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .dept-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hero-banner-inner {
        grid-template-columns: 1fr;
    }

    .hero-image-box {
        min-height: 527px;
        border-radius: 18px;
    }

    .brand-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .top-contact-inner,
    .nav-bar,
    .site-footer .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-bar {
        padding: 16px 0;
    }

    .main-nav {
        justify-content: flex-start;
    }

    .feature-grid,
    .dept-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy-area h1 {
        font-size: 2.5rem;
    }
}

.form-wrap {
    width: min(900px, 92%);
    margin: 40px auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 28px;
}

.form-header {
    margin-bottom: 24px;
}

.form-header h2 {
    margin-bottom: 8px;
}

.form-header p {
    color: var(--muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.photo-panel {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: start;
    justify-self: end;
    width: min(100%, 260px);
}

.photo-upload-wrap {
    width: 100%;
}

.photo-upload-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    max-width: 100%;
    margin: 0 auto;
    border: 2px dashed #cfcfcf;
    border-radius: 10px;
    background: #f7f7f7;
    cursor: pointer;
    overflow: hidden;
    transition: 0.2s ease;
}

.photo-upload-box:hover {
    border-color: #999999;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.photo-upload-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #2f2f2f;
    gap: 10px;
    padding: 20px;
    z-index: 1;
}

#photoPreview[hidden] {
    display: none;
}

.upload-icon {
    font-size: 2.6rem;
    line-height: 1;
    color: #6a6a6a;
    display: inline-block;
    transform: translateY(-4px);
}

.upload-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.upload-subtitle {
    font-size: 0.95rem;
    color: #555555;
}

.form-group label {
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid rgba(30, 94, 255, 0.12);
    border-color: var(--primary);
}

.btn {
    display: inline-block;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: #0f8b4d;
    color: white;
}

.btn-primary:hover {color: black;background: white;}

.btn-secondary {
    background: #e9f1ff;
    color: var(--primary-dark);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.alert-success {
    background: #e8f9ee;
    border-color: #bfead1;
    color: var(--success);
}

.alert-error {
    background: #ffe8eb;
    border-color: #f5b7c1;
    color: var(--danger);
}

.admin-layout {
    width: min(1200px, 94%);
    margin: 36px auto;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.login-card {
    max-width: 450px;
    margin: 70px auto;
}

.login-card h2 {
    margin-bottom: 20px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    background: var(--white);
}

th, td {
    padding: 12px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    background: #f1f4ff;
}

.application-link {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
    margin-top: 20px;
}

.detail-item {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fafcff;
}

.detail-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 22px 0;
    color: var(--muted);
    background: #fff;
}

.search-box {
    margin-bottom: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-box input,
.search-box select {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

@media (max-width: 768px) {
    .hero-inner,
    .form-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .photo-panel {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
        justify-self: stretch;
    }

    .photo-upload-box {
        width: 260px;
        height: 260px;
    }

    .nav-bar {
        flex-direction: column;
        gap: 12px;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* About page styles */
.about-hero {
    background: linear-gradient(135deg, #eaf7ef, #f4faf5);
    padding: 56px 0;
    border-bottom: 4px solid #0f8b4d;
    text-align: center;
}

.about-hero .lead {
    max-width: 820px;
    margin: 12px auto 0;
    color: #415e57;
    font-size: 1.05rem;
}

.about-content {
    padding: 36px 0 80px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

.about-card {
    background: #fff;
    border: 1px solid #dfeae4;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 22px rgba(12,73,38,0.04);
}

.history {
    margin: 18px 0 28px;
    color: #4e605a;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.team-member {
    background: #fff;
    border: 1px solid #dce8e1;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
}

.member-photo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    font-size: 2rem;
    background: #eaf7ef;
    color: #0f8b4d;
}

.member-name {
    font-weight: 800;
    color: #12372d;
    margin-bottom: 4px;
}

.member-role {
    color: #4e605a;
    font-size: 0.95rem;
}

.about-cta {
    margin-top: 18px;
    text-align: center;
}

@media (max-width: 900px) {
    .about-grid, .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .about-grid, .team-grid {
        grid-template-columns: 1fr;
    }
    .member-photo {
        width: 72px;
        height: 72px;
    }
}

/* Modern Contact Page Styles */
.contact-hero {
    background: linear-gradient(135deg, #f0fbf6, #ffffff);
    padding: 48px 0;
    border-bottom: 1px solid #e6f1ea;
}
.contact-hero .hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.contact-hero h1 {
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    color: #0f3e2a;
    margin-bottom: 8px;
}
.contact-hero .lead {
    color: #516a60;
}
.contact-page {
    padding: 36px 0 80px;
}
.contact-grid-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
.contact-left {
    display: grid;
    gap: 18px;
}
.contact-card.modern {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e6f1ea;
    box-shadow: 0 12px 30px rgba(11,64,36,0.05);
}
.contact-card.modern.small {
    padding: 14px;
}
.contact-card.modern h3, .contact-card.modern h4 {
    margin-bottom: 8px;
    color: #0e3a2a;
}
.contact-list {
    list-style: none;
    margin-top: 8px;
    color: #2f4b40;
}
.contact-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #f0f5f2;
}
.map-placeholder {
    height: 260px;
    background: linear-gradient(135deg, #eef9f0, #fff);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e7efe9;
}

.map-placeholder iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-right .form-card {
    padding: 22px;
}
.modern-form .form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.modern-form input[type="text"],
.modern-form input[type="email"],
.modern-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dcebe3;
    border-radius: 10px;
    font-size: 1rem;
    color: #12372d;
}
.modern-form textarea { min-height: 140px; }
.modern-form .form-actions { text-align: right; }

@media (max-width: 900px) {
    .contact-grid-modern { grid-template-columns: 1fr; }
    .modern-form .form-row { flex-direction: column; }
}
