/* ===================================
   HERO
=================================== */

.authority-hero {
    padding: 70px 0;

    background: #f7faff;
}

.breadcrumb-wrap {
    margin-bottom: 30px;

    font-size: 14px;
}

.breadcrumb-wrap a {
    color: #6b7280;

    text-decoration: none;
}

.hero-badge {
    display: inline-block;

    background: #eef4ff;

    color: #0d6efd;

    padding: 8px 16px;

    border-radius: 30px;

    font-size: 14px;

    font-weight: 600;

    margin-bottom: 20px;
}

.authority-hero h1 {
    font-size: 58px;

    font-weight: 800;

    line-height: 1.1;

    color: #0a2540;
}

.authority-hero h1 span {
    display: block;

    color: #0d6efd;
}

.authority-hero p {
    font-size: 18px;

    color: #6b7280;

    max-width: 550px;

    margin-top: 20px;
}

.hero-img {
    max-height: 500px;
}

/* ===================================
   STATS SECTION
=================================== */

.authority-stats-section{

    margin-top:-50px;

    position:relative;

    z-index:10;

}

.authority-stats-bar{

    background:

    linear-gradient(

        135deg,

        #1f6fff,

        #1454cc

    );

    border-radius:22px;

    display:grid;

    grid-template-columns:

        repeat(4,1fr);

    overflow:hidden;

    box-shadow:

    0 15px 40px rgba(13,110,253,.20);

}

.authority-stat-item{

    text-align:center;

    color:#fff;

    padding:30px 20px;

    border-right:

    1px solid rgba(255,255,255,.15);

}

.authority-stat-item:last-child{

    border-right:none;

}

.authority-stat-item i{

    font-size:34px;

    margin-bottom:15px;

    opacity:.95;

}

.authority-stat-item h3{

    font-size:42px;

    font-weight:800;

    margin-bottom:5px;

}

.authority-stat-item p{

    margin:0;

    font-size:16px;

    opacity:.95;

}

/* ===================================
   SEARCH SECTION
=================================== */

.authority-search-section {
    background: #fff;
}

.search-card {
    background: #fff;

    border: 1px solid #e8edf7;

    border-radius: 20px;

    padding: 30px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

.search-input-wrap {
    position: relative;
}

.search-input-wrap i {
    position: absolute;

    left: 18px;
    top: 50%;

    transform: translateY(-50%);

    color: #94a3b8;
}

.search-input-wrap input {
    height: 58px;

    padding-left: 50px;

    border-radius: 14px;

    border: 1px solid #dbe5f3;
}

.search-card .form-select {
    height: 58px;

    border-radius: 14px;

    border: 1px solid #dbe5f3;
}

.region-filters {
    margin-top: 25px;

    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}

.region-btn {
    border: none;

    background: #f1f5f9;

    color: #475569;

    padding: 10px 18px;

    border-radius: 30px;

    font-size: 14px;

    font-weight: 600;

    transition: 0.3s;
}

.region-btn:hover {
    background: #dbeafe;

    color: #0d6efd;
}

.region-btn.active {
    background: #0d6efd;

    color: #fff;
}

/* ===================================
   FEATURED STATES
=================================== */

.featured-states-section {
    background: #f8fbff;
}

.featured-state-card {
    background: #fff;

    border: 1px solid #e8edf7;

    border-radius: 20px;

    padding: 30px;

    text-align: center;

    height: 100%;

    transition: 0.3s;
}

.featured-state-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 12px 30px rgba(13, 110, 253, 0.08);
}

.state-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 20px;

    border-radius: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    font-weight: 700;
}

.state-icon.ap {
    background: #eef5ff;
    color: #0d6efd;
}

.state-icon.ts {
    background: #ecfdf3;
    color: #16a34a;
}

.state-icon.ka {
    background: #fff7ed;
    color: #ea580c;
}

.state-icon.tn {
    background: #f5f3ff;
    color: #7c3aed;
}

.featured-state-card h5 {
    font-weight: 700;

    margin-bottom: 10px;
}

.featured-state-card p {
    color: #64748b;

    min-height: 50px;

    font-size: 14px;
}

.state-link {
    color: #0d6efd;

    font-weight: 600;

    text-decoration: none;
}

.state-link i {
    margin-left: 5px;
}

/* ===================================
   AUTHORITY DIRECTORY
=================================== */

.authority-directory-section {
    background: #fff;
}

.authority-card {
    background: #fff;

    border: 1px solid #e8edf7;

    border-radius: 20px;

    padding: 24px;

    height: 100%;

    transition: 0.3s;
}

.authority-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 12px 30px rgba(13, 110, 253, 0.08);
}

.authority-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 18px;
}

.authority-state {
    font-weight: 700;

    color: #0a2540;

    font-size: 14px;
}

.authority-region {
    background: #eef5ff;

    color: #0d6efd;

    padding: 6px 12px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 600;
}

.authority-card h5 {
    font-size: 18px;

    font-weight: 700;

    min-height: 55px;

    margin-bottom: 18px;

    color: #0a2540;
}

.authority-meta {
    list-style: none;

    padding: 0;

    margin: 0 0 20px;
}

.authority-meta li {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin-bottom: 12px;

    font-size: 14px;

    color: #64748b;
}

.authority-meta i {
    color: #0d6efd;

    margin-top: 3px;
}

.authority-card .btn {
    border-radius: 12px;

    font-weight: 600;
}

/* ===================================
   REGION OVERVIEW
=================================== */

.region-overview-section {
    background: #f8fbff;
}

.region-card {
    background: #fff;

    border: 1px solid #e8edf7;

    border-radius: 16px;

    padding: 18px 12px;

    text-align: center;

    height: 100%;

    transition: 0.3s;
}

.region-card:hover {
    transform: translateY(-3px);

    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.08);
}

.region-icon {
    width: 48px;

    height: 48px;

    margin: 0 auto 10px;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 18px;
}

.region-card h4 {
    font-size: 15px;

    font-weight: 700;

    margin-bottom: 4px;

    color: #0a2540;
}

.region-card h2 {
    font-size: 30px;

    font-weight: 800;

    margin-bottom: 2px;
}

.region-card p {
    font-size: 12px;

    color: #64748b;

    margin-bottom: 3px;
}

.region-card small {
    display: block;

    font-size: 11px;

    color: #94a3b8;

    line-height: 1.3;
}

/* Colors */

.south .region-icon {
    background: #eef5ff;

    color: #0d6efd;
}

.south h2 {
    color: #0d6efd;
}

.north .region-icon {
    background: #ecfdf3;

    color: #16a34a;
}

.north h2 {
    color: #16a34a;
}

.east .region-icon {
    background: #fff7ed;

    color: #ea580c;
}

.east h2 {
    color: #ea580c;
}

.west .region-icon {
    background: #f5f3ff;

    color: #7c3aed;
}

.west h2 {
    color: #7c3aed;
}

.northeast .region-icon {
    background: #fff1f2;

    color: #e11d48;
}

.northeast h2 {
    color: #e11d48;
}

/* ===================================
   AUTHORITY TABLE
=================================== */

.authority-table-section {
    background: #fff;
}

.directory-table-card {
    background: #fff;

    border: 1px solid #e8edf7;

    border-radius: 20px;

    overflow: hidden;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

.table-toolbar {
    padding: 20px;

    border-bottom: 1px solid #edf2f7;
}

.table-search {
    position: relative;

    max-width: 400px;
}

.table-search i {
    position: absolute;

    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: #94a3b8;
}

.table-search input {
    padding-left: 45px;

    height: 50px;

    border-radius: 12px;
}

.directory-table {
    margin: 0;
}

.directory-table thead {
    background: #f8fbff;
}

.directory-table th {
    color: #0a2540;

    font-weight: 700;

    padding: 18px;
}

.directory-table td {
    padding: 18px;

    vertical-align: middle;
}

.directory-table tbody tr {
    border-color: #edf2f7;
}

.directory-table tbody tr:hover {
    background: #fafcff;
}

/* Badges */

.type-badge {
    display: inline-block;

    padding: 6px 12px;

    border-radius: 30px;

    font-size: 12px;

    font-weight: 600;
}

.type-badge.state {
    background: #eef5ff;

    color: #0d6efd;
}

.type-badge.management {
    background: #f5f3ff;

    color: #7c3aed;
}

.type-badge.govt {
    background: #ecfdf3;

    color: #16a34a;
}

/* ===================================
   DOWNLOADS
=================================== */

.downloads-section {
    background: #f8fbff;
}

.download-card {
    background: #fff;

    border: 1px solid #e8edf7;

    border-radius: 20px;

    padding: 30px;

    text-align: center;

    height: 100%;

    transition: 0.3s;
}

.download-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 12px 30px rgba(13, 110, 253, 0.08);
}

.download-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 20px;

    border-radius: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;
}

.download-icon.blue {
    background: #eef5ff;
    color: #0d6efd;
}

.download-icon.green {
    background: #ecfdf3;
    color: #16a34a;
}

.download-icon.orange {
    background: #fff7ed;
    color: #ea580c;
}

.download-icon.purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.download-card h5 {
    font-weight: 700;

    margin-bottom: 12px;
}

.download-card p {
    color: #64748b;

    font-size: 14px;

    min-height: 55px;
}

.download-btn {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #0d6efd;

    font-weight: 600;

    text-decoration: none;
}

.download-btn:hover {
    color: #0a58ca;
}
