
:root {
    --sgao-navy: #102d50;
    --sgao-navy-dark: #0a203a;
    --sgao-gold: #c9a44c;
    --sgao-light: #f5f7fa;
    --sgao-text: #444;
    --sgao-border: #e5e9ef;
}

/* General */

.office-website {
    font-family: 'Noto Sans Devanagari', 'Roboto', sans-serif;
    color: var(--sgao-text);
}

.sgao-section {
    padding: 80px 0;
}

.section-heading {
    margin-bottom: 35px;
}

.section-subtitle {
    color: var(--sgao-gold);
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
}

.section-heading h2 {
    color: var(--sgao-navy);
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-heading p {
    color: #777;
    max-width: 650px;
    margin: 15px auto 0;
}

.heading-line {
    width: 65px;
    height: 3px;
    background: var(--sgao-gold);
    position: relative;
}

.heading-line::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 3px;
    background: var(--sgao-navy);
    left: 70px;
}

/* Buttons */

.btn-gold {
    background: var(--sgao-gold);
    border: 1px solid var(--sgao-gold);
    color: #fff;
    padding: 12px 25px;
    font-weight: 700;
    border-radius: 3px;
}

.btn-gold:hover {
    background: #b18c36;
    border-color: #b18c36;
    color: #fff;
}

.btn-navy {
    background: var(--sgao-navy);
    border: 1px solid var(--sgao-navy);
    color: white;
    padding: 12px 25px;
    border-radius: 3px;
}

.btn-navy:hover {
    background: var(--sgao-navy-dark);
    color: white;
}

/* Hero */

.sgao-hero .carousel-item {
    height: 560px;
}

.hero-slide {
    height: 100%;
    position: relative;
    background-position: center;
    background-size: cover;
    background-color: var(--sgao-navy);
}

.hero-slide-one {
    background-image: url('/images/offices/sgao/hero-1.jpg');
}

.hero-slide-two {
    background-image: url('/images/offices/sgao/hero-2.jpg');
}

.hero-slide-three {
    background-image: url('/images/offices/sgao/hero-3.jpg');
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(7, 28, 51, .94) 0%,
        rgba(16, 45, 80, .80) 48%,
        rgba(16, 45, 80, .18) 100%
    );
}

.hero-container {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: #fff;
    max-width: 680px;
    padding: 40px 0 60px;
}

.hero-label {
    display: inline-block;
    color: var(--sgao-gold);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 23px;
    font-weight: 600;
    color: #f4d58b;
}

.hero-content p {
    font-size: 16px;
    line-height: 2;
    color: rgba(255,255,255,.9);
    margin: 20px 0 25px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions .btn-outline-light {
    padding: 12px 25px;
    border-radius: 3px;
}

.sgao-hero .carousel-indicators {
    justify-content: flex-start;
    margin-left: max(calc((100% - 1140px) / 2), 5%);
    margin-bottom: 25px;
}

.sgao-hero .carousel-control-prev,
.sgao-hero .carousel-control-next {
    width: 55px;
}

/* Notice ticker */

.sgao-notice-bar {
    background: var(--sgao-navy);
    color: #fff;
}

.notice-inner {
    display: flex;
    align-items: center;
    min-height: 55px;
    gap: 20px;
}

.notice-heading {
    background: var(--sgao-gold);
    padding: 16px 20px;
    font-weight: 700;
    white-space: nowrap;
    margin-left: -12px;
}

.notice-heading i {
    margin-right: 7px;
}

.notice-content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.notice-track {
    display: flex;
    width: max-content;
    gap: 55px;
    animation: sgaoTicker 28s linear infinite;
}

.notice-track:hover {
    animation-play-state: paused;
}

.notice-track a,
.notice-track span {
    color: white;
    text-decoration: none;
}

.notice-track i {
    color: var(--sgao-gold);
    margin-right: 8px;
}

@keyframes sgaoTicker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.notice-more {
    color: #f4d58b;
    white-space: nowrap;
    text-decoration: none;
}

/* Quick links */

.sgao-quick-links {
    background: #fff;
    padding: 25px 0;
    border-bottom: 1px solid var(--sgao-border);
}

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

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 15px;
    color: var(--sgao-navy);
    text-decoration: none;
    border-right: 1px solid var(--sgao-border);
    transition: .3s;
}

.quick-link-item:hover {
    background: var(--sgao-light);
    color: var(--sgao-gold);
    transform: translateY(-3px);
}

.quick-icon {
    min-width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    background: #edf2f8;
    border-radius: 50%;
    font-size: 21px;
}

.quick-link-item h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.quick-link-item span {
    font-size: 12px;
    color: #888;
}

.quick-arrow {
    margin-left: auto;
}

/* About */

.sgao-about {
    background: #fff;
}

.about-image-wrapper {
    position: relative;
    min-height: 350px;
    background: linear-gradient(135deg, #102d50, #31577f);
    overflow: hidden;
}

.about-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.about-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(transparent, rgba(5,25,47,.95));
    color: white;
}

.about-image-caption span {
    color: var(--sgao-gold);
}

.about-image-caption h4 {
    margin: 8px 0 0;
    font-weight: 700;
}

.about-description {
    font-size: 19px;
    font-weight: 700;
    color: var(--sgao-navy);
}

.sgao-about p {
    line-height: 2;
}

/* Services */

.sgao-services {
    background: var(--sgao-light);
}

.service-card {
    height: 100%;
    padding: 30px;
    background: white;
    border: 1px solid var(--sgao-border);
    transition: .3s;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--sgao-gold);
    box-shadow: 0 10px 30px rgba(16,45,80,.08);
}

.service-icon {
    width: 65px;
    height: 65px;
    background: #edf2f8;
    color: var(--sgao-navy);
    display: grid;
    place-items: center;
    font-size: 27px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.service-card h4 {
    font-size: 18px;
    color: var(--sgao-navy);
    font-weight: 700;
}

.service-card p {
    color: #777;
    line-height: 1.9;
    margin: 12px 0 0;
}

/* Updates */

.sgao-updates {
    background: white;
}

.view-all {
    color: var(--sgao-navy);
    text-decoration: none;
    font-weight: 700;
}

.update-panel {
    height: 100%;
    border: 1px solid var(--sgao-border);
    background: white;
}

.update-panel-header {
    padding: 18px 22px;
    background: var(--sgao-navy);
    color: white;
}

.update-panel-header h4 {
    font-size: 17px;
    margin: 0;
    font-weight: 700;
}

.update-panel-header i {
    color: var(--sgao-gold);
    margin-right: 8px;
}

.update-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--sgao-border);
    text-decoration: none;
    color: var(--sgao-text);
    transition: .2s;
}

.update-item:hover,
.notice-item:hover {
    background: var(--sgao-light);
}

.update-date {
    min-width: 100px;
    font-size: 12px;
    color: #999;
}

.update-title h5,
.notice-item h5 {
    font-size: 15px;
    color: var(--sgao-navy);
    font-weight: 700;
    line-height: 1.8;
}

.update-title span {
    color: var(--sgao-gold);
    font-size: 12px;
}

.notice-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border-bottom: 1px solid var(--sgao-border);
    text-decoration: none;
    color: var(--sgao-text);
}

.notice-item h5 {
    margin: 0 0 6px;
}

.notice-item span {
    color: #999;
    font-size: 12px;
}

.notice-item-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    display: grid;
    place-items: center;
    background: #f5eeee;
    color: #a13e3e;
    font-size: 20px;
}

.empty-update {
    padding: 30px;
    text-align: center;
    color: #999;
}

/* Citizen charter */

.sgao-charter {
    background: var(--sgao-navy);
    padding: 40px 0;
}

.charter-content {
    display: flex;
    align-items: center;
    gap: 25px;
    color: white;
}

.charter-icon {
    font-size: 45px;
    color: var(--sgao-gold);
}

.charter-text {
    flex: 1;
}

.charter-text span {
    color: var(--sgao-gold);
    font-size: 13px;
}

.charter-text h2 {
    font-size: 25px;
    font-weight: 800;
    margin: 5px 0;
}

.charter-text p {
    color: rgba(255,255,255,.8);
    margin: 0;
}

/* Contact */

.sgao-contact {
    background: var(--sgao-light);
}

.contact-card {
    height: 100%;
    padding: 35px 25px;
    background: white;
    border: 1px solid var(--sgao-border);
    text-align: center;
}

.contact-icon {
    width: 65px;
    height: 65px;
    display: grid;
    place-items: center;
    background: var(--sgao-navy);
    color: var(--sgao-gold);
    border-radius: 50%;
    font-size: 24px;
    margin: 0 auto 20px;
}

.contact-card h4 {
    color: var(--sgao-navy);
    font-size: 17px;
    font-weight: 700;
}

.contact-card p {
    margin: 10px 0 0;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

/* Responsive */

@media(max-width: 991px) {
    .sgao-hero .carousel-item {
        height: 500px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .charter-content {
        flex-wrap: wrap;
    }
}

@media(max-width: 767px) {
    .sgao-section {
        padding: 55px 0;
    }

    .sgao-hero .carousel-item {
        height: 480px;
    }

    .hero-content {
        padding: 20px;
    }

    .hero-content h1 {
        font-size: 27px;
    }

    .hero-content h2 {
        font-size: 18px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero-overlay {
        background: rgba(7,28,51,.82);
    }

    .notice-heading {
        padding: 14px 10px;
        font-size: 12px;
    }

    .notice-more {
        display: none;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .quick-link-item {
        border-right: 0;
        border-bottom: 1px solid var(--sgao-border);
    }

    .section-heading h2 {
        font-size: 24px;
    }

    .charter-content {
        text-align: center;
        justify-content: center;
    }

    .charter-text {
        flex-basis: 100%;
    }

    .update-item {
        flex-direction: column;
        gap: 8px;
    }
}
