/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER STYLES ===== */
header {
    background: linear-gradient(to right, #2563eb, #1e40af);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
}

.logo span {
    color: #ffc107;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 5px;
}

nav ul li a:hover, 
nav ul li a.active {
    color: #ffc107;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(rgba(37, 99, 235, 0.9), rgba(30, 64, 175, 0.9)), url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?ixlib=rb-4.0.3') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin: 25px 0;
    border-radius: 10px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ===== BUTTON STYLES ===== */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: #ffc107;
    color: #333;
}

.btn-primary:hover {
    background: #e6ac00;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2563eb;
}

.action-btn {
    display: inline-block;
    padding: 8px 15px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
}

.action-btn:hover {
    background: #1e40af;
}

/* ===== SECTION COMMON STYLES ===== */
.section-title {
    text-align: center;
    margin: 40px 0 30px;
    color: #2563eb;
    font-size: 32px;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #2563eb;
    border-radius: 2px;
}

.section-header {
    background: white;
    padding: 25px;
    margin: 25px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.section-header h2 {
    font-size: 28px;
    color: #2563eb;
    margin-bottom: 15px;
}

.intro-text {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.page-header {
    background: white;
    padding: 25px;
    margin: 25px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-header h1, 
.page-header h2 {
    font-size: 28px;
    color: #2563eb;
    margin-bottom: 10px;
}

.updated {
    color: #ef4444;
    font-size: 16px;
    margin-top: 10px;
    display: block;
}

/* ===== NOTIFICATION BAR ===== */
.notification {
    background: #ffc107;
    padding: 12px;
    text-align: center;
    margin: 20px 0;
    border-radius: 5px;
    font-weight: 500;
}

/* ===== CONTENT SECTIONS ===== */
.section {
    background: white;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.section h2, 
.section h3 {
    color: #2563eb;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

/* ===== CARD STYLES ===== */
.main-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.section-card,
.job-card,
.result-card,
.admit-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.section-card:hover,
.job-card:hover,
.result-card:hover,
.admit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: #2563eb;
    color: white;
    padding: 15px 20px;
    position: relative;
}

.card-header h3 {
    font-size: 18px;
    margin: 0;
    padding-right: 30px;
}

.card-body {
    padding: 20px;
}

.card-details {
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #4b5563;
}

.detail-item i {
    margin-right: 10px;
    color: #2563eb;
    width: 20px;
}

.card-footer {
    padding: 15px 20px;
    background: #f9fafb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== BADGE STYLES ===== */
.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.badge-new {
    background: #dcfce7;
    color: #166534;
}

.badge-urgent {
    background: #fee2e2;
    color: #991b1b;
}

.badge-regular {
    background: #dbeafe;
    color: #1e40af;
}

.badge-out,
.status-released {
    background: #dcfce7;
    color: #166534;
}

.status-final {
    background: #dbeafe;
    color: #1e40af;
}

.status-prelim {
    background: #fef3c7;
    color: #92400e;
}

.status-expected {
    background: #dbeafe;
    color: #1e40af;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* ===== DATE INFO STYLES ===== */
.date-info,
.result-date,
.exam-date,
.deadline {
    color: #ef4444;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== TABLE STYLES ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

table th, 
table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

table th {
    background-color: #f1f5f9;
    font-weight: 600;
    color: #1e293b;
}

table tr:hover {
    background-color: #f8fafc;
}

.jobs-table {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

/* ===== LIST STYLES ===== */
.link-list {
    list-style: none;
}

.link-list li {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.link-list li:last-child {
    border-bottom: none;
}

.link-list a {
    color: #444;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.link-list a:hover {
    color: #2563eb;
}

.link-list a:hover .arrow {
    transform: translateX(3px);
}

.arrow {
    color: #2563eb;
    transition: transform 0.3s;
}

ul:not(.link-list) {
    list-style-type: none;
    padding: 0;
}

ul:not(.link-list) li {
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
}

ul:not(.link-list) li:last-child {
    border-bottom: none;
}

ul:not(.link-list) li:before {
    content: "•";
    color: #2563eb;
    font-weight: bold;
    display: inline-block;
    width: 20px;
    margin-right: 5px;
}

/* ===== FILTER STYLES ===== */
.filters {
    background: white;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.filter-group select, 
.filter-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 16px;
}

.search-box {
    display: flex;
    margin-top: 24px;
}

.search-box input {
    flex: 1;
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.search-box button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0 15px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    cursor: pointer;
}

/* ===== STATS STYLES ===== */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 10px;
}

.stat-label {
    color: #4b5563;
    font-size: 16px;
}

.vacancy-count {
    text-align: center;
    font-size: 42px;
    color: #ef4444;
    margin: 15px 0;
    font-weight: 700;
}

/* ===== QUICK LINKS STYLES ===== */
.quick-links {
    background: white;
    padding: 25px;
    margin: 40px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.quick-links h3 {
    color: #2563eb;
    margin-bottom: 20px;
    font-size: 22px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.links-grid a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f1f5f9;
    color: #2563eb;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    gap: 10px;
}

.links-grid a:hover {
    background: #2563eb;
    color: white;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.links a {
    display: inline-block;
    background: #f1f5f9;
    color: #2563eb;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
    flex: 1;
    min-width: 150px;
    text-align: center;
}

.links a:hover {
    background: #2563eb;
    color: white;
}

/* ===== PAGINATION STYLES ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background: white;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.pagination a:hover, 
.pagination a.active {
    background: #2563eb;
    color: white;
}

/* ===== HIGHLIGHT STYLES ===== */
.highlight {
    background: #fffbeb;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #f59e0b;
    margin: 15px 0;
}

/* ===== FOOTER STYLES ===== */
footer {
    background: #1e293b;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #ffc107;
}

.footer-section p {
    margin-bottom: 15px;
    color: #cbd5e1;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #334155;
    margin-top: 30px;
    color: #cbd5e1;
}

/* ===== LAYOUT STYLES ===== */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero {
        padding: 50px 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .two-column {
        grid-template-columns: 1fr;
    }
    
    .links-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .filters {
        flex-direction: column;
    }
    
    .main-content,
    .results-grid,
    .admit-cards-grid,
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .card-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .links {
        flex-direction: column;
    }
    
    .links a {
        width: 100%;
    }
    
    table, thead, tbody, th, td, tr {
        display: block;
        width: 100%;
    }
    
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    td {
        padding: 10px;
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }
    
    td:before {
        position: absolute;
        top: 10px;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
    }
    
    /* Add data labels for mobile table view */
    td:nth-of-type(1):before { content: "Event"; }
    td:nth-of-type(2):before { content: "Date"; }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .page-header h1, 
    .page-header h2 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 26px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    50% {
        transform: translateX(-10%);
    }
    100% {
        transform: translateX(-100%);
    }
}