/* ============================================================================
   green-content.css — шаблон саҳифалар учун: рўйхат (grid), мақола (article),
   ва ички саҳифа сарлавҳа баннери. Яшил кампус ранг тизимига мос.
   ============================================================================ */

/* Ички саҳифа юқори баннери (фиксация қилинган header остида) */
.gc-page-hero {
    background: linear-gradient(135deg, #0f2a1a 0%, #143524 60%, #1c4a30 100%);
    color: #eaf4ee;
    padding: 132px 7% 54px;
    font-family: "Outfit", "Manrope", sans-serif;
}
.gc-page-hero .gc-wrap { max-width: 1180px; margin: 0 auto; }
.gc-breadcrumb { font-size: 13px; color: #9cc7ad; margin-bottom: 12px; }
.gc-breadcrumb a { color: #9cc7ad; text-decoration: none; }
.gc-breadcrumb a:hover { color: #fff; }
.gc-page-title { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.12; margin: 0; color: #fff; font-weight: 700; }
.gc-page-sub { margin: 12px 0 0; color: #b6cabd; font-size: 15px; line-height: 1.6; max-width: 720px; }

/* Контент майдони */
.gc-section { padding: 56px 7%; font-family: "Outfit", "Manrope", sans-serif; color: #14241a; background: #fff; }
.gc-wrap { max-width: 1180px; margin: 0 auto; }

/* Рўйхат — grid */
.gc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.gc-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid #e6efe9; border-radius: 18px;
    overflow: hidden; text-decoration: none; color: inherit;
    box-shadow: 0 18px 40px -30px rgba(15, 42, 26, .35);
    transition: transform .2s ease, box-shadow .2s ease;
}
.gc-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -28px rgba(15, 42, 26, .45); }
.gc-card-img { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #2e9e5b, #0f2a1a); overflow: hidden; }
.gc-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gc-card-badge {
    position: absolute; top: 12px; left: 12px;
    background: rgba(15, 42, 26, .85); color: #fff;
    font-size: 11.5px; font-weight: 600; padding: 5px 11px; border-radius: 20px;
}
.gc-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.gc-card-date { font-size: 12.5px; color: #8a9b91; margin-bottom: 8px; }
.gc-card-body h3 {
    font-size: 17px; line-height: 1.34; margin: 0 0 10px; color: #102a1b; font-weight: 600;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.gc-card-body p {
    font-size: 13.5px; line-height: 1.6; color: #5b6b61; margin: 0 0 14px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gc-card-more { margin-top: auto; color: #2e9e5b; font-weight: 600; font-size: 13.5px; }

/* Мақола (detail) */
.gc-article { max-width: 860px; margin: 0 auto; }
.gc-article-badge {
    display: inline-block; background: #e7f4ec; color: #1c6b3f;
    font-size: 12.5px; font-weight: 600; padding: 5px 13px; border-radius: 20px; margin-bottom: 14px;
}
.gc-article-title { font-size: clamp(24px, 3.2vw, 38px); line-height: 1.18; margin: 0 0 12px; color: #0f2a1a; }
.gc-article-meta { color: #8a9b91; font-size: 13.5px; display: flex; gap: 10px; margin-bottom: 22px; }
.gc-article-img { border-radius: 16px; overflow: hidden; margin-bottom: 24px; }
.gc-article-img img { width: 100%; height: auto; display: block; }
.gc-article-body { font-size: 16px; line-height: 1.8; color: #2c3b32; }
.gc-article-body p { margin: 0 0 16px; }
.gc-article-body h2, .gc-article-body h3 { color: #0f2a1a; margin: 28px 0 12px; line-height: 1.25; }
.gc-article-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 14px 0; }
.gc-article-body a { color: #2e9e5b; }
.gc-article-body ul, .gc-article-body ol { margin: 0 0 16px; padding-left: 22px; }
.gc-article-body li { margin-bottom: 8px; }

/* Орқага / ҳолат матнлари */
.gc-back { display: inline-block; margin: 0 0 22px; color: #2e9e5b; text-decoration: none; font-weight: 600; font-size: 14px; }
.gc-back:hover { text-decoration: underline; }
.gc-empty { text-align: center; color: #8a9b91; font-size: 15px; padding: 40px 0; }

/* Responsive */
@media (max-width: 980px) {
    .gc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .gc-page-hero { padding: 112px 6% 40px; }
    .gc-section { padding: 40px 6%; }
}
@media (max-width: 560px) {
    .gc-grid { grid-template-columns: 1fr; }
}

/* Hero'сиз саҳифалар (detail/page) фиксация қилинган header остидан бошланиши учун */
.gc-has-top { padding-top: 130px; }
@media (max-width: 768px) { .gc-has-top { padding-top: 112px; } }

/* Боғланиш саҳифаси */
.gc-contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; align-items: stretch; }
.gc-contact-info { background: #f3f9f4; border: 1px solid #e6efe9; border-radius: 18px; padding: 26px; }
.gc-contact-item { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid #e6efe9; }
.gc-contact-item:first-child { padding-top: 0; }
.gc-contact-item:last-child { border-bottom: none; }
.gc-contact-ic { width: 44px; height: 44px; border-radius: 12px; background: #e3f3e9; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.gc-contact-item h4 { margin: 0 0 3px; font-size: 15px; color: #0f2a1a; }
.gc-contact-item p, .gc-contact-item a { margin: 0; font-size: 14px; color: #5b6b61; text-decoration: none; }
.gc-contact-item a:hover { color: #2e9e5b; }
.gc-contact-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.gc-contact-socials a { font-size: 13px; padding: 8px 16px; border-radius: 30px; text-decoration: none; color: #2c4536; border: 1px solid #cfe2d6; transition: all .2s ease; }
.gc-contact-socials a:hover { background: #2e9e5b; border-color: #2e9e5b; color: #fff; }
.gc-contact-map { border-radius: 18px; overflow: hidden; min-height: 380px; border: 1px solid #e6efe9; }
.gc-contact-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
@media (max-width: 900px) { .gc-contact-grid { grid-template-columns: 1fr; } }

/* ============================================================================
   Ички саҳифа header'и (index'дан фарқли). Бу файлни ФАҚАТ ички саҳифалар
   юклайди — index1.html'га таъсир қилмайди (унда header расм устида шаффоф).
   ============================================================================ */
#test-mode-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 10001;
    height: 34px; line-height: 34px; background: #f59e0b; color: #241a00;
    text-align: center; font-family: "Outfit", "Manrope", sans-serif;
    font-weight: 600; font-size: 13px; letter-spacing: .3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 14px;
}
@media (max-width: 600px) { #test-mode-bar { font-size: 11px; } }

/* Header доимий тўқ-яшил фон (скроллда меню оқ фонда йўқолмаслиги учун) */
.top-navbar { top: 34px; background: #0f2a1a; box-shadow: 0 2px 18px -8px rgba(0,0,0,.5); }
.top-navbar.sticky { top: 34px; background: #0f2a1a; }

/* Жорий саҳифа меню банди ажратилади */
.top-navbar .menu .gc-active,
.top-navbar .menu .gc-active span { color: #5fd089 !important; }