/* ============================================================
   GLOBAL STYLES — ইনফ্রা পলিটেকনিক ইনস্টিটিউট অনলাইন ভর্তি পোর্টাল
   ============================================================ */

/* ── Local Font ── */
@font-face {
    font-family: 'Li Ador Noirrit';
    src: url('../fonts/Li Ador Noirrit Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ── CSS Variables ── */
:root {
    --primary:        #1a5276;
    --primary-dark:   #154360;
    --primary-light:  #2980b9;
    --secondary:      #27ae60;
    --secondary-dark: #1e8449;
    --accent:         #f39c12;
    --accent-dark:    #d68910;
    --danger:         #e74c3c;
    --success:        #2ecc71;
    --white:          #ffffff;
    --light:          #f8f9fa;
    --gray-100:       #f8f9fa;
    --gray-200:       #e9ecef;
    --gray-300:       #dee2e6;
    --gray-500:       #adb5bd;
    --gray-600:       #6c757d;
    --dark:           #2c3e50;
    --text:           #34495e;
    --shadow-sm:      0 2px 10px rgba(0,0,0,0.08);
    --shadow:         0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg:      0 8px 40px rgba(0,0,0,0.18);
    --radius:         10px;
    --radius-lg:      20px;
    --radius-xl:      30px;
    --transition:     all 0.3s ease;
    --font:           'Li Ador Noirrit', 'Noto Sans Bengali', 'SolaimanLipi', Arial, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img { max-width: 100%; height: auto; display: block; }
ul  { list-style: none; }

/* Icon check sizing */
.icon-check { display: inline-block; width: 20px; height: auto; vertical-align: middle; }
.feature-item .feature-icon img.icon-check { width: 20px; }
.form-card-header .header-icon img.icon-check { width: 28px; }
.about-img-card .college-icon-xl { font-size: 4.2rem; }
/* About card logo */
.college-logo-white {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px;
}

/* ── Container ── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26,82,118,0.35);
}

/* ── Hero CTA Button ── */
@keyframes ctaGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(249,202,36,0.5), 0 6px 30px rgba(249,202,36,0.3), inset 0 1px 0 rgba(255,255,255,0.25); }
    50%       { box-shadow: 0 0 40px rgba(249,202,36,0.85), 0 10px 50px rgba(249,202,36,0.5), inset 0 1px 0 rgba(255,255,255,0.25); }
}
@keyframes ctaShimmer {
    0%   { left: -100%; }
    60%, 100% { left: 150%; }
}
@keyframes ctaSpin {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(1.3); }
    100% { transform: rotate(360deg) scale(1); }
}
@keyframes ctaArrow {
    0%, 100% { transform: translateX(0); }
    50%       { transform: translateX(6px); }
}

.btn-hero-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f9ca24 0%, #f0932b 50%, #e55039 100%);
    border: none;
    color: #1a1a1a !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    padding: 18px 44px !important;
    border-radius: 60px !important;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.3);
    animation: ctaGlow 2.4s ease-in-out infinite;
    transition: transform 0.25s ease, filter 0.25s ease !important;
}
.btn-hero-cta::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.55) 50%, transparent 100%);
    animation: ctaShimmer 2.8s ease-in-out infinite;
    pointer-events: none;
}
.btn-hero-cta .cta-icon {
    font-size: 1rem;
    animation: ctaSpin 3s linear infinite;
    display: inline-block;
    line-height: 1;
}
.btn-hero-cta .cta-text {
    position: relative;
    z-index: 1;
}
.btn-hero-cta .cta-arrow {
    font-size: 1.2rem;
    display: inline-block;
    animation: ctaArrow 1.2s ease-in-out infinite;
}
.btn-hero-cta:hover {
    transform: translateY(-4px) scale(1.05) !important;
    filter: brightness(1.1) saturate(1.15);
    box-shadow: 0 12px 50px rgba(249,202,36,0.7), 0 4px 20px rgba(0,0,0,0.2) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.btn-hero-cta:active {
    transform: translateY(-1px) scale(1.01) !important;
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}
.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39,174,96,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.8);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg  { padding: 15px 36px; font-size: 1.1rem; }
.btn-xl  { padding: 18px 46px; font-size: 1.2rem; }
.btn-sm  { padding: 8px 20px; font-size: 0.9rem; }
.btn-full { width: 100%; }

/* ── Section Common ── */
section { padding: 80px 0; }

.section-header {
    text-align: center;
    margin-bottom: 55px;
}

.section-badge {
    display: inline-block;
    background: rgba(26,82,118,0.08);
    color: var(--primary);
    padding: 6px 22px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 14px;
    border: 1px solid rgba(26,82,118,0.18);
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 14px;
    color: var(--dark);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-600);
    max-width: 620px;
    margin: 0 auto;
}

/* ── Announcement Bar ── */
.announcement-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 9px 0;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 500;
    overflow: hidden;
}

.announcement-inner {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 25s linear infinite;
}

@keyframes ticker {
    0%   { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

@media (min-width: 992px) {
    .announcement-inner { animation: none; }
}

/* ── Navbar ── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 14px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 9px 0;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--white);
    padding: 2px;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

.brand-text { display: flex; flex-direction: column; }

.brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.72rem;
    color: var(--gray-600);
    font-weight: 400;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 13px;
    border-radius: var(--radius);
    color: var(--dark);
    font-weight: 500;
    font-size: 0.93rem;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(26,82,118,0.07);
}

.btn-apply-nav {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: var(--transition);
    margin-left: 6px;
}

/* ── Track page results styling ── */
.table-responsive {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--gray-200);
    padding: 18px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}
.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.results-table thead th {
    text-align: left;
    padding: 10px 12px;
    color: var(--primary);
    font-weight: 700;
    border-bottom: 1px solid var(--gray-200);
}
.results-table tbody td {
    padding: 12px 12px;
    color: var(--dark);
    vertical-align: middle;
    border-bottom: 1px dashed rgba(0,0,0,0.04);
}
.results-table tbody tr:last-child td { border-bottom: none; }

@media (max-width: 640px) {
    .results-table thead { display: none; }
    .results-table tbody td { display: block; width: 100%; }
    .results-table tbody td::before { content: attr(data-label); font-weight:700; display:inline-block; width:140px; color:var(--primary); }
    .table-responsive { padding: 12px; }
}

.btn-apply-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(26,82,118,0.3);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1002;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ── Footer ── */
footer {
    background: #1c2833;
    color: rgba(255,255,255,0.82);
}

.footer-top {
    padding: 65px 0 45px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.3fr 1.3fr;
    gap: 40px;
}

.footer-col h3,
.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.05rem;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h3::after,
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-logo-text { font-size: 1.4rem !important; }

.footer-about {
    font-size: 0.88rem;
    line-height: 1.9;
    margin-bottom: 22px;
    color: rgba(255,255,255,0.65);
}

.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }

.social-btn {
    padding: 7px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    font-size: 0.83rem;
    transition: var(--transition);
    color: var(--white);
}

.social-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a::before {
    content: '›';
    color: var(--accent);
    font-size: 1.1rem;
    line-height: 1;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 13px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
}

.contact-icon { flex-shrink: 0; font-size: 1.05rem; margin-top: 1px; }

.admission-dates .date-item {
    background: rgba(255,255,255,0.05);
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid var(--accent);
}

.admission-dates .date-item strong {
    display: block;
    color: var(--white);
    font-size: 0.83rem;
    margin-bottom: 3px;
}

.admission-dates .date-item span {
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    text-align: center;
    font-size: 0.83rem;
    color: rgba(255,255,255,0.45);
}

/* ── Back to Top ── */
#backToTop {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 900;
    display: none;
    align-items: center;
    justify-content: center;
}

#backToTop.visible { display: flex; }
#backToTop:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ── Utilities ── */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.fw-bold  { font-weight: 700; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

/* ── Responsive ── */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .section-title { font-size: 1.85rem; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 290px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 85px 25px 30px;
        box-shadow: var(--shadow-lg);
        transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
        z-index: 999;
        gap: 4px;
        overflow-y: auto;
    }

    .nav-menu.active { right: 0; }

    .nav-link {
        width: 100%;
        padding: 13px 16px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .btn-apply-nav {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-top: 8px;
        padding: 13px 22px;
        border-radius: 8px;
    }

    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    section { padding: 60px 0; }
    .section-title { font-size: 1.55rem; }
    .btn-xl { padding: 15px 32px; font-size: 1.05rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .section-title { font-size: 1.35rem; }
    .btn-lg { padding: 12px 24px; font-size: 0.97rem; }
    .brand-name { font-size: 1rem; }
}
