/* My Admission Card - Blog + inner page styles */

/* ================= DESKTOP DROPDOWN ================= */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
}

.nav-dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.25s ease;
}

.nav-item-dropdown.active .nav-dropdown-toggle i,
.nav-item-dropdown:hover .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu-custom {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 14px;
    min-width: 190px;
    background: #172554;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 8px 0;
    list-style: none;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
    z-index: 1050;
}

.dropdown-menu-custom::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #172554;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    border-left: 1px solid rgba(212, 175, 55, 0.3);
}

.dropdown-menu-custom li {
    padding: 0;
    margin: 0;
}

.dropdown-menu-custom .dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-menu-custom .dropdown-link i {
    font-size: 0.85rem;
    color: var(--accent);
}

.dropdown-menu-custom .dropdown-link:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-light);
    padding-left: 22px;
}

.nav-item-dropdown:hover .dropdown-menu-custom,
.nav-item-dropdown.active .dropdown-menu-custom {
    display: block;
}

/* Invisible bridge between menu item and dropdown (keeps hover open) */
.nav-item-dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 16px;
}

/* Clickable cards / badges keep their original look */
a.additional-service-item,
a.university-badge {
    text-decoration: none;
    color: inherit;
}

/* ================= MOBILE DROPDOWN ACCORDION ================= */
.mobile-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 0;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-light);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.mobile-dropdown-btn i {
    font-size: 0.85rem;
    color: var(--accent);
    transition: transform 0.25s ease;
}

.mobile-dropdown-btn.active i {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: none;
    list-style: none;
    padding-left: 16px;
    margin: 6px 0;
    border-left: 2px solid var(--accent);
}

.mobile-submenu.open {
    display: block;
}

.mobile-sub-item-link {
    display: block;
    padding: 10px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-sub-item-link:hover {
    color: var(--accent);
}

/* =====================================================
   BLOG PAGES
   ===================================================== */
.blog-hero {
    background: linear-gradient(120deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 120px 0 64px;
    position: relative;
    overflow: hidden;
}
.blog-hero::after {
    content: '';
    position: absolute;
    right: -120px;
    top: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.25), transparent 65%);
}
.blog-hero .container { position: relative; z-index: 1; }
.blog-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--accent-light); font-weight: 700; font-size: 0.8rem;
    letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px;
}
.blog-hero h1 {
    font-family: var(--font-heading); font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.15; margin-bottom: 14px; max-width: 820px;
}
.blog-hero p { color: rgba(255, 255, 255, 0.82); max-width: 680px; font-size: 1.05rem; }
.breadcrumb-mini { font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 18px; }
.breadcrumb-mini a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.breadcrumb-mini a:hover { color: var(--accent-light); }

.blog-section { padding: 56px 0 80px; background: var(--surface); }
.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.blog-chip {
    padding: 8px 16px; border-radius: var(--radius-full); border: 1px solid var(--border);
    background: #fff; color: var(--text-dark); font-size: 0.875rem; font-weight: 600; text-decoration: none; transition: var(--transition);
}
.blog-chip:hover, .blog-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.blog-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05); transition: var(--transition);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: rgba(212, 175, 55, 0.6); }
.blog-card-img { aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(120deg, var(--primary-dark), var(--primary)); position: relative; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-img .no-img { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); font-size: 2.4rem; }
.blog-cat {
    position: absolute; left: 16px; top: 16px; background: var(--accent); color: var(--primary-dark);
    font-size: 0.72rem; font-weight: 800; padding: 5px 12px; border-radius: var(--radius-full); letter-spacing: 0.03em;
}
.blog-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; }
.blog-meta i { color: var(--accent); margin-right: 4px; }
.blog-card h2, .blog-card h3 { font-family: var(--font-heading); font-size: 1.3rem; line-height: 1.3; color: var(--primary-dark); margin-bottom: 10px; }
.blog-card p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.65; margin-bottom: 18px; }
.blog-read { margin-top: auto; font-weight: 700; color: var(--primary); font-size: 0.9rem; }
.blog-read i { transition: transform 0.2s; margin-left: 4px; }
.blog-card:hover .blog-read i { transform: translateX(4px); }

.blog-card.featured { grid-column: 1 / -1; flex-direction: row; }
.blog-card.featured .blog-card-img { flex: 0 0 55%; aspect-ratio: auto; min-height: 360px; }
.blog-card.featured .blog-card-body { padding: 36px; justify-content: center; }
.blog-card.featured h2 { font-size: 2rem; }
.blog-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); background: #fff; border-radius: var(--radius-lg); border: 1px dashed var(--border); }

.blog-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.blog-pagination a, .blog-pagination span {
    min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); background: #fff; color: var(--text-dark); text-decoration: none; font-weight: 700;
}
.blog-pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Single post */
.post-hero { padding-bottom: 150px; }
.post-hero h1 { max-width: 900px; }
.post-hero .blog-meta { color: rgba(255, 255, 255, 0.78); font-size: 0.9rem; margin: 18px 0 0; }
.post-cover-wrap { margin-top: -110px; position: relative; z-index: 2; }
.post-cover {
    width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25); display: block; background: #e2e8f0;
}
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding: 48px 0 72px; align-items: start; }
.post-content { font-size: 1.075rem; line-height: 1.85; color: #1e293b; min-width: 0; }
.post-content > * + * { margin-top: 1.1em; }
.post-content h2 { font-family: var(--font-heading); font-size: 1.85rem; line-height: 1.25; color: var(--primary-dark); margin-top: 1.6em; }
.post-content h3 { font-family: var(--font-heading); font-size: 1.4rem; color: var(--primary-dark); margin-top: 1.4em; }
.post-content h4 { font-size: 1.15rem; color: var(--primary-dark); margin-top: 1.3em; }
.post-content a { color: var(--primary); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.post-content a:hover { color: #b45309; }
.post-content strong, .post-content b { color: #0f172a; }
.post-content img { max-width: 100%; height: auto; border-radius: 16px; display: block; margin: 1.6em auto; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12); }
.post-content ul, .post-content ol { padding-left: 1.4em; }
.post-content li + li { margin-top: 0.4em; }
.post-content ul li::marker { color: var(--accent); }
.post-content blockquote {
    border-left: 4px solid var(--accent); background: #fffbeb; padding: 18px 24px; border-radius: 0 14px 14px 0;
    font-family: var(--font-heading); font-size: 1.25rem; font-style: italic; color: var(--primary-dark);
}
.post-content pre { background: #0f172a; color: #e2e8f0; padding: 16px; border-radius: 12px; overflow-x: auto; font-size: 0.9rem; }
.post-content .ql-align-center { text-align: center; }
.post-content .ql-align-right { text-align: right; }
.post-content .ql-align-justify { text-align: justify; }
.post-content .ql-indent-1 { padding-left: 2em; }
.post-content .ql-indent-2 { padding-left: 4em; }

.post-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-share span { font-weight: 700; color: var(--text-dark); margin-right: 4px; }
.share-btn {
    width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); color: var(--primary); background: #fff; text-decoration: none; transition: var(--transition); cursor: pointer; font-size: 1rem;
}
.share-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.post-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 22px; }
.side-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05); }
.side-card h3 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--primary-dark); margin-bottom: 14px; }
.side-cta { background: linear-gradient(140deg, var(--primary-dark), var(--primary)); color: #fff; border: 0; }
.side-cta h3 { color: #fff; }
.side-cta p { color: rgba(255, 255, 255, 0.82); font-size: 0.92rem; margin-bottom: 18px; }
.side-cta .btn { width: 100%; }
.side-post { display: flex; gap: 12px; text-decoration: none; color: inherit; padding: 10px 0; border-bottom: 1px solid var(--border); }
.side-post:last-child { border-bottom: 0; padding-bottom: 0; }
.side-post img, .side-post .ph { width: 72px; height: 56px; border-radius: 10px; object-fit: cover; flex: 0 0 72px; background: #e2e8f0; }
.side-post strong { font-size: 0.9rem; line-height: 1.35; color: var(--primary-dark); display: block; }
.side-post small { color: var(--text-muted); font-size: 0.78rem; }
.side-post:hover strong { color: var(--primary); text-decoration: underline; }
.side-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.side-links a { color: var(--text-dark); text-decoration: none; font-weight: 600; font-size: 0.92rem; display: flex; justify-content: space-between; }
.side-links a:hover { color: var(--primary); }
.side-links a i { color: var(--accent); }

.related { padding: 0 0 80px; }
.related h2 { font-family: var(--font-heading); font-size: 1.8rem; color: var(--primary-dark); margin-bottom: 24px; }

@media (max-width: 1100px) {
    .post-layout { grid-template-columns: 1fr; }
    .post-sidebar { position: static; }
}
@media (max-width: 991px) {
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .blog-card.featured { flex-direction: column; }
    .blog-card.featured .blog-card-img { min-height: 0; aspect-ratio: 16 / 9; }
    .blog-card.featured .blog-card-body { padding: 24px; }
    .blog-card.featured h2 { font-size: 1.5rem; }
}
@media (max-width: 640px) {
    .blog-hero { padding: 100px 0 48px; }
    .post-hero { padding-bottom: 110px; }
    .post-cover-wrap { margin-top: -80px; }
    .post-cover { aspect-ratio: 16 / 10; border-radius: 14px; }
    .blog-grid { grid-template-columns: 1fr; }
    .post-content { font-size: 1rem; }
    .post-content h2 { font-size: 1.5rem; }
}
