/* main card – white panel with subtle depth */
.director-panel {
    max-width: 1130px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 2rem;
    box-shadow: 0 20px 35px -8px rgba(0, 40, 80, 0.15), 0 8px 12px -4px rgba(0, 20, 40, 0.05);
    overflow: hidden;
    padding: 2.5rem 2.8rem;
}

/* title + mission twin row */
.about-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.2rem;
    margin-bottom: 2.5rem;
    width: 1500px;
}

.about-block h1 {
    font-size: 2.4rem;
    font-weight: 600;
    color: #0a2942;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}

.about-description {
    font-size: 1.1rem;
    color: #254f6e;
    max-width: 90%;
}

.mission-block {
    background: #f8f9fa;
    border-radius: 1.8rem;
    padding: 2rem 2.2rem;
    box-shadow: inset 0 1px 4px rgba(255,255,255,0.8), 0 6px 12px rgba(47, 91, 128, 0.08);
    height: auto;
    max-width: 300px;
}

.mission-block h2 {
    font-size: 1.7rem;
    font-weight: 550;
    color: #104469;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mission-block h2 i {
    color: #266e9e;
    font-size: 1.9rem;
}

.mission-text {
    color: #1d425b;
    font-size: 1.05rem;
}

/* resources grid – original 6 items with icons */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin: 2.8rem 0 2rem;
}

.resource-card {
    background: #ffffff;
    border: 1px solid #deecf7;
    border-radius: 1.5rem;
    padding: 1.8rem 1.4rem 1.8rem 1.4rem;
    transition: all 0.2s ease;
    box-shadow: 0 5px 12px rgba(0, 42, 78, 0.03);
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    border-color: #b1d4f0;
    box-shadow: 0 14px 26px -8px rgba(25, 95, 156, 0.15);
    transform: translateY(-4px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-header i {
    font-size: 2.2rem;
    width: 2.8rem;
    color: #1f6797;
    background: #e3f0fd;
    padding: 0.6rem;
    border-radius: 1.2rem;
}

.card-header h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #0b3a57;
}

.resource-card p {
    color: #2b506e;
    font-size: 0.98rem;
    margin-left: 0.2rem;
    padding-right: 0.5rem;
}

.grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 16px;
}

.card-list {
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: 1px solid #e9edf0;
    max-height: 500px;
}

.faq-item {
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
}
.faq-question {
    font-weight: 700;
    color: #1f2937;
}

.custom-margin-tweeter {
  margin: 56px auto 40px;
}

.twitter-iframe {
    height:400px;
    width:100%;
    border:none;
}

.tweet-item {
    background: #f8fafc;
    border-radius: 18px;
    padding: 12px 16px;
    margin-bottom: 14px;
    font-size: 0.85rem;
}

.custom-slider-wrap {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.custom-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    border-radius: 16px; /* Matches your .service-card style */
    box-shadow: var(--shadow-md);
}

/* Hide scrollbar */
.custom-slider::-webkit-scrollbar {
    display: none;
}

.slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
    height: 400px;
}

.slide img {
    width: 100%;
    height: 550px;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 34, 108, 0.8); /* Using your --secondary-color */
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Raleway', sans-serif;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.slider-nav a {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    transition: var(--transition);
}

.slider-nav a:hover {
    background-color: var(--primary-color);
}

.carousel-inner, .carousel-item {
    height: auto!important;
}

.welcome-text p {
    color: #fff!important;
}

/* responsive */
@media (max-width: 1000px) {
    .library-panel { padding: 2rem 1.5rem; }
    .resources-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-info { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
    .about-mission { grid-template-columns: 1fr; }
    .top-bar { flex-direction: column; align-items: start; gap: 1rem; }
    .librarian-contacts { flex-direction: column; gap: 0.7rem; width: 100%; }
    .resources-grid { grid-template-columns: 1fr; }
    .footer-info { grid-template-columns: 1fr; }
}
