@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Kannada:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --slate-dark: #0f172a;
}

* { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    background-color: #f8fafc;
    color: var(--slate-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- NAVBAR --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    padding: 0.8rem 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo-badge {
    width: 42px;
    height: 42px;
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    padding: 3px;
}

.brand-logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-title {
    font-size: 1.05rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.nav-links {
    display: flex;
    gap: 18px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-cta {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: white !important;
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.menu-toggle {
    display: none;
    font-size: 1.4rem;
    cursor: pointer;
}

/* --- HERO --- */
.hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 50%, #4f46e5 100%);
    color: white;
    padding: 4.5rem 1.5rem 5.5rem 1.5rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.hero p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    max-width: 700px;
    margin: 0 auto;
    color: #e0e7ff;
    line-height: 1.5;
}

/* --- CONTAINER (Responsive Padding & Widths) --- */
.container {
    max-width: 1050px;
    margin: -3rem auto 3rem auto;
    background: #ffffff;
    padding: clamp(1.2rem, 3vw, 2.5rem);
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
    border: 1px solid #e2e8f0;
}

h2.section-title {
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    color: #0f172a;
    font-weight: 800;
    border-left: 4px solid #4f46e5;
    padding-left: 12px;
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.08) 0%, rgba(255,255,255,0) 100%);
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 0 6px 6px 0;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

p {
    line-height: 1.75;
    color: #334155;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    text-align: justify;
}

.featured-img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
    border: 1px solid #cbd5e1;
}

/* --- KANNADA NEWS ARTICLE LAYOUT --- */
.news-article-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: clamp(1.2rem, 3vw, 2rem);
    margin: 1rem 0 2.5rem 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
}

.news-article-title {
    font-family: 'Noto Serif Kannada', serif !important;
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    font-weight: 700;
    color: #1e1b4b;
    line-height: 1.4;
    margin-bottom: 1.2rem;
    border-bottom: 3px solid #4f46e5;
    padding-bottom: 10px;
}

.news-featured-img {
    width: 100% !important;
    height: auto !important;
    max-height: 550px !important;
    object-fit: cover !important;
    border-radius: 14px !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.12) !important;
    margin: 1.2rem 0 1.5rem 0 !important;
    border: 1px solid #cbd5e1 !important;
    display: block !important;
}

.news-content {
    font-family: 'Noto Serif Kannada', serif !important;
}

.news-content p {
    font-family: 'Noto Serif Kannada', serif !important;
    font-size: 1.1rem;
    line-height: 2.1;
    color: #1e293b;
    margin-bottom: 1.2rem;
    text-align: justify;
}

/* --- TABLES (Mobile Scrollable) --- */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.08);
    border: 1px solid #c7d2fe;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    min-width: 500px;
}

thead {
    background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 50%, #4f46e5 100%);
    color: white;
}

th {
    padding: 15px 18px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
}

td {
    padding: 16px 18px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    vertical-align: middle;
    font-size: 1rem;
}

tbody tr:hover td {
    background-color: #f1f5f9;
}

.trade-name {
    font-weight: 700;
    color: #0f172a;
    position: relative;
    padding-left: 12px;
}
.trade-name::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 4px;
    background: #4f46e5;
    border-radius: 4px;
}

/* --- ADMISSION FORM --- */
.admission-card {
    background: #ffffff;
    border: 1px solid #c7d2fe;
    border-radius: 18px;
    padding: clamp(1.2rem, 3vw, 2.5rem);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.06);
    margin-top: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #1e1b4b;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: #4f46e5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.form-section-heading {
    grid-column: 1 / -1;
    font-size: 1.1rem;
    font-weight: 800;
    color: #3730a3;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 6px;
    margin-top: 1.2rem;
    margin-bottom: 0.4rem;
}

.btn-whatsapp-submit {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border: none !important;
    padding: 16px 28px !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    width: 100% !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 1.5rem !important;
}

/* --- FOOTER --- */
.footer-premium {
    background: linear-gradient(135deg, #090d16 0%, #171f33 100%);
    color: #f1f5f9;
    padding: 4rem 4% 2rem 4%;
    margin-top: 4rem;
    border-top: 3px solid #4f46e5;
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background: #4f46e5;
    border-radius: 2px;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #cbd5e1 !important;
    margin: 0 0 0.8rem 0;
    text-align: left !important;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.7rem;
}

.footer-col ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.footer-col ul li a:hover {
    color: #818cf8;
    transform: translateX(3px);
}

.footer-bottom {
    max-width: 1100px;
    margin: 1.5rem auto 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 0.9rem;
    gap: 1rem;
    text-align: center;
}

/* --- DUAL CTA BANNER --- */
.cta-banner-wrapper {
    background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 50%, #4f46e5 100%);
    border-radius: 18px;
    padding: 2.2rem 1.5rem;
    margin: 2.5rem 0;
    text-align: center;
}

.cta-banner-title {
    color: #ffffff;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.cta-banner-subtitle {
    color: #cbd5e1;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.cta-buttons-flex {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-ultra {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 50px;
    text-decoration: none;
    color: #ffffff;
}

.btn-ultra-whatsapp { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.btn-ultra-call { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }

/* --- FLOATING WIDGET --- */
.floating-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.floating-action-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.9);
    transition: all 0.3s ease;
}

.floating-action-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.float-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 50px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.float-whatsapp { background: #10b981; }
.float-call { background: #3b82f6; }

.float-trigger-main {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #4f46e5;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
}

.back-to-top-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0f172a;
    color: #fff;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    font-size: 1rem;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

/* --- SOCIAL SHARE --- */
.social-share-section {
    background: #f8fafc;
    border: 1px solid #c7d2fe;
    border-radius: 18px;
    padding: 2rem 1.5rem;
    margin: 2.5rem 0;
    text-align: center;
}

.social-share-title {
    color: #1e1b4b;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.social-share-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.social-buttons-grid {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-social {
    padding: 9px 18px;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    border: none;
    cursor: pointer;
}

.share-whatsapp { background: #25D366; }
.share-facebook { background: #1877F2; }
.share-twitter { background: #0f172a; }
.share-telegram { background: #229ED9; }
.share-copy { background: #4f46e5; }

@media(max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1.2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
}