:root {
    --karnataka-yellow: #fff;
    --karnataka-red: #fff;
    --govt-blue: #011d07;
    --light-blue: #E3F2FD;
}

body {
    font-family: 'Noto Sans Kannada', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Top Utility Bar */
.utility-bar {
    background: linear-gradient(to right, var(--govt-blue), #0d1540);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

.utility-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: all 0.3s;
}

    .utility-link:hover {
        color: white;
        text-decoration: underline;
    }

.divider {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.3);
    margin: 0 15px;
}

.text-size button {
    background: transparent;
    border: none;
    color: white;
    font-weight: bold;
}

/* Header Styles */
.govt-header {
    background-color: #fff;
    padding: 10px 0;
    border-bottom: 3px solid var(--govt-blue);
}

.emblem-container {
    display: flex;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}

.state-emblem {
    height: 100px;
    margin-right: 20px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.header-titles {
    color: var(--govt-blue);
    flex-grow: 1;
}

.main-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.sub-title {
    font-size: 1.2rem;
    color: #000;
    font-weight: 500;
}

.header-buttons {
    display: flex;
    gap: 15px;
    margin-right: 20px;
}

.login-btn, .subscribe-btn {
    padding: 10px 25px;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.login-btn {
    background-color: var(--govt-blue);
    color: white;
}

.subscribe-btn {
    background-color: #28a745;
    color: white;
}

    .login-btn:hover, .subscribe-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }

/* Navigation */
.govt-navbar {
    background: linear-gradient(to right, var(--govt-blue), #0d1540);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-link {
    color: white !important;
    font-weight: 500;
    padding: 1rem 1.5rem !important;
    position: relative;
    transition: all 0.3s;
}

    .nav-link:hover {
        background-color: rgba(255,255,255,0.15);
    }

    .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 15%;
        right: 15%;
        height: 3px;
        background: var(--karnataka-yellow);
    }

.navbar-toggler {
    border-color: rgba(255,255,255,0.5);
    color: white;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(26, 35, 126, 0.85), rgba(26, 35, 126, 0.95)), url('https://images.unsplash.com/photo-1532629345422-7515f3d16bb6?q=80&w=1470');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    padding: 0 2rem;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.hero-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid white;
}

    .hero-btn:first-child {
        background-color: white;
        color: #1a5fb4;
    }

.hero-btn-outline {
    background-color: transparent;
    color: white;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.hero-logo {
    max-width: 150px;
    display: flex;
    align-items: center;
}

    .hero-logo img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

/* News Ticker */
.news-ticker {
    background: var(--govt-blue);
    color: white;
    padding: 12px 0;
    overflow: hidden;
    margin-bottom: 0px;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 25s linear infinite;
    padding-left: 100%;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.ticker-item {
    display: inline-block;
    padding: 0 30px;
    font-size: 1.1rem;
}

    .ticker-item:before {
        content: "•";
        margin-right: 15px;
        color: var(--karnataka-yellow);
    }

/* Magazine Grid */
.magazine-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.section-title {
    color: var(--govt-blue);
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 4px;
        background: var(--karnataka-red);
        border-radius: 2px;
    }

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.magazine-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--karnataka-red);
}

    .magazine-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    }

.magazine-cover {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.magazine-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--karnataka-red);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
}

.magazine-info {
    padding: 20px;
}

.magazine-title {
    color: var(--govt-blue);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.magazine-date {
    color: #666;
    margin-bottom: 15px;
    display: block;
}

.magazine-summary {
    margin-bottom: 20px;
    color: #444;
    line-height: 1.6;
}

.magazine-actions {
    display: flex;
    justify-content: space-between;
}

.magazine-btn {
    flex: 1;
    margin: 0 5px;
    text-align: center;
    padding: 8px 10px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-read {
    background: var(--govt-blue);
    color: white;
}

.btn-download {
    background: var(--karnataka-yellow);
    color: #333;
}

.btn-share {
    background: #4CAF50;
    color: white;
}

.magazine-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Main Content */
.govt-card {
    background: white;
    border-radius: 10px;
    border-top: 4px solid var(--karnataka-red);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 30px;
    margin-bottom: 30px;
}

/* Footer */
.govt-footer {
    background: linear-gradient(to right, var(--govt-blue), #0d1540);
    color: white;
    padding: 50px 0 20px;
}

.footer-links h5 {
    color: var(--karnataka-yellow);
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 10px;
}

    .footer-links h5:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 3px;
        background: var(--karnataka-red);
    }

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    padding: 5px 0;
}

    .footer-links a:hover {
        color: white;
        padding-left: 8px;
    }

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

    .social-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background: rgba(255,255,255,0.1);
        color: white;
        font-size: 1.2rem;
        transition: all 0.3s;
    }

        .social-links a:hover {
            background: var(--karnataka-yellow);
            color: var(--govt-blue);
            transform: translateY(-5px);
        }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .magazine-cover {
        height: 350px;
    }

    .magazine-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media(max - width: 768px) {
    .main-title {
        font-size: 1.8rem;
    }

    .emblem-container {
        flex-direction: column;
        text-align: center;
    }

    .state-emblem {
        margin: 0 0 15px 0;
    }

    .header-buttons {
        margin: 15px 0;
        width: 100%;
        justify-content: center;
    }

    .hero-title {
        font-size: 2rem;
        padding: 0 15px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 15px;
    }

    .hero-btn {
        display: block;
        width: 80%;
        margin: 15px auto;
    }

    .magazine-cover {
        height: 300px;
    }
}

@media(max - width: 576px) {
    .utility-bar .d-flex {
        flex-direction: column;
        gap: 10px;
    }

    .divider {
        display: none;
    }

    .magazine-grid {
        grid-template-columns: 1fr;
    }

    .magazine-actions {
        flex-direction: column;
        gap: 10px;
    }

    .magazine-btn {
        width: 100%;
        margin: 5px 0;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 66, 37, 0.85), rgba(0, 66, 37, 0.9)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23004225" opacity="0.1"/><path d="M20,20 Q50,5 80,20 T100,50 Q85,80 50,100 T0,50 Q15,20 50,0 T100,50" fill="none" stroke="%23007d3c" stroke-width="0.5" opacity="0.3"/></svg>');
    background-size: cover;
    background-position: center;
    padding: 60px 20px;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 650px;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.hero-btn {
    background-color: #ff9a00;
    color: #004225;
    border: none;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .hero-btn:hover {
        background-color: #ffad33;
        transform: translateY(-2px);
        box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    }

/* Login Panel */
.login-panel {
    width: 480px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 66, 37, 0.3);
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 66, 37, 0.2);
    position: relative;
    z-index: 10;
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
    color: #004225;
}

.login-title {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.login-subtitle {
    color: #666;
    font-size: 0.95rem;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: #004225;
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .login-form input:focus {
        outline: none;
        border-color: #007d3c;
        box-shadow: 0 0 0 3px rgba(0, 125, 60, 0.2);
    }

.login-btn {
    width: 100%;
    padding: 13px;
    background: #007d3c;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

    .login-btn:hover {
        background: #004225;
    }

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 0.9rem;
}

    .login-links a {
        color: #007d3c;
        text-decoration: none;
        transition: color 0.2s;
    }

        .login-links a:hover {
            color: #004225;
            text-decoration: underline;
        }

.login-divider {
    text-align: center;
    position: relative;
    margin: 25px 0;
    color: #777;
}

    .login-divider:before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: #ddd;
        z-index: -1;
    }

    .login-divider span {
        background: white;
        padding: 0 15px;
        position: relative;
    }

.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .social-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .social-btn i {
        font-size: 1.2rem;
    }

    .social-btn.facebook {
        color: #1877F2;
    }

    .social-btn.twitter {
        color: #1DA1F2;
    }

    .social-btn.google {
        color: #DB4437;
    }

/* Karnataka Decorative Elements */
.karnataka-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10" preserveAspectRatio="none"><path d="M0,0 Q50,10 100,0" fill="%23ff9a00" opacity="0.8"/></svg>');
    background-size: 100% 100%;
    z-index: 5;
}

.hero-decoration {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.2;
}

    .hero-decoration svg {
        width: 120px;
        height: 120px;
    }

/* Responsive design */
@media(max - width: 900px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .login-panel {
        width: 100%;
        max-width: 500px;
    }
}

@media(max - width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .login-panel {
        padding: 20px;
    }

    .login-title {
        font-size: 1.6rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-panel {
    animation: fadeIn 0.6s ease-out forwards;
}

.login-right {
    background-color: white;
    border-radius: 0 10px 10px 0;
    padding: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.dept-logo {
    height: 80px;
    margin-bottom: 15px;
}

.kannada-title {
    font-family: 'Nirmala UI', 'Tunga', sans-serif;
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.english-title {
    font-size: 1.3rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 15px;
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #6c757d;
}

    .login-divider::before, .login-divider::after {
        content: "";
        flex: 1;
        border-bottom: 1px solid #dee2e6;
    }

    .login-divider::before {
        margin-right: 10px;
    }

    .login-divider::after {
        margin-left: 10px;
    }

.form-control {
    height: 50px;
    border: 1px solid #ced4da;
    padding-left: 45px;
}

.input-group-text {
    position: absolute;
    left: 0;
    top: 0;
    height: 50px;
    width: 45px;
    background: transparent;
    border: none;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.form-floating > label {
    padding-left: 45px;
}

.btn-login {
    background-color: #06385e;
    border: none;
    height: 50px;
    font-weight: 500;
    font-size: 1.1rem;
}

    .btn-login:hover {
        background-color: #06385e;
    }

.forgot-link {
    color: var(--primary-blue);
    text-decoration: none;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

.remember-me {
    user-select: none;
}

@media (max-width: 992px) {
    .login-left

{
    border-radius: 10px 10px 0 0;
    padding: 40px 30px;
}

.login-right {
    border-radius: 0 0 10px 10px;
    padding: 40px 30px;
}

}

@media (max-width: 576px) {
    .login-left

{
    padding: 30px 20px;
}

.login-right {
    padding: 30px 20px;
}

.login-left h2 {
    font-size: 1.5rem;
}

.login-left p {
    font-size: 1rem;
}

}
