/* DepEd Schools Division Office - Public Site Styles */
/* Color theme variables are defined in theme.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ==================== TOP NAVIGATION BAR ==================== */
.top-nav-bar {
    background: var(--white);
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
}

.top-nav-bar .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.top-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.top-nav-menu > li {
    position: relative;
}

.top-nav-menu > li > a {
    display: block;
    padding: 12px 12px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.top-nav-menu > li > a:hover,
.top-nav-menu > li > a.active {
    background: var(--primary-blue);
    color: var(--white);
}

/* Hide dropdown arrows */
.top-nav-menu > li > a .fa-caret-down {
    display: none;
}

.top-nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
    padding: 0;
}

.top-nav-menu .dropdown:hover .dropdown-menu {
    display: block;
}

.top-nav-menu .dropdown-item {
    padding: 10px 15px;
    color: var(--text-dark);
    font-size: 13px;
    border-bottom: 1px solid #f3f4f6;
}

.top-nav-menu .dropdown-item:hover {
    background: var(--light-gray);
    color: var(--primary-blue);
}

.top-nav-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    padding: 8px 15px;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    font-size: 13px;
    width: 150px;
}

.accessibility-btn,
.font-size-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--light-gray);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-dark);
    transition: all 0.2s;
}

.accessibility-btn:hover,
.font-size-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Mobile Navigation */
.mobile-nav-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1100;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 20px;
}

.mobile-nav {
    background: var(--white);
    border-bottom: 1px solid #e5e7eb;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li a {
    display: block;
    padding: 15px 20px;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-menu li a:hover {
    background: var(--light-gray);
}

/* ==================== MAIN HEADER ==================== */
.main-header {
    background: var(--primary-blue);
    padding: 15px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logos {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    height: 60px;
    width: auto;
}

.header-logo.bagong-pilipinas {
    height: 70px;
}

.header-logo.sdo-seal {
    height: 75px;
    border-radius: 50%;
    background: white;
    padding: 3px;
}

.header-text {
    flex: 1;
    text-align: center;
}

.header-text .header-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    margin: 0 0 5px 0;
    letter-spacing: 1px;
}

.header-text h1 {
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.header-text .header-dept {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    margin: 5px 0 0 0;
}

.header-info {
    text-align: right;
}

.header-pst {
    color: var(--white);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.header-pst strong {
    display: block;
    font-size: 0.85rem;
}

.header-visitor {
    color: var(--white);
    font-size: 0.85rem;
}

.header-visitor strong {
    color: var(--accent-gold);
}

/* ==================== HERO CAROUSEL ==================== */
.hero-carousel {
    position: relative;
    background: #d1d5db;
    padding: 30px 0;
}

.carousel-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.hero-carousel .carousel {
    width: 100%;
}

.hero-carousel .carousel-inner {
    border-radius: 0;
    overflow: hidden;
    background: transparent;
}

.hero-carousel .carousel-item {
    background: transparent;
}

.carousel-image {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-slide {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.carousel-content {
    text-align: center;
    color: var(--white);
}

.carousel-content .carousel-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.carousel-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.carousel-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.carousel-content .tagline {
    font-size: 1.1rem;
    opacity: 0.9;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 100%;
    opacity: 0.6;
    background: rgba(0,0,0,0.2);
    top: 0;
    transform: none;
    border-radius: 0;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 0.8;
    background: rgba(0,0,0,0.4);
}

.carousel-control-prev {
    left: 0;
}

.carousel-control-next {
    right: 0;
}

.carousel-indicators {
    bottom: 10px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.pst-display {
    position: absolute;
    top: 10px;
    right: 20px;
    background: transparent;
    padding: 5px 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    z-index: 10;
}

.pst-display strong {
    color: var(--primary-blue);
    font-weight: 600;
}

/* ==================== ADVISORY TICKER ==================== */
.advisory-ticker {
    display: flex;
    background: #dc2626;
    color: white;
}

.advisory-label {
    background: #1f2937;
    padding: 12px 25px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.advisory-content {
    flex: 1;
    padding: 12px 20px;
    overflow: hidden;
}

.advisory-content marquee {
    font-size: 0.9rem;
}

.advisory-content a {
    color: white;
    text-decoration: none;
}

.advisory-content a:hover {
    text-decoration: underline;
}

.advisory-item {
    display: inline;
}

/* ==================== NEWS SCROLL SECTION ==================== */
.news-scroll-section {
    padding: 30px 0;
    background: #f8f9fa;
}

.news-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
    flex: 1;
}

.news-scroll-container::-webkit-scrollbar {
    display: none;
}

.news-scroll-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.news-scroll-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    color: inherit;
    text-decoration: none;
}

.news-scroll-img {
    height: 160px;
    overflow: hidden;
}

.news-scroll-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-scroll-img-placeholder {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 3rem;
}

.news-scroll-body {
    padding: 15px;
    flex: 1;
}

.news-scroll-body h6 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #1f2937;
}

.news-scroll-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #1e3a5f;
    background: white;
    color: #1e3a5f;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.news-scroll-btn:hover {
    background: #1e3a5f;
    color: white;
}

@media (max-width: 768px) {
    .news-scroll-card {
        flex: 0 0 260px;
    }

    .news-scroll-btn {
        display: none;
    }
}

/* ==================== VISION MISSION SECTION ==================== */
.vision-mission-section {
    background: var(--primary-blue);
}

.vm-card {
    background: transparent;
    color: white;
    padding: 20px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.2);
    height: 100%;
}

.vm-card:last-child {
    border-right: none;
}

.vm-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.vm-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
}

/* ==================== QUICK SEALS SECTION ==================== */
.quick-seals-section {
    background: var(--light-gray);
    padding: 30px 0;
}

.seals-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.seal-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.seal-link img {
    height: 80px;
    width: auto;
    filter: grayscale(20%);
    transition: all 0.3s;
}

.seal-link:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.seal-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
}

.seal-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.seal-placeholder span {
    font-size: 0.75rem;
    font-weight: 600;
}

/* ==================== SECTION STYLES ==================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-blue);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
}

.view-all-link {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* ==================== ISSUANCE CARDS ==================== */
.issuance-card-modern {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.issuance-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.issuance-card-modern .card-badge .badge {
    background: var(--secondary-blue);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.issuance-card-modern .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 15px 0 10px;
    flex: 1;
}

.issuance-card-modern .card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.issuance-card-modern .card-title a:hover {
    color: var(--secondary-blue);
}

.issuance-card-modern .ref-number {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.issuance-card-modern .card-meta {
    display: flex;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.issuance-card-modern .download-btn {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
}

.issuance-card-modern .download-btn:hover {
    background: var(--secondary-blue);
}

/* ==================== SERVICE CARDS ==================== */
.service-card-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
}

.service-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    color: var(--text-dark);
}

.service-icon-modern {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 15px;
}

.service-card-modern h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-card-modern p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.service-card-modern .external-badge {
    font-size: 0.75rem;
    color: var(--secondary-blue);
}

/* ==================== QUICK LINKS GRID ==================== */
.quick-links-grid {
    background: var(--white);
}

.quick-link-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    padding: 30px 15px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    text-align: center;
}

.quick-link-box:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-5px);
}

.quick-link-box i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secondary-blue);
    transition: color 0.3s;
}

.quick-link-box:hover i {
    color: var(--white);
}

.quick-link-box span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ==================== PAGE HEADER ==================== */
.page-header-section {
    background: linear-gradient(135deg, var(--primary-blue), #2563eb);
    padding: 50px 0;
    color: var(--white);
}

.page-header-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--white);
}

.breadcrumb-item.active {
    color: var(--white);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* ==================== GOVERNMENT FOOTER ==================== */
.gov-footer {
    background: var(--gov-footer-bg);
    padding: 50px 0 30px;
    color: var(--white);
}

.footer-section {
    margin-bottom: 20px;
}

.footer-seal {
    height: 80px;
    margin-bottom: 15px;
}

.footer-section h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.gov-links {
    column-count: 1;
}

@media (min-width: 992px) {
    .gov-links {
        column-count: 2;
    }
}

/* Social Links in Footer */
.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-links .social-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--secondary-blue);
    color: var(--white);
    transform: scale(1.1);
}

/* Contact Info in Footer */
.footer-section .contact-info {
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.footer-section .contact-info i {
    width: 20px;
    color: var(--accent-gold);
}

.sub-footer {
    background: #2d3748;
    padding: 15px 0;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

.sub-footer p {
    margin: 0;
}

.admin-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.admin-link:hover {
    color: var(--white);
}

/* ==================== FLOATING CHAT BUTTON ==================== */
.floating-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--secondary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    transition: all 0.3s;
    z-index: 1000;
}

.floating-chat-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.1);
}

/* ==================== CARDS & TABLES ==================== */
.card {
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border-radius: 10px;
}

.card-header {
    background: var(--light-gray);
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
}

.table-custom th {
    background: var(--light-gray);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-blue);
}

.filter-section {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

/* ==================== ORGANIZATION CARDS ==================== */
.org-card {
    background: var(--white);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    transition: all 0.3s;
}

.org-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.org-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--secondary-blue);
}

.org-card h5 {
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-dark);
}

.org-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
    .top-nav-bar {
        display: none;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .header-logos {
        justify-content: center;
    }

    .header-visitor {
        display: none;
    }

    .carousel-content h2 {
        font-size: 1.75rem;
    }

    .carousel-content h3 {
        font-size: 1.1rem;
    }

    .seals-wrapper {
        gap: 25px;
    }

    .seal-link img {
        height: 60px;
    }

    .pst-display {
        position: static;
        text-align: center;
        margin-top: 10px;
        border-radius: 0;
    }
}

@media (max-width: 576px) {
    .carousel-slide {
        min-height: 300px;
        padding: 40px 15px;
    }

    .carousel-content h2 {
        font-size: 1.5rem;
    }

    .quick-link-box {
        padding: 20px 10px;
    }

    .quick-link-box i {
        font-size: 2rem;
    }

    .floating-chat-btn {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        bottom: 20px;
        right: 20px;
    }
}

/* Service Card (for Services pages) */
.service-card {
    display: block;
    background: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    color: var(--text-dark);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.service-card h5 {
    font-weight: 600;
    margin-bottom: 10px;
}
