/* ============================================
   PREMIUM HERO SECTION STYLES
   ============================================ */

/* Hero Section Container */
.premium-hero-section {
    position: relative;
    background: linear-gradient(135deg, #0a2647 0%, #144272 50%, #205295 100%);
    color: white;
    padding: 100px 0 60px;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

/* Animated Background */
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Background Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 15s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
    animation-delay: 3s;
    background: rgba(255, 255, 255, 0.05);
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 80%;
    animation-delay: 6s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 30%;
    left: 10%;
    animation-delay: 9s;
    background: rgba(255, 255, 255, 0.08);
}

/* Floating Notices */
.floating-notice {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-size: 80px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    animation: floatText 25s infinite linear;
    opacity: 0.3;
    z-index: 1;
}

.floating-notice:nth-child(1) {
    top: 20%;
    left: 5%;
    animation-delay: 0s;
}

.floating-notice:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: 8s;
    font-size: 60px;
}

.floating-notice:nth-child(3) {
    bottom: 20%;
    left: 15%;
    animation-delay: 16s;
    font-size: 70px;
}

/* Particles */
.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: particleMove 20s infinite linear;
}

.particle-1 {
    width: 8px;
    height: 8px;
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.particle-2 {
    width: 6px;
    height: 6px;
    top: 40%;
    right: 25%;
    animation-delay: 4s;
}

.particle-3 {
    width: 10px;
    height: 10px;
    bottom: 30%;
    left: 40%;
    animation-delay: 8s;
}

.particle-4 {
    width: 5px;
    height: 5px;
    top: 60%;
    left: 20%;
    animation-delay: 12s;
}

.particle-5 {
    width: 7px;
    height: 7px;
    bottom: 40%;
    right: 30%;
    animation-delay: 16s;
}

/* Hero Content */
.premium-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
}

/* Left Column - Hero Text */
.hero-text-column {
    animation: fadeInLeft 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.title-line-1 {
    display: block;
    background: linear-gradient(90deg, #fff, #a3c4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-line-2 {
    display: block;
    background: linear-gradient(90deg, #a3c4ff, #5ca8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-line-3 {
    display: block;
    background: linear-gradient(90deg, #5ca8ff, #007bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 90%;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(90deg, #fff, #a3c4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Right Column - Featured Notice */
.featured-notice-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInRight 1s ease-out;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.featured-notice-card:hover {
    transform: translateY(-10px) rotateX(5deg);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #ffd166, #ffb347);
    color: #0a2647;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(255, 179, 71, 0.3);
    z-index: 2;
}

.featured-content {
    position: relative;
    z-index: 1;
    color: #0a2647;
}

.featured-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0a2647;
}

.featured-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
}

.featured-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

.meta-item i {
    color: #007bff;
}

.featured-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-btn:hover {
    background: linear-gradient(90deg, #0056b3, #004494);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

.featured-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.1) 0%, transparent 70%);
    filter: blur(20px);
    z-index: 0;
}

/* Quick Access Bar */
.quick-access-bar {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.8s ease-out 0.3s both;
}

.access-search {
    flex: 1;
    position: relative;
    max-width: 500px;
}

.access-search i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.access-buttons {
    display: flex;
    gap: 15px;
}

.access-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 25px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.access-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.access-btn i {
    font-size: 1.1rem;
}

/* Premium Scroll Indicator */
.premium-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.scroll-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.scroll-arrow i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    animation: bounce 2s infinite;
}

.scroll-arrow i:nth-child(1) {
    animation-delay: 0s;
}

.scroll-arrow i:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-arrow i:nth-child(3) {
    animation-delay: 0.4s;
}

/* Quick Filter Section */
.quick-filter-section {
    background: white;
    padding: 20px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.quick-filter {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}

.quick-filter::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab.active {
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-color: #007bff;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.filter-tab:hover:not(.active) {
    background: #e9ecef;
    border-color: #dee2e6;
}

.filter-tab i {
    font-size: 1rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    animation: modalSlideUp 0.3s ease-out;
}

.modal-header {
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.modal-body p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.btn-subscribe {
    background: linear-gradient(90deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    background: linear-gradient(90deg, #218838, #1e9e8a);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
}

/* ============================================
   FIX FOR EXCESSIVE SPACE AND REMOVED ELEMENTS
   ============================================ */

/* Reduce space after notice section */
.notices-section {
    padding-bottom: 60px !important;
    min-height: auto;
    position: relative;
}

/* Reduce the animated background size */
.notices-bg-animation {
    height: 200px;
    bottom: 0;
    top: auto;
    overflow: hidden;
}

/* Make notice cards more compact */
.notice-card {
    margin-bottom: 20px;
    height: auto;
    min-height: 250px;
}

.notice-card-inner {
    padding: 20px;
}

.notice-content {
    margin-bottom: 15px;
}

.notice-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Adjust the "Load More" button section */
.text-center.view-all-notices {
    margin-top: 40px;
    margin-bottom: 10px;
}

/* Remove extra space from container */
.container {
    padding-bottom: 20px;
}

/* Adjust notice meta spacing */
.notice-meta {
    margin-top: 15px;
    font-size: 0.9rem;
}

/* Remove extra padding from notice grid */
.notices-grid {
    margin-bottom: 20px;
}

/* Remove extra space from section header */
.section-header {
    margin-bottom: 30px;
}

/* Reduce space in notice header */
.notice-header {
    margin-bottom: 15px;
}

/* Adjust notice excerpt line height */
.notice-excerpt {
    line-height: 1.5;
    margin-bottom: 15px;
}

/* ============================================
   SEARCH STYLES
   ============================================ */

.search-highlight {
    background: linear-gradient(90deg, #ffd166, #ffb347);
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
}

.search-results-counter {
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    animation: slideUp 0.3s ease-out;
}

.search-results-counter i {
    font-size: 1.1rem;
}

.clear-search {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.clear-search:hover {
    background: rgba(255, 255, 255, 0.3);
}

.searching i {
    animation: spin 1s linear infinite;
}

.search-match {
    animation: pulseHighlight 2s ease-out;
}

.notice-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.notice-details-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: modalSlideUp 0.3s ease-out;
}

.close-details {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-details:hover {
    color: #333;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes floatText {
    0% {
        transform: translateX(-100px) rotate(-10deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) rotate(10deg);
        opacity: 0;
    }
}

@keyframes particleMove {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(100px, 50px);
    }
    50% {
        transform: translate(50px, 100px);
    }
    75% {
        transform: translate(-50px, 50px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
    }
    50% {
        box-shadow: 0 10px 30px rgba(255, 107, 107, 0.6);
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseHighlight {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 30px rgba(255, 209, 102, 0.5); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .premium-hero-content {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .premium-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .quick-access-bar {
        flex-direction: column;
        gap: 20px;
    }
    
    .access-search {
        max-width: 100%;
    }
    
    .access-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .premium-hero-section {
        padding: 80px 0 40px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .floating-notice {
        font-size: 40px;
    }
    
    .featured-notice-card {
        margin-top: 30px;
    }
    
    .quick-filter {
        padding: 10px;
    }
    
    .filter-tab {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    /* Adjust notice cards for mobile */
    .notice-card {
        min-height: 220px;
    }
    
    .notice-card-inner {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .access-buttons {
        flex-direction: column;
    }
    
    .access-btn {
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
    }
    
    /* Further reduce space on mobile */
    .notices-section {
        padding-bottom: 40px !important;
    }
    
    .text-center.view-all-notices {
        margin-top: 30px;
    }
}