/* assets/css/style.css - Design System for Ruhuna e-Thesis Repository */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary-color: #0d233a; /* Deep Navy Blue representing Ruhuna Academics */
    --primary-light: #163654;
    --accent-color: #d4af37; /* Gold Accent */
    --accent-dark: #b8962c;
    --text-color: #1e293b; /* Slate 800 */
    --text-muted: #64748b; /* Slate 500 */
    --bg-main: #f8fafc; /* Slate 50 */
    --bg-card: #ffffff;
    --bg-accent: #f1f5f9; /* Slate 100 */
    
    /* Status Colors */
    --color-success: #10b981; /* Emerald 500 */
    --color-warning: #f59e0b; /* Amber 500 */
    --color-danger: #ef4444; /* Red 500 */
    --color-info: #06b6d4; /* Cyan 500 */
    
    /* Layout Tokens */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 16px -6px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 40px -15px rgba(13, 35, 58, 0.15);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Header & Navigation */
.navbar-custom {
    background-color: rgba(13, 35, 58, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    padding: 12px 0;
    border-bottom: 2px solid var(--accent-color);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    height: 50px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.brand-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-color);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.nav-link {
    color: #f1f5f9;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-btn {
    background-color: var(--accent-color);
    color: var(--primary-color) !important;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
}

.nav-btn:hover {
    background-color: transparent;
    color: var(--accent-color) !important;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #ffffff;
    padding: 90px 24px;
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid var(--accent-color);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--accent-color);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-title span {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Bar System */
.search-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px;
    border-radius: 100px;
    box-shadow: var(--shadow-lg);
    display: flex;
    max-width: 750px;
    margin: 0 auto;
    transition: var(--transition-smooth);
}

.search-container:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.25);
    transform: scale(1.01);
}

.search-input-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.search-icon {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-right: 12px;
}

.search-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 1.05rem;
    font-family: var(--font-body);
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-btn {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    outline: none;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    background-color: #ffffff;
    color: var(--primary-color);
    transform: scale(1.03);
}

/* Quick Search Filters */
.quick-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.quick-tag-label {
    color: #94a3b8;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.quick-tag-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.quick-tag-link:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

/* Statistics Dashboard Banner */
.stats-banner {
    max-width: 1200px;
    margin: -40px auto 60px auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-premium);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 30px;
    border: 1px solid rgba(13, 35, 58, 0.05);
    text-align: center;
}

.stat-item {
    border-right: 1px solid #e2e8f0;
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 6px;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Board of Study Grid Section */
.section-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
    border-left: 4px solid var(--accent-color);
    padding-left: 16px;
}

.section-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--primary-color);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 4px;
}

.section-action-link {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-action-link:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

/* Board Grid Layout */
.boards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.board-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    padding: 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.board-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}

.board-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.board-card:hover::before {
    background-color: var(--accent-color);
    width: 6px;
}

.board-icon {
    width: 48px;
    height: 48px;
    background-color: var(--bg-accent);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.board-card:hover .board-icon {
    background-color: var(--primary-color);
    color: var(--accent-color);
}

.board-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.board-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 16px;
}

.board-count {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.board-count i {
    font-size: 0.7rem;
    transition: var(--transition-smooth);
}

.board-card:hover .board-count i {
    transform: translateX(4px);
}

/* Recent Publications / Thesis Cards */
.theses-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.thesis-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
}

.thesis-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

/* Book Cover Styling */
.cover-wrapper {
    aspect-ratio: 3/4;
    position: relative;
    background-color: #cbd5e1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e2e8f0;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.thesis-card:hover .cover-image {
    transform: scale(1.05);
}

/* Dynamic SVG Cover Fallback Design */
.svg-cover {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    color: #ffffff;
    justify-content: space-between;
    position: relative;
    font-family: var(--font-heading);
}

/* Decorative spine overlay for realistic book effect */
.svg-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.25) 0%, rgba(255, 255, 255, 0.1) 40%, rgba(0, 0, 0, 0.05) 60%, rgba(0, 0, 0, 0.2) 100%);
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.2);
}

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

.svg-cover-logo {
    height: 24px;
    opacity: 0.85;
}

.svg-cover-degree {
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.svg-cover-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 10px 0;
}

.svg-cover-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.svg-cover-author {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
}

.svg-cover-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 8px;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.thesis-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.thesis-meta-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tag-degree {
    background-color: rgba(13, 35, 58, 0.08);
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.tag-year {
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--accent-dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.thesis-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thesis-card-title:hover {
    color: var(--accent-dark);
}

.thesis-card-author {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 12px;
}

.thesis-card-abstract {
    font-size: 0.8rem;
    color: var(--text-color);
    margin-bottom: 16px;
    line-height: 1.45;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thesis-card-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.thesis-card-board {
    font-weight: 600;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-card-action {
    color: var(--accent-dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-card-action:hover {
    color: var(--primary-color);
}

/* Browse Page Sidebar Layout */
.browse-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

.sidebar-filter-panel {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.filter-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
}

.btn-clear-filters {
    font-size: 0.75rem;
    color: var(--color-danger);
    font-weight: 600;
    border: none;
    background: transparent;
    cursor: pointer;
}

.btn-clear-filters:hover {
    text-decoration: underline;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 8px;
    display: block;
}

.filter-select, .filter-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid #cbd5e1;
    font-size: 0.85rem;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition-smooth);
}

.filter-select:focus, .filter-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.filter-submit-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 10px;
}

.filter-submit-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-1px);
}

/* Browse Results Listing */
.browse-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.results-count {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.results-count span {
    font-weight: 700;
    color: var(--primary-color);
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sort-select {
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    background-color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.85rem;
}

/* Pagination Styles */
.pagination-container {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: var(--text-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.page-btn:hover:not(.disabled) {
    border-color: var(--accent-color);
    color: var(--accent-dark);
    background-color: rgba(212, 175, 55, 0.05);
}

.page-btn.active {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn-wide {
    width: auto;
    padding: 0 16px;
}

/* Detailed Thesis View */
.thesis-details-container {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    margin-bottom: 40px;
}

.details-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
}

.details-sidebar {
    background-color: var(--bg-accent);
    padding: 40px;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.details-main {
    padding: 40px;
}

.details-meta-table {
    width: 100%;
    margin-top: 24px;
    border-collapse: collapse;
}

.details-meta-table th {
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    padding: 8px 0;
    width: 30%;
    vertical-align: top;
}

.details-meta-table td {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    vertical-align: top;
}

.document-download-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    box-shadow: var(--shadow-sm);
}

.doc-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.doc-icon {
    font-size: 1.8rem;
    color: var(--color-danger); /* PDF Red */
}

.doc-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

.doc-size {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-download {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-download:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

.abstract-container {
    background-color: #f8fafc;
    border-left: 4px solid var(--accent-color);
    padding: 24px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 28px 0;
}

.abstract-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.abstract-text {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.7;
}

/* Submission Form Design Styling */
.form-panel {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    border: 1px solid #e2e8f0;
    padding: 40px;
    max-width: 850px;
    margin: 0 auto;
}

.form-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row {
    margin-bottom: 24px;
}

.label-required::after {
    content: ' *';
    color: var(--color-danger);
    font-weight: 700;
}

/* Footer Styling */
.footer-custom {
    background-color: var(--primary-color);
    color: #cbd5e1;
    padding: 60px 24px 20px 24px;
    border-top: 5px solid var(--accent-color);
    font-size: 0.9rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    height: 55px;
    width: auto;
    align-self: flex-start;
}

.footer-heading {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link-item a {
    color: #94a3b8;
}

.footer-link-item a:hover {
    color: var(--accent-color);
    padding-left: 4px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #94a3b8;
}

.contact-item i {
    color: var(--accent-color);
    margin-top: 4px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .theses-list-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .stat-item {
        border-right: none;
    }
    .stat-item:nth-child(2n) {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 16px;
    }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .boards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .theses-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .browse-layout {
        grid-template-columns: 1fr;
    }
    .details-grid {
        grid-template-columns: 1fr;
    }
    .details-sidebar {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    .form-group-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .boards-grid {
        grid-template-columns: 1fr;
    }
    .theses-list-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .search-container {
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 12px;
        gap: 12px;
    }
    .search-input-wrapper {
        padding-left: 10px;
    }
    .search-btn {
        width: 100%;
        justify-content: center;
    }
}
