/* ========================================
   Yemen University - Homepage Styles
   Updated with Logo Colors & Events Section
   ======================================== */

/* ----------------------------------------
   Logo Image Style
   ---------------------------------------- */
.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: brightness(1.1);
}

/* ----------------------------------------
   Hero Section - Updated with Logo Colors
   ---------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0d2550 0%, #1a3a6e 40%, #0d1f45 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(201,162,39,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(201,162,39,0.04) 0%, transparent 60%);
}

.hero-geo-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,162,39,0.06) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.hero-geo-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(122,74,30,0.08) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 860px;
    padding: 0 24px;
    animation: fadeInUp 1s ease-out;
}

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

.hero-logo-badge {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.hero-logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 24px rgba(0,0,0,0.4));
    animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid rgba(201,162,39,0.4);
    background: rgba(201,162,39,0.08);
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c9a227;
    animation: pulse 2s infinite;
    box-shadow: 0 0 8px rgba(201,162,39,0.6);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.9); }
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-title-accent {
    background: linear-gradient(135deg, #c9a227, #e8c547, #f0d060);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: clamp(16px, 2vw, 19px);
    color: rgba(255,255,255,0.78);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Gold Button */
.btn-gold {
    background: linear-gradient(135deg, #c9a227, #e8c547);
    color: #1a1a1a;
    border: none;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(201,162,39,0.4);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #b8911e, #d4b336);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201,162,39,0.5);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40%  { transform: translateX(-50%) translateY(-10px); }
    60%  { transform: translateX(-50%) translateY(-5px); }
}

.scroll-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ----------------------------------------
   Stats Section
   ---------------------------------------- */
.stats-section {
    background: var(--bg-secondary);
    padding: 60px 0;
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-item {
    text-align: center;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    border-color: #c9a227;
}

.stat-icon-wrap {
    font-size: 32px;
    margin-bottom: 12px;
    display: inline-block;
}

.stat-number {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: #1a3a6e;
    line-height: 1;
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
    font-family: var(--font-en);
}

.stat-label {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}


/* ----------------------------------------
   Events Section
   ---------------------------------------- */
.events-section {
    padding: 80px 0;
    background: white;
    position: relative;
}

.events-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c9a227, #1a3a6e);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.event-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.event-image-wrapper {
    position: relative;
    height: 180px;
    width: 100%;
    overflow: hidden;
}

.event-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.event-card:hover .event-img {
    transform: scale(1.05);
}


.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a3a6e, #c9a227);
    transition: var(--transition);
    z-index: 5;
}

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

.event-card:hover::before {
    height: 6px;
}

.event-card.event-featured {
    grid-column: span 1;
    background: linear-gradient(135deg, #0d2550 0%, #1a3a6e 100%);
    color: white;
    border-color: #1a3a6e;
}

.event-card.event-featured .event-title { color: white; }
.event-card.event-featured .event-desc  { color: rgba(255,255,255,0.75); }
.event-card.event-featured .event-meta-item { color: rgba(255,255,255,0.65); }
.event-card.event-featured::before { background: linear-gradient(90deg, #c9a227, #e8c547); }

.event-date-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    background: linear-gradient(180deg, #1a3a6e, #2a5a9e);
    padding: 8px 12px;
    color: white;
    border-radius: var(--radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 2;
}

.event-card.event-featured .event-date-badge {
    background: linear-gradient(180deg, #c9a227, #e8c547);
    color: #1a1a1a;
}


.event-day {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    font-family: var(--font-en);
}

.event-month {
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    opacity: 0.85;
}

.event-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-category {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    align-self: flex-start;
}

.cat-conference {
    background: rgba(26,58,110,0.1);
    color: #1a3a6e;
}

.cat-workshop {
    background: rgba(122,74,30,0.1);
    color: #7a4a1e;
}

.cat-exhibition {
    background: rgba(201,162,39,0.15);
    color: #8a6800;
}

.cat-lecture {
    background: rgba(42,90,158,0.1);
    color: #2a5a9e;
}

.cat-visit {
    background: rgba(42,90,58,0.1);
    color: #2a5a3a;
}

.event-card.event-featured .event-category {
    background: rgba(201,162,39,0.25);
    color: #e8c547;
}

.event-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
}

.event-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.event-meta-item svg {
    flex-shrink: 0;
    color: #c9a227;
}

.event-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #1a3a6e, #2a5a9e);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
    align-self: flex-start;
    margin-top: auto;
}

.event-btn:hover {
    background: linear-gradient(135deg, #c9a227, #e8c547);
    color: #1a1a1a;
    transform: translateX(-2px);
}

.event-card.event-featured .event-btn {
    background: linear-gradient(135deg, #c9a227, #e8c547);
    color: #1a1a1a;
}

.event-card.event-featured .event-btn:hover {
    background: white;
    color: #1a3a6e;
}

/* ----------------------------------------
   News Section
   ---------------------------------------- */
.news-section {
    padding: 80px 0;
    background: #f8fafc;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.news-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    box-shadow: none;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-2px);
    border-color: #1a3a6e;
    background: var(--bg-secondary);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-img {
    transform: scale(1.02);
}


.news-category {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: #1a3a6e;
    color: white;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
}

.news-body {
    padding: 24px;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.45;
    margin-bottom: 12px;
    transition: var(--transition);
}

.news-card:hover .news-title {
    color: #1a3a6e;
}

.news-excerpt {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
}

/* ----------------------------------------
   Colleges Section
   ---------------------------------------- */
.colleges-section {
    padding: 80px 0;
    background: white;
}

.colleges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.college-card {
    display: block;
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.college-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

.college-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: var(--transition);
}

.college-card:hover .college-accent {
    height: 6px;
}

.college-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a3a6e;
    margin-bottom: 20px;
    transition: var(--transition);
}

.college-card:hover .college-icon {
    background: #1a3a6e;
    color: white;
}

.college-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.college-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.college-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1a3a6e;
    transition: var(--transition);
}

.college-link svg {
    transition: var(--transition);
}

.college-card:hover .college-link svg {
    transform: translateX(-4px);
}

/* ----------------------------------------
   Research Section
   ---------------------------------------- */
.research-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.research-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.research-content .section-title {
    margin-bottom: 16px;
}

.research-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 28px;
}

.research-quote {
    padding: 28px 32px;
    border-right: 4px solid #c9a227;
    background: white;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.research-quote p {
    font-size: 17px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.research-quote footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.research-quote cite {
    font-size: 15px;
    font-weight: 600;
    color: #1a3a6e;
    font-style: normal;
}

.research-quote footer span {
    font-size: 13px;
    color: var(--text-tertiary);
}

.research-articles-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.research-article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    margin-bottom: 12px;
    transition: var(--transition);
    background: white;
}

.research-article:hover {
    background: white;
    border-color: #c9a227;
    transform: translateX(-4px);
    box-shadow: var(--shadow);
}

.research-article-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.5;
}

.research-article-content span {
    font-size: 13px;
    color: var(--text-muted);
}

.research-article svg {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: var(--transition);
}

.research-article:hover svg {
    color: #1a3a6e;
    transform: translateX(-4px);
}

/* ----------------------------------------
   Library CTA Section
   ---------------------------------------- */
.library-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0d2550 0%, #1a3a6e 50%, #0d1f45 100%);
    position: relative;
    overflow: hidden;
}

.library-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 80% 50%, rgba(201,162,39,0.1) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(122,74,30,0.08) 0%, transparent 40%);
}

.library-cta-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.library-cta-content .section-tag {
    color: #c9a227;
}

.library-cta-content .section-title {
    color: white;
}

.library-cta-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.78);
    line-height: 1.8;
    margin-bottom: 32px;
}

.library-cta-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.lib-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lib-stat-num {
    font-size: 28px;
    font-weight: 800;
    color: #c9a227;
    font-family: var(--font-en);
    line-height: 1;
}

.lib-stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
}

.library-cta-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.lib-visual-icon {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(201,162,39,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a227;
    backdrop-filter: blur(10px);
    animation: floatLogo 4s ease-in-out infinite;
}

.lib-db-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.lib-db-badge {
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid rgba(201,162,39,0.4);
    background: rgba(201,162,39,0.08);
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-en);
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.lib-db-badge:hover {
    background: rgba(201,162,39,0.2);
    border-color: rgba(201,162,39,0.7);
    color: #e8c547;
}

/* ----------------------------------------
   CTA Section
   ---------------------------------------- */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #7a4a1e 0%, #a06030 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    line-height: 1.3;
}

.cta-desc {
    font-size: 17px;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .research-grid { grid-template-columns: 1fr; gap: 40px; }
    .library-cta-grid { grid-template-columns: 1fr; gap: 40px; }
    .events-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero { min-height: auto; padding: 120px 0 80px; }
    .hero-logo-img { height: 70px; }
    .hero-cta { flex-direction: column; width: 100%; }
    .hero-cta .btn { width: 100%; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-item { padding: 16px; }
    .colleges-grid { grid-template-columns: 1fr; }
    .research-article { padding: 16px; }
    .cta-buttons { flex-direction: column; width: 100%; }
    .cta-buttons .btn { width: 100%; }
    .events-grid { grid-template-columns: 1fr; }
    .library-cta-stats { gap: 20px; }
}

@media (max-width: 480px) {
    :root { --container-padding: 16px; }
    .stats-grid { grid-template-columns: 1fr; }
    .news-section, .colleges-section, .research-section { padding: 48px 0; }
    .college-card { padding: 24px; }
    .research-quote { padding: 20px; }
    .events-section { padding: 48px 0; }
    .library-cta-section { padding: 48px 0; }
    .lib-visual-icon { width: 100px; height: 100px; }
}
