/* Reset and Base Styles */
:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --accent-gold: #f59e0b;
    --dark-navy: #0f172a;
    --light-gray: #f8fafc;
    --medium-gray: #64748b;
    --white: #ffffff;
    --text-dark: #1e293b;
}

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

body {
    font-family: 'B612', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    font-weight: 400;
}

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

/* Navigation - Hidden */
header {
    display: none;
}

/* Scrolled header style */
header.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0;
}

/* Navigation container */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Logo styles */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo a {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.roundel {
    width: 35px;
    height: 35px;
}

/* Navigation list */
nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a:focus::after {
    width: 100%;
}

/* Active link */
nav ul li a.active {
    color: var(--accent-gold);
}

nav ul li a.active::after {
    width: 100%;
}

/* Mobile Navigation Toggle */
.mobile-toggle {
    display: none;
    cursor: pointer;
    padding: 1rem;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
}

/* Mobile Menu Styles - Hidden */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 24px;
        padding: 0;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }
    
    .mobile-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 5rem 0;
        margin: 0;
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    }
    
    nav ul.active {
        right: 0;
    }
    
    nav ul li {
        margin: 1.5rem 0;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.4s ease 0.1s;
    }
    
    nav ul.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    nav ul li a {
        font-size: 1.2rem;
        padding: 0.8rem 2rem;
        border-radius: 4px;
        transition: all 0.3s ease;
    }
    
    nav ul li a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .nav-logo {
        z-index: 1001;
    }
    
    /* Staggered animation for menu items */
    nav ul.active li:nth-child(1) { transition-delay: 0.1s; }
    nav ul.active li:nth-child(2) { transition-delay: 0.2s; }
    nav ul.active li:nth-child(3) { transition-delay: 0.3s; }
    nav ul.active li:nth-child(4) { transition-delay: 0.4s; }
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

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

.logo h1 {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-gold);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span.roundel {
    width: 35px;
    height: 35px;
    margin-right: 5px;
    vertical-align: middle;
}

.hamburger span {
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin: 0;
    padding: 0;
    background: var(--dark-navy);
}

@media (max-width: 768px) {
    .hero {
        height: 90vh;
        min-height: 500px;
        padding: 0 0.5rem;
    }
    
    .hero-content {
        padding: 0 1rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.2rem !important;
        margin-bottom: 1.5rem !important;
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-content p {
        font-size: 1.1rem !important;
        margin-bottom: 2rem !important;
        padding: 0 !important;
    }
    
    .hero-bottom {
        margin: 1rem auto !important;
        padding: 0 !important;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 450px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }
    
    .hero-content p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
}

.hero-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    image-rendering: -moz-crisp-edges;
    image-rendering: pixelated;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.5s ease;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    width: 100%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem 0 2rem 0;
}

.hero-title {
    margin: 0;
    text-align: center;
}

.hero-title p {
    margin: 0.5rem 0 0 0;
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: auto 0 0 0;
    padding: 1rem 0 0 0;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons .cta-button {
    width: 100%;
    text-align: center;
}


/* Keep buttons stacked on all screen sizes */
.hero-buttons {
    flex-direction: column;
    align-items: center;
    max-width: 300px;
    margin: 2rem auto 0 auto;
}

.hero-buttons .cta-button {
    width: 100%;
    max-width: 250px;
    margin: 0.25rem 0;
}

.hero-bottom {
    margin: auto 0 0 0;
    padding: 1rem 0 0 0;
}

.hero-title h1 {
    font-size: 3.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'B612', sans-serif;
}

.hero-content p {
    font-size: 1.3rem;
    margin: 0 0 2rem 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: visible;
    text-align: center;
    width: 100%;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: visible;
    text-align: center;
    width: 100%;
    display: block;
    padding: 0;
    text-overflow: clip;
}

.cta-button {
    background: #000000;
    color: #ffd700;
    border: 2px solid #ffd700;
    padding: 0.8rem 3rem;
    border-radius: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    margin: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
}

/* Hover effect */
.cta-button:hover {
    background: #1a1a1a;
    transform: translateX(5px);
}

.cta-button:active {
    transform: translateX(8px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.3);
}

/* Warning stripes (optional) */
.cta-button {
    background-image: 
        linear-gradient(
            45deg,
            rgba(255, 215, 0, 0.15) 25%, /* Yellow tint */
            transparent 25%,
            transparent 50%,
            rgba(255, 215, 0, 0.15) 50%, /* Yellow tint */
            rgba(255, 215, 0, 0.15) 75%, /* Yellow tint */
            transparent 75%,
            transparent
        );
    background-size: 20px 20px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3); /* Subtle yellow glow */
}

/* About Section */
.about-section {
    padding: 3rem 0;
    background: var(--dark-navy);
    color: white;
}

.about-section .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.about-text {
    text-align: center;
    width: 100%;
}

.about-features {
    display: inline-block;
    text-align: left;
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.about-image {
    width: 100%;
    max-width: 400px;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-image {
        max-width: 100%;
        height: 200px;
    }
}

.about-section .section-header {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 2rem;
}

.about-section h2 {
    font-size: 2.5rem;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'B612', sans-serif;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.about-text ul {
    list-style: none;
    font-size: 1.1rem;
    padding: 0;
    margin: 2rem auto;
    max-width: 500px;
    text-align: center;
}

.about-text li {
    padding: 0.5rem 0;
    color: white;
    font-size: 1.1rem;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
}

.about-text li::before {
    content: "•";
    color: var(--accent-gold);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    text-align: center;
}

.about-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: opacity 0.5s ease-in-out;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: white;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #f8f9fa;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #555;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3498db;
}

.contact-form button {
    background: #3498db;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #2980b9;
}

/* Responsive Styles */
@media (max-width: 768px) {
    /* Base adjustments */
    :root {
        font-size: 14px;
    }
    
    /* Library page title adjustments */
    .library-header h1 {
        font-size: 2rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .library-subtitle {
        font-size: 1rem !important;
    }
    
    /* Index page title adjustments */
    .hero-title h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-title p {
        font-size: 1.1rem !important;
    }
    
    .about-text h2 {
        font-size: 1.8rem !important;
        margin-bottom: 1rem !important;
    }

    /* Navigation */
    .nav-container {
        padding: 0.5rem 1rem;
    }

    /* Hero section */
    .hero {
        height: 80vh;
        min-height: 500px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1.1rem;
        white-space: normal;
        padding: 0 1rem;
    }

    /* CTA Button */
    .cta-button {
        padding: 0.8rem 2.5rem 0.8rem 1.5rem;
        font-size: 0.9rem;
        min-width: 200px;
    }

    .cta-button::before {
        width: 25px;
        right: -12px;
    }

    .cta-button::after {
        right: -8px;
        font-size: 0.7rem;
    }

    /* About section */
    .about {
        padding: 3rem 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Contact form */
    .contact-form {
        padding: 1.5rem;
    }

    /* Footer */
    footer {
        padding: 2rem 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 13px;
    }
    
    .library-header h1 {
        font-size: 1.7rem !important;
    }
    
    .library-subtitle {
        font-size: 0.9rem !important;
    }
    
    .hero-title h1 {
        font-size: 1.8rem !important;
    }
    
    .hero-title p {
        font-size: 1rem !important;
    }
    
    .about-text h2 {
        font-size: 1.5rem !important;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .cta-button {
        min-width: 180px;
        padding: 0.7rem 2rem 0.7rem 1.3rem;
    }
}

/* Prevent horizontal scrolling */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Improve touch targets */
a, button, .cta-button {
    min-height: 44px;
    min-width: 44px;
}

/* Footer */
footer {
    background: var(--dark-navy);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    border-top: 3px solid var(--accent-gold);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-image img {
        object-position: center center;
    }

    .about-grid,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }
}

/* Library Page Styles */
.library-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

.library-header h1 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    font-family: 'B612', sans-serif;
}

.library-subtitle {
    color: var(--medium-gray);
    font-size: 1.1rem;
    font-family: 'B612', sans-serif;
}

/* Add Link Section */
.add-link-section {
    background: rgba(15, 23, 42, 0.7);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.add-link-section h2 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'B612', sans-serif;
}

.add-link-section h2 .icon {
    font-size: 1.5rem;
    line-height: 1;
}

.link-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.link-form .form-group {
    margin-bottom: 0;
}

.add-button {
    grid-column: 1 / -1;
    background: var(--accent-gold);
    color: var(--dark-navy);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'B612', sans-serif;
}

.add-button:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Links Container */
.links-container {
    margin-top: 2rem;
}

.links-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.links-header h2 {
    color: var(--accent-gold);
    margin: 0;
    font-family: 'B612', sans-serif;
}

.search-box {
    position: relative;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.5);
    color: white;
    font-family: 'B612', sans-serif;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-box .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
}

/* Links List */
.links-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.link-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-gold);
}

.link-card h3 {
    margin: 0 0 0.5rem;
    color: var(--accent-gold);
    font-family: 'B612', sans-serif;
}

.link-card a {
    color: white;
    text-decoration: none;
    word-break: break-all;
    display: block;
    margin-bottom: 0.5rem;
}

.link-card a:hover {
    color: var(--accent-gold);
}

.link-category {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-family: 'B612', sans-serif;
}

.no-links {
    text-align: center;
    color: var(--medium-gray);
    font-style: italic;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.1);
}

.link-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.delete-link {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.delete-link:hover {
    opacity: 1;
}

.category-section {
    grid-column: 1 / -1;
    margin-bottom: 2rem;
}

.category-title {
    color: var(--accent-gold) !important;
    font-size: 1.3rem !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
    font-family: 'B612', sans-serif;
}

.category-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Library Mobile Responsive Styles */
@media (max-width: 768px) {
    .link-form {
        grid-template-columns: 1fr;
    }
    
    .links-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-box {
        width: 100%;
    }
    
    /* Mobile title styles */
    .library-header h1 {
        font-size: 2rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .library-subtitle {
        font-size: 1rem !important;
    }
    
    .links-header h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .category-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .link-card h3 {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    /* Smaller mobile title styles */
    .library-header h1 {
        font-size: 1.7rem !important;
    }
    
    .library-subtitle {
        font-size: 0.9rem !important;
    }
    
    .links-header h2 {
        font-size: 1.3rem !important;
    }
    
    .category-title {
        font-size: 1rem !important;
    }
    
    .link-card h3 {
        font-size: 0.95rem !important;
    }
}
