/* ============================================================
   AYUSH Haryana – Global Stylesheet
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f7f9fc;
    color: #333;
}

a {
    text-decoration: none;
}

/* ================= Top Bar ================= */
.top-bar {
    background: #174d2c;
    color: #fff;
    font-size: 13px;
    padding: 7px 0;
}
.top-bar a {
    color: #fff;
    margin-right: 15px;
}
.top-bar a:hover {
    color: #ffd166;
}

/* ================= Header ================= */
.main-header {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}
.logo-box {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: contain;
}
.department-title {
    line-height: 1.25;
}
.department-title h1 {
    font-size: 25px;
    font-weight: 700;
    color: #174d2c;
    margin: 0;
}
.department-title h2 {
    font-size: 16px;
    font-weight: 500;
    color: #555;
    margin: 3px 0;
}
.department-title p {
    font-size: 13px;
    margin: 0;
    color: #777;
}

/* ================= Navigation ================= */
.navbar {
    background: #116530 !important;
    padding: 0;
}
.navbar-nav .nav-link {
    color: #fff !important;
    font-size: 14px;
    font-weight: 500;
    padding: 15px 16px !important;
}
.navbar-nav .nav-link:hover {
    background: #0b4821;
    color: #ffd166 !important;
}
.navbar-toggler {
    border-color: rgba(255,255,255,.4);
}
.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}
.dropdown-menu {
    background: #116530;
}
.dropdown-item {
    color: #fff !important;
}
.dropdown-item:hover {
    background: #0b4821;
    color: #ffd166 !important;
}

/* ================= Hero Slider ================= */
.hero-section {
    position: relative;
}
.hero-slide {
    height: 460px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.20));
}
.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 120px;
    color: #fff;
    max-width: 650px;
}
.hero-content h2 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 15px;
}
.hero-content p {
    font-size: 18px;
    line-height: 1.7;
}
.hero-btn {
    background: #f5a623;
    border: none;
    padding: 12px 25px;
    color: #fff;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    margin-top: 15px;
}
.hero-btn:hover {
    background: #d98d0b;
    color: #fff;
}

/* ================= Section ================= */
.section {
    padding: 60px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    color: #174d2c;
    font-weight: 700;
    font-size: 30px;
}
.section-title p {
    color: #777;
    font-size: 14px;
}
.title-line {
    width: 70px;
    height: 4px;
    background: #f5a623;
    margin: 12px auto;
    border-radius: 5px;
}

/* ================= Quick Links ================= */
.quick-link {
    background: #fff;
    padding: 25px 15px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,.08);
    height: 100%;
    transition: .3s;
    border-bottom: 3px solid transparent;
}
.quick-link:hover {
    transform: translateY(-7px);
    border-bottom-color: #f5a623;
}
.quick-link i {
    font-size: 35px;
    color: #116530;
    margin-bottom: 15px;
}
.quick-link h5 {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}
.quick-link p {
    font-size: 12px;
    color: #777;
    margin: 0;
}

/* ================= AYUSH Systems ================= */
.system-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 18px rgba(0,0,0,.08);
    height: 100%;
    transition: .3s;
}
.system-card:hover {
    transform: translateY(-6px);
}
.system-icon {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef8f0;
}
.system-icon i {
    font-size: 55px;
    color: #116530;
}
.system-body {
    padding: 20px;
    text-align: center;
}
.system-body h4 {
    font-size: 18px;
    color: #174d2c;
    font-weight: 600;
}
.system-body p {
    font-size: 13px;
    color: #777;
}

/* ================= Notice Section ================= */
.notice-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 18px rgba(0,0,0,.08);
    overflow: hidden;
}
.notice-header {
    background: #116530;
    color: #fff;
    padding: 15px 20px;
    font-weight: 600;
}
.notice-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 15px;
}
.notice-date {
    min-width: 90px;
    color: #116530;
    font-size: 12px;
    font-weight: 600;
}
.notice-item a {
    color: #333;
    font-size: 13px;
}
.notice-item a:hover {
    color: #116530;
}

/* ================= Statistics ================= */
.stats-section {
    background: #174d2c;
    padding: 55px 0;
}
.stat-box {
    color: #fff;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,.25);
}
.stat-box:last-child {
    border-right: none;
}
.stat-box i {
    font-size: 35px;
    margin-bottom: 10px;
    color: #ffd166;
}
.stat-box h3 {
    font-size: 32px;
    font-weight: 700;
}
.stat-box p {
    font-size: 13px;
    margin: 0;
}

/* ================= Portal Cards ================= */
.portal-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 18px;
    height: 100%;
    box-shadow: 0 3px 15px rgba(0,0,0,.08);
    transition: .3s;
}
.portal-card:hover {
    transform: translateY(-5px);
}
.portal-icon {
    width: 65px;
    height: 65px;
    min-width: 65px;
    border-radius: 50%;
    background: #e9f5ec;
    display: flex;
    align-items: center;
    justify-content: center;
}
.portal-icon i {
    color: #116530;
    font-size: 27px;
}
.portal-card h5 {
    margin: 0 0 5px;
    font-size: 17px;
    color: #174d2c;
}
.portal-card p {
    margin: 0;
    font-size: 12px;
    color: #777;
}

/* ================= CTA ================= */
.cta-section {
    background: linear-gradient(90deg, #116530, #174d2c);
    color: #fff;
    padding: 50px 0;
}
.cta-section h2 {
    font-weight: 700;
}
.cta-section p {
    opacity: .9;
}

/* ================= Footer ================= */
footer {
    background: #102b1b;
    color: #ddd;
    padding-top: 50px;
}
footer h5 {
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
}
footer p, footer li {
    font-size: 13px;
    line-height: 1.8;
}
footer ul {
    list-style: none;
    padding: 0;
}
footer ul li a {
    color: #ccc;
}
footer ul li a:hover {
    color: #ffd166;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    padding: 15px 0;
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
}

/* ================= Back to Top ================= */
#backToTop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #116530;
    color: #fff;
    border: none;
    display: none;
    z-index: 999;
}
#backToTop:hover {
    background: #f5a623;
}

/* ================= Admin Login Button ================= */
.admin-login-btn {
    position: fixed;
    bottom: 80px;
    right: 25px;
    z-index: 998;
    background: #174d2c;
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
}
.admin-login-btn:hover {
    background: #f5a623;
    color: #fff;
}

/* ================= Gallery ================= */
.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    transition: .3s;
}
.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: .3s;
}
.gallery-item .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: .3s;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-item .gallery-overlay i {
    color: #fff;
    font-size: 30px;
}

/* ================= Responsive ================= */
@media(max-width: 768px) {
    .department-title h1 { font-size: 19px; }
    .department-title h2 { font-size: 13px; }
    .department-title p  { font-size: 10px; }
    .logo { width: 60px; height: 60px; }

    .hero-slide { height: 400px; }
    .hero-content { padding: 90px 20px; }
    .hero-content h2 { font-size: 30px; }
    .hero-content p  { font-size: 14px; }

    .stat-box {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.2);
        padding: 20px;
    }
    .stat-box:last-child { border-bottom: none; }
}