/* ================================================
   CISCE BOARD AC - Main Stylesheet
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #1a3a6b;
    --primary-dark: #0f2347;
    --primary-light: #2a5298;
    --accent: #e8a000;
    --accent-light: #f5c53d;
    --green: #1b8a4e;
    --red: #c0392b;
    --white: #ffffff;
    --off-white: #f8f6f0;
    --light-gray: #f0f2f5;
    --gray: #6c757d;
    --dark: #1a1a2e;
    --text: #333344;
    --border: #dde1e7;
    --shadow: 0 4px 20px rgba(26,58,107,0.12);
    --shadow-lg: 0 10px 40px rgba(26,58,107,0.18);
    --radius: 8px;
    --radius-lg: 16px;
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 { font-family: 'Playfair Display', serif; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---- TOP BAR ---- */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    font-size: 12.5px;
    padding: 7px 0;
}
.top-bar .container { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }
.top-bar a { color: var(--accent-light); }
.top-bar .marquee-wrap { flex:1; overflow:hidden; }
.top-bar marquee { color: #fff; }
.top-bar-right { display:flex; gap:18px; align-items:center; flex-shrink:0; }

/* ---- HEADER ---- */
header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky; top:0; z-index: 999;
}
.header-inner { display:flex; align-items:center; justify-content:space-between; padding: 12px 20px; gap:20px; }
.logo-wrap { display:flex; align-items:center; gap:14px; }
.logo-wrap img { height:80px; width:auto; }
.logo-text h1 { font-size: 22px; color: var(--primary); line-height:1.2; }
.logo-text p { font-size: 12px; color: var(--gray); font-family: 'Source Sans 3', sans-serif; }

/* ---- NAV ---- */
nav { background: var(--primary); }
nav ul { list-style:none; display:flex; flex-wrap:wrap; justify-content:center; }
nav ul li { position:relative; }
nav ul li a {
    display:block;
    color: var(--white);
    padding: 14px 18px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background 0.2s, color 0.2s;
    font-family: 'Source Sans 3', sans-serif;
    text-transform: uppercase;
}
nav ul li a:hover, nav ul li a.active {
    background: var(--accent);
    color: var(--primary-dark);
}
nav ul li.results-link > a {
    background: var(--accent);
    color: var(--primary-dark);
}
nav ul li.results-link > a:hover { background: var(--accent-light); }

/* Dropdown */
nav ul li ul {
    display:none;
    position:absolute; top:100%; left:0;
    background: var(--primary-dark);
    min-width:200px; z-index:999;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
}
nav ul li:hover > ul { display:flex; }
nav ul li ul li a { padding: 11px 18px; font-size:13px; border-bottom:1px solid rgba(255,255,255,0.06); }
nav ul li ul li a:hover { background: var(--primary-light); }

/* Hamburger */
.hamburger { display:none; cursor:pointer; padding:8px; background:none; border:none; }
.hamburger span { display:block; width:24px; height:2px; background:var(--primary); margin:5px 0; transition:0.3s; }

/* ---- HERO SLIDER ---- */
.hero {
    position:relative;
    overflow:hidden;
    height: 500px;
    background: var(--primary-dark);
}
.hero-slide {
    position:absolute; inset:0;
    display:flex; align-items:center;
    opacity:0; transition: opacity 0.8s ease;
}
.hero-slide.active { opacity:1; }
.hero-slide img {
    position:absolute; inset:0;
    width:100%; height:100%; object-fit:cover;
    opacity:0.35;
}
.hero-content {
    position:relative; z-index:2;
    color:#fff;
    padding: 0 40px;
    max-width:700px;
}
.hero-content .badge {
    display:inline-block;
    background:var(--accent);
    color:var(--primary-dark);
    font-size:11px; font-weight:700;
    padding:4px 12px; border-radius:20px;
    text-transform:uppercase; letter-spacing:1px;
    margin-bottom:14px;
}
.hero-content h2 { font-size:46px; line-height:1.15; margin-bottom:16px; text-shadow:0 2px 10px rgba(0,0,0,0.4); }
.hero-content p { font-size:17px; opacity:0.9; margin-bottom:28px; line-height:1.6; }
.btn {
    display:inline-block;
    padding:13px 32px;
    border-radius:4px;
    font-size:14px; font-weight:700;
    text-transform:uppercase; letter-spacing:0.5px;
    transition:all 0.2s; cursor:pointer; border:none;
    font-family:'Source Sans 3',sans-serif;
}
.btn-primary { background:var(--accent); color:var(--primary-dark); }
.btn-primary:hover { background:var(--accent-light); transform:translateY(-1px); box-shadow:0 4px 15px rgba(232,160,0,0.4); }
.btn-secondary { background:transparent; color:#fff; border:2px solid #fff; }
.btn-secondary:hover { background:#fff; color:var(--primary); }
.btn-outline { background:transparent; color:var(--primary); border:2px solid var(--primary); }
.btn-outline:hover { background:var(--primary); color:#fff; }
.hero-dots { position:absolute; bottom:20px; left:50%; transform:translateX(-50%); display:flex; gap:8px; z-index:3; }
.hero-dot { width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,0.4); cursor:pointer; transition:0.2s; }
.hero-dot.active { background:var(--accent); transform:scale(1.3); }

/* ---- QUICK LINKS ---- */
.quick-links {
    background: var(--primary);
    padding: 0;
}
.quick-links-grid { display:grid; grid-template-columns:repeat(5,1fr); }
.ql-item {
    display:flex; flex-direction:column; align-items:center;
    padding: 22px 10px;
    color:#fff; text-align:center;
    border-right:1px solid rgba(255,255,255,0.1);
    transition:background 0.2s;
    cursor:pointer;
}
.ql-item:last-child { border-right:none; }
.ql-item:hover { background:var(--primary-light); }
.ql-item .icon { font-size:28px; margin-bottom:8px; }
.ql-item span { font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:0.5px; line-height:1.3; }

/* ---- SECTION COMMON ---- */
section { padding: 70px 0; }
.section-title { text-align:center; margin-bottom:50px; }
.section-title .subtitle {
    display:inline-block;
    color:var(--accent); font-size:13px; font-weight:700;
    text-transform:uppercase; letter-spacing:2px;
    margin-bottom:10px;
}
.section-title h2 { font-size:36px; color:var(--primary); margin-bottom:12px; }
.section-title p { color:var(--gray); max-width:600px; margin:0 auto; font-size:16px; line-height:1.7; }
.divider {
    width:60px; height:3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    margin: 14px auto 0;
    border-radius:2px;
}

/* ---- NOTICE / ALERTS BAR ---- */
.notice-bar {
    background: #fff8e7;
    border-left:4px solid var(--accent);
    padding: 16px 24px;
    display:flex; align-items:center; gap:14px;
    border-radius:0 var(--radius) var(--radius) 0;
    margin: 30px 0;
}
.notice-bar .nb-label { background:var(--accent); color:var(--primary-dark); font-size:11px; font-weight:800; padding:3px 10px; border-radius:3px; text-transform:uppercase; white-space:nowrap; }

/* ---- ABOUT SECTION ---- */
.about-section { background:var(--off-white); }
.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
.about-image { position:relative; }
.about-image img { width:100%; border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); }
.about-image .badge-float {
    position:absolute; bottom:-20px; right:-20px;
    background:var(--accent); color:var(--primary-dark);
    padding:18px 22px; border-radius:var(--radius);
    text-align:center; font-weight:700;
    box-shadow:var(--shadow);
}
.about-image .badge-float .num { font-size:36px; font-family:'Playfair Display',serif; display:block; }
.about-image .badge-float .lbl { font-size:11px; text-transform:uppercase; letter-spacing:1px; }
.about-text h2 { font-size:34px; color:var(--primary); margin-bottom:18px; }
.about-text p { color:#555; line-height:1.8; margin-bottom:14px; font-size:15.5px; }
.about-stats { display:flex; gap:30px; margin:28px 0; }
.stat-item { text-align:center; }
.stat-item .num { font-size:32px; font-family:'Playfair Display',serif; color:var(--primary); font-weight:700; }
.stat-item .lbl { font-size:12px; color:var(--gray); text-transform:uppercase; letter-spacing:0.5px; }

/* ---- HIGHLIGHTS CARDS ---- */
.highlights-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.highlight-card {
    background:#fff;
    border-radius:var(--radius-lg);
    overflow:hidden;
    box-shadow:var(--shadow);
    transition:transform 0.3s, box-shadow 0.3s;
}
.highlight-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-lg); }
.highlight-card img { width:100%; height:220px; object-fit:cover; }
.highlight-card .card-body { padding:22px; }
.highlight-card .tag {
    display:inline-block;
    background:var(--light-gray); color:var(--primary);
    font-size:11px; font-weight:700; padding:3px 10px;
    border-radius:20px; text-transform:uppercase; letter-spacing:0.5px;
    margin-bottom:10px;
}
.highlight-card h3 { font-size:18px; color:var(--primary); margin-bottom:8px; line-height:1.4; }
.highlight-card p { color:var(--gray); font-size:14px; line-height:1.6; }
.highlight-card .read-more { color:var(--accent); font-weight:700; font-size:13px; display:inline-block; margin-top:12px; }
.highlight-card .read-more:hover { color:var(--primary); }

/* ---- NOTICE BOARD ---- */
.notice-board-section { background: var(--light-gray); }
.notice-board-grid { display:grid; grid-template-columns:1.5fr 1fr; gap:40px; }
.notice-list { background:#fff; border-radius:var(--radius-lg); box-shadow:var(--shadow); overflow:hidden; }
.notice-list .list-header { background:var(--primary); color:#fff; padding:16px 22px; font-size:15px; font-weight:700; font-family:'Playfair Display',serif; }
.notice-item { display:flex; align-items:flex-start; gap:14px; padding:16px 22px; border-bottom:1px solid var(--border); transition:background 0.2s; }
.notice-item:last-child { border-bottom:none; }
.notice-item:hover { background:var(--light-gray); }
.notice-item .date-box { background:var(--primary); color:#fff; padding:6px 10px; border-radius:6px; text-align:center; min-width:44px; flex-shrink:0; }
.notice-item .date-box .day { font-size:20px; font-weight:700; font-family:'Playfair Display',serif; display:block; line-height:1; }
.notice-item .date-box .mon { font-size:10px; text-transform:uppercase; }
.notice-item .notice-info h4 { font-size:14px; color:var(--primary); font-family:'Source Sans 3',sans-serif; font-weight:600; line-height:1.4; }
.notice-item .notice-info a { font-size:12px; color:var(--accent); font-weight:600; }
.notice-item .important-tag { background:#fff0f0; color:var(--red); font-size:10px; font-weight:700; padding:2px 7px; border-radius:3px; text-transform:uppercase; }

/* Quick Access Widget */
.quick-access-widget { display:flex; flex-direction:column; gap:14px; }
.qa-card {
    background:#fff; border-radius:var(--radius); box-shadow:var(--shadow);
    padding:20px 22px; display:flex; align-items:center; gap:16px;
    transition:transform 0.2s; cursor:pointer;
}
.qa-card:hover { transform:translateX(4px); }
.qa-card .qa-icon { font-size:32px; flex-shrink:0; }
.qa-card h4 { font-size:15px; color:var(--primary); margin-bottom:3px; }
.qa-card p { font-size:12px; color:var(--gray); }

/* ---- GALLERY ---- */
.gallery-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.gallery-item { position:relative; overflow:hidden; border-radius:var(--radius); aspect-ratio:4/3; cursor:pointer; }
.gallery-item img { width:100%; height:100%; object-fit:cover; transition:transform 0.4s; }
.gallery-item:hover img { transform:scale(1.08); }
.gallery-item .overlay { position:absolute; inset:0; background:rgba(26,58,107,0.6); opacity:0; transition:0.3s; display:flex; align-items:center; justify-content:center; }
.gallery-item:hover .overlay { opacity:1; }
.gallery-item .overlay span { color:#fff; font-size:28px; }

/* ---- TESTIMONIALS ---- */
.testimonials { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); color:#fff; }
.testimonials .section-title h2 { color:#fff; }
.testimonials-slider { position:relative; overflow:hidden; }
.testimonial-slide { display:none; text-align:center; padding:20px 60px; }
.testimonial-slide.active { display:block; }
.testimonial-slide p { font-size:18px; line-height:1.8; opacity:0.9; font-style:italic; margin-bottom:28px; }
.testimonial-slide .author { font-weight:700; color:var(--accent-light); }
.testimonial-slide .author-role { font-size:13px; opacity:0.7; }

/* ---- AFFILIATION ---- */
.affiliation-section { background:var(--off-white); }
.partner-logos { display:flex; flex-wrap:wrap; gap:20px; justify-content:center; align-items:center; }
.partner-logos .partner-badge {
    background:#fff; padding:16px 28px; border-radius:var(--radius);
    box-shadow:var(--shadow); font-weight:700; color:var(--primary);
    font-size:14px; border:1px solid var(--border);
}

/* ---- CONTACT STRIP ---- */
.contact-strip { background:var(--primary); color:#fff; padding:50px 0; }
.contact-strip-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:40px; }
.cs-item { display:flex; gap:16px; align-items:flex-start; }
.cs-item .icon { font-size:30px; flex-shrink:0; opacity:0.8; }
.cs-item h4 { font-size:13px; text-transform:uppercase; letter-spacing:1px; opacity:0.7; margin-bottom:4px; }
.cs-item p { font-size:15px; }
.cs-item a { color:var(--accent-light); }

/* ---- FOOTER ---- */
footer { background:var(--primary-dark); color:rgba(255,255,255,0.8); padding:60px 0 0; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px; margin-bottom:40px; }
.footer-logo img { height:70px; margin-bottom:14px; }
.footer-logo p { font-size:14px; line-height:1.7; opacity:0.75; margin-bottom:18px; }
.footer-col h4 { color:#fff; font-size:15px; margin-bottom:18px; position:relative; padding-bottom:10px; }
.footer-col h4::after { content:''; position:absolute; bottom:0; left:0; width:30px; height:2px; background:var(--accent); }
.footer-col ul { list-style:none; }
.footer-col ul li { margin-bottom:10px; }
.footer-col ul li a { color:rgba(255,255,255,0.7); font-size:13.5px; transition:color 0.2s; }
.footer-col ul li a:hover { color:var(--accent-light); }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.1); padding:18px 0; display:flex; justify-content:space-between; align-items:center; font-size:13px; flex-wrap:wrap; gap:10px; }
.footer-bottom a { color:var(--accent-light); }

/* ---- PAGE HERO ---- */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color:#fff; padding:60px 0; text-align:center;
    position:relative; overflow:hidden;
}
.page-hero::before {
    content:''; position:absolute; inset:0;
    background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { font-size:38px; margin-bottom:10px; position:relative; }
.breadcrumb { display:flex; gap:8px; justify-content:center; align-items:center; font-size:14px; opacity:0.75; position:relative; }
.breadcrumb a { color:var(--accent-light); }
.breadcrumb span { opacity:0.5; }

/* ---- FORMS ---- */
.form-section { max-width:800px; margin:0 auto; }
.form-card { background:#fff; border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); padding:40px; }
.form-group { margin-bottom:22px; }
.form-group label { display:block; font-size:13.5px; font-weight:600; color:var(--primary); margin-bottom:7px; }
.form-group input, .form-group select, .form-group textarea {
    width:100%; padding:11px 15px;
    border:1.5px solid var(--border); border-radius:var(--radius);
    font-size:14.5px; font-family:'Source Sans 3',sans-serif;
    transition:border-color 0.2s, box-shadow 0.2s;
    background:#fff; color:var(--text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline:none; border-color:var(--primary-light);
    box-shadow:0 0 0 3px rgba(42,82,152,0.1);
}
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.form-group textarea { min-height:130px; resize:vertical; }

/* ---- RESULT PAGE ---- */
.result-search-box {
    max-width:580px; margin:0 auto;
    background:#fff; border-radius:var(--radius-lg);
    box-shadow:var(--shadow-lg); padding:42px;
}
.result-search-box h3 { color:var(--primary); font-size:24px; margin-bottom:8px; }
.result-search-box p { color:var(--gray); font-size:14px; margin-bottom:28px; }
.result-display { max-width:700px; margin:30px auto 0; }
.result-card { background:#fff; border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); overflow:hidden; }
.result-card-header { background:var(--primary); color:#fff; padding:20px 28px; display:flex; justify-content:space-between; align-items:center; }
.result-card-header h3 { font-size:18px; }
.result-card-body { padding:28px; }
.result-field { display:flex; gap:12px; padding:10px 0; border-bottom:1px solid var(--border); }
.result-field:last-child { border-bottom:none; }
.result-field label { font-weight:600; color:var(--primary); min-width:160px; font-size:14px; }
.result-field span { color:var(--text); font-size:14px; }
.result-pdf-btn { display:block; text-align:center; margin-top:22px; }
.alert { padding:14px 20px; border-radius:var(--radius); margin:14px 0; font-size:14px; }
.alert-success { background:#e8f7ee; color:var(--green); border:1px solid #b7e4c7; }
.alert-error { background:#fdf0f0; color:var(--red); border:1px solid #f5c6cb; }
.alert-info { background:#e8f0fe; color:var(--primary); border:1px solid #c2d4f8; }

/* ---- TABLE ---- */
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:14px; }
table th { background:var(--primary); color:#fff; padding:12px 16px; text-align:left; font-family:'Source Sans 3',sans-serif; font-size:13px; text-transform:uppercase; letter-spacing:0.5px; }
table td { padding:11px 16px; border-bottom:1px solid var(--border); }
table tr:hover td { background:var(--light-gray); }
table tr:last-child td { border-bottom:none; }

/* ---- RESPONSIVE ---- */
@media (max-width:1024px) {
    .highlights-grid { grid-template-columns:repeat(2,1fr); }
    .footer-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:768px) {
    .hero { height:380px; }
    .hero-content h2 { font-size:28px; }
    .about-grid, .notice-board-grid, .contact-strip-grid { grid-template-columns:1fr; }
    .about-image .badge-float { right:0; bottom:-10px; }
    .highlights-grid, .gallery-grid { grid-template-columns:repeat(2,1fr); }
    .quick-links-grid { grid-template-columns:repeat(3,1fr); }
    .footer-grid { grid-template-columns:1fr; }
    .header-inner { flex-wrap:wrap; }
    .logo-text h1 { font-size:17px; }
    nav ul { display:none; flex-direction:column; }
    nav ul.open { display:flex; }
    nav ul li ul { position:static; display:none; }
    nav ul li.open > ul { display:flex; }
    .hamburger { display:block; }
    .form-row { grid-template-columns:1fr; }
    .hero-content { padding:0 20px; }
}
@media (max-width:480px) {
    .gallery-grid, .highlights-grid { grid-template-columns:1fr; }
    .quick-links-grid { grid-template-columns:repeat(2,1fr); }
    section { padding:45px 0; }
}
