/* ==========================================================================
   New Rising Sun Intelligence Public School - Public Pages Modern UI Styles
   Theme Colors: Sun Crimson (#7F1D1D / #991B1B), Sunburst Gold (#F59E0B)
   ========================================================================== */

/* Modern Card Containers */
.public-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0e6e6;
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.public-card:hover {
    box-shadow: 0 8px 25px rgba(127, 29, 29, 0.12);
}

.public-card-header {
    background: linear-gradient(135deg, #7F1D1D 0%, #991B1B 100%);
    color: #ffffff;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid #F59E0B;
}

.public-card-header h3,
.public-card-header h4 {
    color: #ffffff !important;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.public-card-body {
    padding: 24px;
}

/* Academic Search Filter Bar */
.academic-search-box {
    display: flex;
    align-items: center;
    background: #fafafa;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 12px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.academic-search-box:focus-within {
    border-color: #991B1B;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(153, 27, 27, 0.15);
}

.academic-search-box input.form-control,
.academic-search-box .txtbox {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    width: 100% !important;
    height: 42px !important;
    padding: 0 10px !important;
}

.academic-search-box input.form-control:focus,
.academic-search-box .txtbox:focus {
    outline: none !important;
}

.academic-search-box .btn-search {
    background: linear-gradient(135deg, #991B1B 0%, #7F1D1D 100%);
    color: #ffffff !important;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.academic-search-box .btn-search:hover {
    background: #7F1D1D;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(127, 29, 29, 0.3);
}

/* Modernized GridView & Data Tables */
.public-table-wrap {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.public-table-wrap table {
    width: 100% !important;
    margin-bottom: 0 !important;
    border-collapse: collapse !important;
}

.public-table-wrap table th {
    background: #7F1D1D !important;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px !important;
    border: none !important;
}

.public-table-wrap table td {
    padding: 14px 16px !important;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6 !important;
    vertical-align: middle !important;
}

.public-table-wrap table tr:nth-child(even) td {
    background-color: #f9fafb !important;
}

.public-table-wrap table tr:hover td {
    background-color: #fff7ed !important;
}

/* PDF Download Action Badge */
.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #fef2f2;
    color: #991B1B !important;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.pdf-download-btn:hover {
    background: #991B1B;
    color: #ffffff !important;
    border-color: #991B1B;
    box-shadow: 0 2px 8px rgba(153, 27, 27, 0.25);
}

.pdf-download-btn img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* Sidebar Navigation */
.school-sidebar {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
}

.school-sidebar-header {
    background: linear-gradient(135deg, #7F1D1D 0%, #991B1B 100%);
    color: #ffffff;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 3px solid #F59E0B;
}

.school-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.school-sidebar-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: all 0.2s ease;
}

.school-sidebar-menu li a:hover,
.school-sidebar-menu li a.active {
    background: #fef2f2;
    color: #991B1B;
    padding-left: 25px;
    border-left: 4px solid #991B1B;
}

/* CBSE Disclosure Modern Accordion */
.cbse-accordion .panel {
    border: 1px solid #e5e7eb;
    border-radius: 8px !important;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    overflow: hidden;
}

.cbse-accordion .panel-heading {
    padding: 0;
    background: transparent;
    border: none;
}

.cbse-accordion .panel-title a {
    display: block;
    padding: 16px 24px;
    background: #ffffff;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid #7F1D1D;
}

.cbse-accordion .panel-title a:hover {
    background: #fef2f2;
    color: #7F1D1D;
}

.cbse-accordion .panel-title a:after {
    content:  \f078;
    font-family: FontAwesome;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #7F1D1D;
    transition: transform 0.3s ease;
}

.cbse-accordion .panel-title a.collapsed:after {
    content: \f054;
    color: #9ca3af;
}

.cbse-accordion .panel-body {
    background: #ffffff !important;
    padding: 20px 24px;
    border-top: 1px solid #f3f4f6;
}

.cbse-accordion .table th {
    background: #f9fafb !important;
    color: #1f2937 !important;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
}

.cbse-accordion .table td {
    color: #374151 !important;
    font-size: 14px;
}

/* Photo Gallery & Album Grid */
.album-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    text-align: center;
}

.album-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(127, 29, 29, 0.15);
    border-color: #F59E0B;
}

.album-card .album-icon {
    padding: 30px 20px 15px;
    font-size: 48px;
    color: #7F1D1D;
}

.album-card .album-title {
    padding: 10px 15px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.gallery-grid-item {
    margin-bottom: 25px;
}

.gallery-grid-item .thumb {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.gallery-grid-item .thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-grid-item .thumb:hover img {
    transform: scale(1.05);
}

.gallery-grid-item .caption {
    padding: 10px 5px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-align: center;
}

/* Sidebar List Group Modernization */
.list-group {
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb !important;
    margin-bottom: 25px;
}

.list-group-item.active,
.list-group-item.active:focus,
.list-group-item.active:hover {
    z-index: 2;
    color: #fff !important;
    background: linear-gradient(135deg, #7F1D1D 0%, #991B1B 100%) !important;
    border-color: #7F1D1D !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: 0.5px;
    padding: 14px 18px !important;
    border-bottom: 3px solid #F59E0B !important;
}

.list-group-item {
    padding: 0 !important;
    border: none !important;
    border-bottom: 1px solid #f3f4f6 !important;
    background-color: #ffffff;
}

.list-group-item a {
    display: block;
    padding: 12px 18px;
    color: #374151 !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.list-group-item a:hover {
    background: #fef2f2;
    color: #991B1B !important;
    padding-left: 24px;
}

