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

:root {
    --primary: #1e6b45;
    --primary-light: #2d8a5e;
    --primary-dark: #14503a;
    --secondary: #c9a227;
    --secondary-light: #d4b44a;
    --accent: #8b4513;
    --danger: #c0392b;
    --dark: #2c3e50;
    --light: #faf8f2;
    --cream: #f5f0e6;
    --white: #ffffff;
    --gray: #6c757d;
    --text: #3d3d3d;
    --border: #e8e0d0;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --gold-gradient: linear-gradient(135deg, #c9a227 0%, #d4b44a 50%, #c9a227 100%);
    --green-gradient: linear-gradient(135deg, #1e6b45 0%, #2d8a5e 100%);
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.7;
}

/* Islamic Pattern Background */
.islamic-pattern {
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30L30 0z' fill='none' stroke='%23c9a22715' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

/* Header */
.header {
    background: var(--white);
    color: var(--text);
    padding: 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--secondary);
}

.header-top {
    background: var(--green-gradient);
    padding: 10px 0;
    font-size: 13px;
    color: var(--white);
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.header-top a:hover {
    color: var(--secondary-light);
}

.header-main {
    padding: 20px 0;
    background: var(--white);
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--white);
    font-weight: bold;
    border: 3px solid var(--secondary);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    border: 2px dashed var(--secondary);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-icon svg {
    width: 50px;
    height: 50px;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0.5px;
}

.logo-text p {
    font-size: 12px;
    color: var(--gray);
    font-style: italic;
}

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

/* Navigation */
.nav {
    background: var(--cream);
    padding: 0;
    border-top: 1px solid var(--border);
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.nav ul li a {
    color: var(--primary-dark);
    text-decoration: none;
    padding: 18px 16px;
    display: block;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.nav ul li a:hover,
.nav ul li a.active {
    background: var(--white);
    color: var(--primary);
    border-bottom-color: var(--secondary);
}

/* Full Width Banner Slider */
.hero-banner-full {
    width: 100%;
    position: relative;
}

.banner-slider-full {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 500px;
}

.banner-track-full {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.banner-slide-full {
    min-width: 100%;
    position: relative;
    height: 100%;
}

.banner-slide-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    align-items: center;
    padding: 0 60px;
}

.banner-text-box {
    color: white;
    max-width: 550px;
}

.banner-text-box h2 {
    font-size: 42px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.banner-text-box p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.95;
    line-height: 1.7;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.banner-btns {
    display: flex;
    gap: 15px;
}

/* Banner Arrows */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-arrow:hover {
    background: rgba(30,107,69,0.9);
}

.banner-prev {
    left: 15px;
}

.banner-next {
    right: 15px;
}

/* Banner Dots */
.banner-dots {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-dots .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
    border: 2px solid white;
}

.banner-dots .dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

/* News Ticker */
.news-ticker {
    display: flex;
    align-items: stretch;
    background: var(--primary-dark);
    height: 42px;
}

.ticker-label {
    background: var(--secondary);
    color: var(--white);
    font-weight: 700;
    font-size: 13px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ticker-icon {
    font-size: 16px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.ticker-scroll {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 20s linear infinite;
    gap: 80px;
}

.ticker-scroll span {
    color: var(--white);
    font-size: 13px;
    white-space: nowrap;
}

@keyframes tickerScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-200%); }
}
    margin-bottom: 30px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    display: inline-block;
    border-radius: 5px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Decorative Divider */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.divider-icon {
    padding: 0 20px;
    color: var(--secondary);
    font-size: 24px;
}

/* Buttons */
.btn {
    padding: 14px 35px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: inherit;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
}

.btn-secondary {
    background: var(--primary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-small {
    padding: 8px 18px;
    font-size: 12px;
}

/* Cards */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 38px;
    color: var(--primary-dark);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold-gradient);
}

.section-title p {
    color: var(--gray);
    font-size: 16px;
    margin-top: 20px;
    font-style: italic;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 15px;
    padding: 35px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-align: center;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-gradient);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 90px;
    height: 90px;
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 40px;
    border: 2px solid var(--secondary);
}

.card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.card p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.8;
}

/* Quick Links */
.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.quick-link {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.quick-link:hover {
    transform: translateY(-7px);
    border-top-color: var(--secondary);
    box-shadow: var(--shadow-lg);
}

.quick-link-icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f7faf8 0%, #fdfbf7 100%);
    border: 1.5px solid rgba(201, 162, 39, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: all 0.35s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.quick-link:hover .quick-link-icon {
    transform: scale(1.08);
    border-color: var(--secondary);
    background: linear-gradient(135deg, #f0f7f3 0%, #faf5e6 100%);
    box-shadow: 0 8px 20px rgba(201, 162, 39, 0.25);
}

.quick-icon-svg {
    width: 52px;
    height: 52px;
    display: block;
    transition: transform 0.3s ease;
}

.quick-link:hover .quick-icon-svg {
    transform: scale(1.05);
}

.quick-link h4 {
    font-size: 17px;
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-weight: 700;
}

.quick-link p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
}

/* Info Table Section */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.info-table th {
    background: var(--primary);
    color: var(--white);
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.info-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.info-table tr:nth-child(even) {
    background: var(--cream);
}

.info-table tr:hover {
    background: #f0ead8;
}

/* Stats Section */
.stats-section {
    background: var(--cream);
    padding: 60px 0;
}

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

.stat-card {
    background: var(--white);
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--secondary);
    margin-bottom: 20px;
}

.feature-card h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 18px;
}

.feature-card p {
    color: var(--gray);
    font-size: 14px;
}

/* Forms */
.form-container {
    background: var(--white);
    padding: 45px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    max-width: 850px;
    margin: 0 auto;
    border: 1px solid var(--border);
    position: relative;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gold-gradient);
    border-radius: 15px 15px 0 0;
}

.form-title {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--cream);
}

.form-title h2 {
    color: var(--primary-dark);
    font-size: 30px;
    margin-bottom: 10px;
}

.form-title p {
    color: var(--gray);
    font-style: italic;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background: var(--cream);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(30, 107, 69, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    text-align: center;
    margin-top: 35px;
    grid-column: span 2;
}

/* Tables */
.table-container {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--green-gradient);
    color: var(--white);
}

.table-header h3 {
    font-size: 18px;
    letter-spacing: 1px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 15px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

table th {
    background: var(--primary-dark);
    color: var(--white);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

table tr:hover {
    background: var(--cream);
}

table td {
    font-size: 14px;
}

.badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Admin Panel */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 160px);
}

.sidebar {
    background: var(--cream);
    padding: 25px 0;
    border-right: 1px solid var(--border);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 25px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 600;
    border-left: 4px solid transparent;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: var(--white);
    color: var(--primary);
    border-left-color: var(--secondary);
}

.sidebar-menu li a span {
    font-size: 20px;
}

.admin-content {
    padding: 35px;
    background: var(--light);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.admin-header h2 {
    color: var(--primary-dark);
    font-size: 26px;
}

.stat-card {
    background: var(--white);
    padding: 28px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--border);
}

.stat-icon {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--white);
}

.stat-icon.blue { background: var(--green-gradient); }
.stat-icon.green { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.stat-icon.orange { background: linear-gradient(135deg, #c9a227, #d4b44a); }
.stat-icon.red { background: linear-gradient(135deg, #c0392b, #e74c3c); }

.stat-info h3 {
    font-size: 32px;
    color: var(--primary-dark);
}

.stat-info p {
    color: var(--gray);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ID Card */
.id-card {
    width: 380px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    margin: 0 auto;
}

.id-card-header {
    background: var(--green-gradient);
    color: var(--white);
    padding: 18px;
    text-align: center;
    position: relative;
}

.id-card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-gradient);
}

.id-card-header h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.id-card-header p {
    font-size: 10px;
    opacity: 0.9;
    margin-top: 3px;
}

.id-card-body {
    padding: 20px;
    display: flex;
    gap: 18px;
}

.id-card-photo {
    width: 90px;
    height: 110px;
    background: var(--cream);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--gray);
}

.id-card-details {
    flex: 1;
}

.id-card-details p {
    font-size: 12px;
    margin-bottom: 6px;
    color: var(--text);
}

.id-card-details strong {
    color: var(--primary-dark);
}

.id-card-footer {
    background: var(--cream);
    padding: 12px;
    text-align: center;
    font-size: 10px;
    color: var(--gray);
    border-top: 2px solid var(--border);
}

/* Admit Card */
.admit-card {
    width: 100%;
    max-width: 750px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    margin: 0 auto;
}

.admit-card-header {
    background: var(--green-gradient);
    color: var(--white);
    padding: 25px;
    text-align: center;
    position: relative;
}

.admit-card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-gradient);
}

.admit-card-header h2 {
    font-size: 22px;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.admit-card-header p {
    font-size: 12px;
    opacity: 0.9;
}

.admit-card-body {
    padding: 30px;
}

.admit-card-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

.admit-card-info p {
    font-size: 14px;
}

.admit-card-info strong {
    color: var(--primary-dark);
}

.admit-card-exam {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    background: var(--cream);
}

.admit-card-exam h4 {
    color: var(--primary-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.admit-card-instructions {
    background: #fff8e1;
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
    border-left: 4px solid var(--secondary);
}

.admit-card-instructions h4 {
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 14px;
    text-transform: uppercase;
}

.admit-card-instructions ul {
    margin-left: 20px;
    font-size: 13px;
    color: var(--text);
}

/* Marksheet */
.marksheet {
    width: 100%;
    max-width: 850px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    margin: 0 auto;
}

.marksheet-header {
    background: var(--green-gradient);
    color: var(--white);
    padding: 30px;
    text-align: center;
    position: relative;
}

.marksheet-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-gradient);
}

.marksheet-header h2 {
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.marksheet-header p {
    font-size: 13px;
    opacity: 0.9;
}

.marksheet-body {
    padding: 30px;
}

.marksheet-student {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--border);
}

.marksheet-student p {
    font-size: 14px;
}

.marksheet-student strong {
    color: var(--primary-dark);
}

.marksheet-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.marksheet-table th,
.marksheet-table td {
    padding: 14px;
    border: 1px solid var(--border);
    text-align: center;
    font-size: 14px;
}

.marksheet-table th {
    background: var(--primary-dark);
    color: var(--white);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

.marksheet-result {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding-top: 25px;
    border-top: 3px solid var(--primary);
}

.marksheet-result div {
    font-size: 14px;
}

.marksheet-result strong {
    color: var(--primary-dark);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--cream);
    padding: 60px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    margin-bottom: 45px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p,
.footer-col li {
    font-size: 14px;
    margin-bottom: 12px;
    color: #bdc3c7;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-col ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: #95a5a6;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 15px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px;
    border-bottom: 2px solid var(--cream);
}

.modal-header h3 {
    color: var(--primary-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 25px;
}

/* Alert */
.alert {
    padding: 18px 22px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Search */
.search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.search-box input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--cream);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

/* Print */
@media print {
    .no-print {
        display: none !important;
    }
    
    .header, .footer, .sidebar, .nav {
        display: none !important;
    }
    
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-content {
        padding: 0;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-main .container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        flex-direction: column;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav ul li a {
        padding: 12px 18px;
        font-size: 12px;
    }
    
    .banner-slider-full {
        height: 350px;
    }
    
    .banner-text-box h2 {
        font-size: 24px;
    }
    
    .banner-text-box p {
        font-size: 14px;
    }
    
    .banner-overlay {
        padding: 0 20px;
    }
    
    .banner-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .ticker-label {
        font-size: 11px;
        padding: 0 12px;
    }
    
    .ticker-scroll span {
        font-size: 11px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .form-actions {
        grid-column: span 1;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-links {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .marksheet-student {
        grid-template-columns: 1fr;
    }
    
    .marksheet-result {
        grid-template-columns: 1fr;
    }
    
    .admit-card-info {
        grid-template-columns: 1fr;
    }
    
    .info-table {
        font-size: 12px;
    }
    
    .info-table th,
    .info-table td {
        padding: 10px 12px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

.slide-in {
    animation: slideIn 0.5s ease;
}

/* Utility */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }

/* About Section Special */
.about-box {
    background: var(--cream);
    padding: 40px;
    border-radius: 15px;
    border-left: 5px solid var(--primary);
    margin-bottom: 30px;
}

.about-box h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 22px;
}

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

.about-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.about-item strong {
    color: var(--primary-dark);
    min-width: 120px;
    font-size: 13px;
    text-transform: uppercase;
}

/* Result Stats */
.result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.result-stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--secondary);
}

.result-stat-card h4 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 18px;
}

.result-stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.result-stat-item:last-child {
    border-bottom: none;
}

/* Government Logos Section */
.gov-logos-section {
    background: var(--white);
    padding: 30px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.gov-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.gov-logo-link {
    text-decoration: none;
    transition: transform 0.3s;
}

.gov-logo-link:hover {
    transform: scale(1.05);
}

.gov-logo-link img {
    height: 80px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s;
}

.gov-logo-link:hover img {
    transform: scale(1.05);
}

/* Responsive for banner */
@media (max-width: 768px) {
    .banner-item {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .banner-content h3 {
        font-size: 22px;
    }
    
    .banner-icon {
        display: none;
    }
    
    .gov-logos {
        gap: 15px;
    }
    
    .gov-logo {
        min-width: 120px;
        padding: 10px 15px;
    }
}
