/*
Theme Name: CUET Clone
Theme URI: https://cuet.nta.nic.in/
Author: Antigravity
Author URI: https://google.com
Description: A clone of the CUET NTA website for educational purposes.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cuet-clone
*/

:root {
    /* NTA / NIC Official Color Palette */
    --primary-blue: #052963;
    /* Main Brand Color */
    --dark-blue: #052963;
    /* Darker shade for text/footers */
    --accent-orange: #FBAC1B;
    /* Highlights */
    --accent-green: #138808;
    /* Success/Active states */
    --bg-beige: #E5E2DB;

    /* Bootstrap 5 Variable Overrides */
    --bs-primary: var(--primary-blue);
    --bs-primary-rgb: 5, 41, 99;
    --bs-secondary: #f8f9fa;
    --bs-secondary-rgb: 248, 249, 250;
    --bs-success: var(--accent-green);
    --bs-success-rgb: 19, 136, 8;

    --text-color: #000;
    --bg-light: var(--bg-beige);
    --header-bg: #fff;
    --nav-bg: var(--bs-gray-200);
    --nav-text: var(--primary-blue);
    --footer-bg: #212529;
    --font-primary: 'Roboto', sans-serif;
}

/* Ensure these are applied globally */
body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* ... existing code ... */


.bg-primary {
    background-color: var(--primary-blue) !important;
}

.text-primary {
    color: var(--primary-blue) !important;
}

.border-primary {
    border-color: var(--primary-blue) !important;
}

.bg-secondary {
    background-color: var(--accent-orange) !important;
    color: #fff !important;
}

.text-secondary {
    color: var(--accent-orange) !important;
}

.border-secondary {
    border-color: var(--accent-orange) !important;
}

/* Custom Badge Colors */
.badge.bg-danger {
    background-color: #dc3545 !important;
}

/* Keep standard red for 'New' */

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: underline;
}

ul {
    /* list-style: none; */
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-center {
    text-align: center;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

/* Top Bar */
.top-bar {
    background: #f1f1f1;
    border-bottom: 1px solid #ddd;
    font-size: 0.85rem;
    padding: 5px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* Header */
.site-header {
    background: var(--header-bg);
    border-bottom: 4px solid var(--accent-orange);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: center;
    /* Allow it to grow */
}

.emblem {
    height: 60px;
    flex-shrink: 0;
}

.site-title h1 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

.site-title p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.right-logos {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
}

.nta-logo,
.cuet-logo {
    height: 50px;
    width: auto;
}

/* Navigation */
.main-navigation {
    background: var(--nav-bg);
    color: var(--nav-text);
    position: relative;
    border: 1px solid #ececec;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
}


.main-navigation li {
    position: relative;
    list-style: none;
}

.main-navigation a {
    display: block;
    padding: 12px 20px;
    color: var(--bs-link-color);
    font-weight: 500;
    transition: background 0.3s;
    text-decoration: none;
    white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item>a {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-orange) !important;
    text-decoration: none;
}

/* Dropdown support */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.main-navigation ul ul a {
    color: #333;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.main-navigation ul ul a:hover {
    background: #f8f9fa;
    color: var(--primary-blue);
}

/* Hover dropdowns for desktop only */
@media (min-width: 992px) {
    .main-navigation li:hover>ul {
        display: block;
    }
}

/* Marquee */
.news-ticker-section {
    background: var(--primary-blue) !important;
    color: #fff;
}

.news-ticker-section marquee {
    color: #fff !important;
    font-weight: bold;
}

.news-ticker-section a {
    color: #fff !important;
    text-decoration: none;
}

.news-ticker-section .badge {
    background-color: var(--accent-orange) !important;
    color: #fff !important;
}

.ticker-label {
    background: var(--accent-orange);
    color: #fff;
    padding: 5px 10px;
    margin-right: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Home Layout */
.home-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Content | Sidebar */
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .home-layout {
        grid-template-columns: 1fr;
    }
}

/* Cards & Sections */
.section-title {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--accent-orange);
    padding-bottom: 10px;
    margin-bottom: 20px;
    
}

.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.activity-link {
    display: block;
    padding: 15px;
    background: #fff;
    border-left: 5px solid var(--accent-green);
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 600;
}

.activity-link:hover {
    transform: translateX(5px);
    text-decoration: none;
    background: #f0fff4;
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 50px;
    font-size: 0.9rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Improved responsive grid */
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widgets h3 {
    color: #fff;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.footer-widgets ul li {
    margin-bottom: 8px;
}

.footer-widgets a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.8rem;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Tablet & Mobile (Max Width 992px) */
@media (max-width: 991px) {

    /* Header Adjustments */
    .header-inner {
        flex-direction: column;
        align-items: center;
        /* Center align for mobile */
        text-align: center;
    }

    .logo-section {
        flex-direction: column;
        justify-content: center;
    }

    .site-title h1 {
        font-size: 1.2rem;
    }

    .right-logos {
        justify-content: center;
        margin-top: 10px;
    }

    /* Navigation - Off-canvas or Toggle */
    .menu-toggle {
        display: flex;
        margin: 10px 0;
    }

    /* NTA Tabs */
    .nta-tabs {
        border-bottom: none;
    }

    .nta-tabs .nav-link {
        border: none;
        border-radius: 0;
        color: #666;
        background-color: #f1f1f1;
        font-weight: 500;
        padding: 10px 20px;
        margin-right: 2px;
    }

    .nta-tabs .nav-link.active {
        background-color: #fff;
        color: var(--primary-blue);
        border-top: 3px solid var(--accent-orange);
        font-weight: 700;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
    }

    .nta-tab-content {
        background: #fff;
        border: 1px solid #ddd;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .nta-tab-content .list-group-item {
        font-size: 0.95rem;
    }

    .hover-primary:hover {
        color: var(--primary-blue) !important;
        text-decoration: underline !important;
    }

    /* Intro Section */
    .intro-section {
        background: #fff;
    }

    .intro-content {
        font-size: 1rem;
        line-height: 1.7;
        text-align: justify;
    }

    .intro-section h2 {
        font-size: 1.75rem;
        border-bottom: 2px solid #f1f1f1;
        padding-bottom: 10px;
    }

    .main-navigation.toggled ul {
        display: block;
    }

    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-navigation ul ul {
        position: static;
        /* Stack naturally */
        background: rgba(0, 0, 0, 0.1);
        box-shadow: none;
    }

    .main-navigation ul ul a {
        color: #ddd;
        padding-left: 30px;
        /* Indent submenus */
    }

    /* Layout */
    .home-layout {
        grid-template-columns: 1fr;
        /* Stack sidebar below content */
    }
}

/* Mobile Small (Max Width 576px) */
@media (max-width: 576px) {
    .top-bar-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .site-title h1 {
        font-size: 1.1rem;
    }

    .emblem {
        height: 50px;
    }

    .nta-logo,
    .cuet-logo {
        height: 40px;
    }

    .news-ticker {
        flex-direction: column;
        align-items: flex-start;
    }

    .ticker-label {
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 5px;
    }
}

/* Dynamic Menu Tabs */
.nta-custom-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nta-custom-menu li {
    position: relative;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    align-items: flex-start;
}

.nta-custom-menu li:last-child {
    border-bottom: none;
}

.nta-custom-menu li::before {
    content: "•";
    color: #dc3545;
    /* text-danger */
    margin-right: 10px;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

.nta-custom-menu li a {
    text-decoration: none;
    color: #212529;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.2s;
}

.nta-custom-menu li a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* ============================================
   Premium Header Styling - All Screens
   ============================================ */

/* Header Title Section */
.header-title-section {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 2px solid rgba(5, 41, 99, 0.1);
}

/* Header Wrapper */
.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
}

/* Site Title - All Screens */
.site-title-wrapper {
    flex: 1;
    text-align: center;
}

.site-title-main {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.3;
}

.site-title-main a {
    text-decoration: none;
}

.site-title-main .site-name {
    background: linear-gradient(135deg, #052963 0%, #0a4299 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.site-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin: 0.25rem 0 0 0;
}

/* Premium Mobile Toggler */
.premium-toggler {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(5, 41, 99, 0.1) 0%, rgba(251, 172, 27, 0.1) 100%);
    border: 2px solid rgba(5, 41, 99, 0.2);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.premium-toggler:hover {
    background: linear-gradient(135deg, rgba(5, 41, 99, 0.15) 0%, rgba(251, 172, 27, 0.15) 100%);
    border-color: #052963;
    transform: scale(1.05);
}

.premium-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(5, 41, 99, 0.2);
}

/* Animated Hamburger Lines */
.toggler-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #052963 0%, #0a4299 100%);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* When menu is OPEN (not collapsed) - Transform to X */
.premium-toggler[aria-expanded="true"] .toggler-line:nth-child(1) {
    transform: translateY(20px) rotate(45deg);
}

.premium-toggler[aria-expanded="true"] .toggler-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.premium-toggler[aria-expanded="true"] .toggler-line:nth-child(3) {
    transform: translateY(-13px) rotate(-45deg);
}

/* Mobile Navigation Styles */
@media (max-width: 767px) {
    .main-navigation {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .site-title-wrapper {
        text-align: unset;
    }

    #navbar {
        margin-top: 1rem;
    }

    .navbar-nav {
        background: linear-gradient(135deg, rgba(5, 41, 99, 0.03) 0%, rgba(251, 172, 27, 0.03) 100%);
        border-radius: 12px;
        padding: 0.5rem;
    }

    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.875rem 1.25rem;
        border-radius: 8px;
        font-weight: 600;
        color: #052963;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .navbar-nav .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(135deg, #FBAC1B 0%, #ff9800 100%);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background: linear-gradient(135deg, rgba(5, 41, 99, 0.08) 0%, rgba(251, 172, 27, 0.08) 100%);
        padding-left: 1.75rem;
    }

    .navbar-nav .nav-link:hover::before,
    .navbar-nav .nav-link.active::before {
        transform: scaleY(1);
    }

    /* Dropdown Menu Mobile */
    .navbar-nav .dropdown-menu {
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(5, 41, 99, 0.1);
        border-radius: 8px;
        margin-top: 0.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav .dropdown-item {
        padding: 0.75rem 1.5rem;
        color: #052963;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .navbar-nav .dropdown-item:hover {
        background: linear-gradient(135deg, rgba(251, 172, 27, 0.1) 0%, rgba(251, 172, 27, 0.05) 100%);
        padding-left: 2rem;
    }
}

/* Desktop - Hide Only Toggler */
@media (min-width: 768px) {
    .premium-toggler {
        display: none !important;
    }

    .site-title-main {
        font-size: 1.75rem;
    }

    .site-subtitle {
        font-size: 0.95rem;
    }
}

/* Tablet Adjustments */
@media (max-width: 991px) and (min-width: 768px) {
    .site-title-main {
        font-size: 1.3rem;
    }

    .site-subtitle {
        font-size: 0.8rem;
    }
}

/* Mobile Small Screens */
@media (max-width: 576px) {
    .site-title-main {
        font-size: 1rem;
    }

    .site-subtitle {
        font-size: 0.7rem;
    }
}

/* Mobile Medium Screens */
@media (max-width: 767px) and (min-width: 577px) {
    .site-title-main {
        font-size: 1.2rem;
    }

    .site-subtitle {
        font-size: 0.75rem;
    }
}

/* ============================================
   Footer Link Styling
   ============================================ */

.site-footer a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-footer a:hover {
    color: #ff9800;
    text-decoration: underline;
}

.footer-widgets ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widgets ul li {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
    position: relative;
}

.footer-widgets ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
}

.footer-widgets h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(251, 172, 27, 0.3);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--accent-orange);
    font-weight: 600;
}