/* Define Sree Krushnadevaraya for Telugu */
@font-face {
    font-family: 'Sree Krushnadevaraya';
    src: url('../fonts/Sree_Krushnadevaraya.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Set default font variables */
:root {
    --font-english: "Times New Roman", Times, serif;
    --font-telugu: "Sree Krushnadevaraya", "Gautami", serif;
    --primary-color: #F59246;
}

/* Language-specific font classes */
.lang-en {
    font-family: var(--font-english);
}

.lang-te {
    font-family: var(--font-telugu);
}

.lang-en, h3.lang-en, h6.lang-en, .post-title.lang-en {
    font-family: var(--font-english) !important;
}

.lang-te, h3.lang-te, h6.lang-te, .post-title.lang-te {
    font-family: var(--font-telugu) !important;
}

/* Carousel Styles */
* { box-sizing: border-box; }
body { font-family: sans-serif; }
h3 { margin-bottom: 10%; }

.object {
    position: relative;
    width: 750px !important;   /* Increased rectangle width */
    height: 350px !important;  /* Keep height as is or adjust if needed */
    margin: -1px auto;
    perspective: 1000px;
    overflow: hidden;
}

.carousel {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 1s;
}

.cell {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
}

.cell img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    border: none; /* Add this line to ensure no border on images */
}

/* Update translateZ to half the new width (375px) */
.cell:nth-child(1) { transform: rotateY(0deg) translateZ(375px); }
.cell:nth-child(2) { transform: rotateY(90deg) translateZ(375px); }
.cell:nth-child(3) { transform: rotateY(180deg) translateZ(375px); }
.cell:nth-child(4) { transform: rotateY(270deg) translateZ(375px); }

.carousel-title {
    width: 100%;
    text-align: center;
    color: #000000;
    font-size: 1.5rem;
    font-weight: bold;
    pointer-events: none;
    margin-top: 1rem;
}
.dark .carousel-title {
    color: #fff !important;
}

.force-two-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    word-break: break-word;
    min-height: 2.5em; /* Adjust based on font-size */
}
.hidden {
    display: none !important;
}

.notification-item {
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: rgba(0,0,0,0.02);
}

.max-h-300px {
    max-height: 300px;
}

.overflow-auto {
    overflow: auto;
}

/* Dark mode adjustments */
.dark .notification-item:hover {
    background-color: rgba(255,255,255,0.05);
}
/* Add this to your custom.css file - Fixed Notification Dropdown Styles */

/* Notification Dropdown Container */
.notification-container {
    position: relative;
    display: inline-block;
}

/* Notification Dropdown Styles - Fixed */
.notification-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 9999 !important; /* Increased z-index */
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    width: 320px;
    max-width: 90vw;
    max-height: 400px;
    overflow: hidden;
}

.notification-dropdown.show {
    display: block !important;
    animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark mode styles */
.dark .notification-dropdown {
    background: #1a1a1a;
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.3);
    color: white;
}

/* Dropdown header */
.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dark .dropdown-header {
    border-bottom-color: rgba(255,255,255,0.1);
}

/* Notification list */
.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.notification-item:hover {
    background-color: rgba(0,0,0,0.02);
}

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

.notification-item.unread {
    background-color: rgba(13, 110, 253, 0.05);
}

.dark .notification-item:hover {
    background-color: rgba(255,255,255,0.05);
}

.dark .notification-item {
    border-bottom-color: rgba(255,255,255,0.05);
}

.dark .notification-item.unread {
    background-color: rgba(13, 110, 253, 0.1);
}

/* Notification content */
.notification-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    color: #1a1a1a;
}

.notification-message {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.notification-time {
    font-size: 0.75rem;
    color: #999;
}

.dark .notification-title {
    color: white;
}

.dark .notification-message {
    color: #ccc;
}

.dark .notification-time {
    color: #999;
}

/* Mark as read button */
.mark-read-btn {
    background: none;
    border: none;
    color: #0d6efd;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.mark-read-btn:hover {
    text-decoration: underline;
}

/* Empty state */
.notification-empty {
    padding: 2rem;
    text-align: center;
    color: #666;
}

.dark .notification-empty {
    color: #999;
}

/* Footer */
.dropdown-footer {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.dark .dropdown-footer {
    border-top-color: rgba(255,255,255,0.1);
}

/* Badge styles */
.notification-badge {
    background:rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
    color: white;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.notification-badge.hidden {
    display: none !important;
}

/* Bell icon styles */
.notification-bell-icon {
    color: white;
    font-size: 16px;
}

/* Ensure proper positioning */
.uc-navbar-item {
    position: relative;
}

/* Override any conflicting styles */
.uc-drop {
    position: static !important;
}
html.dark .carousel-title,
body.dark .carousel-title,
.dark .carousel-title,
[data-theme="dark"] .carousel-title {
    color: #ffffff !important;
}

/* Language Dropdown Fixes */
.footer-lang [data-uc-drop] {
    z-index: 9999 !important;
}

.footer-lang .uc-drop {
    z-index: 9999 !important;
}

/* Fix dropdown positioning */
.uc-drop {
    position: absolute !important;
}

/* Force header dropdown to appear below the trigger */
.uc-navbar-container .uc-drop {
    top: 100% !important;
    bottom: auto !important;
    left: auto !important;
    right: 0 !important;
    transform: none !important;
    margin-top: 5px !important;
}

/* Force footer dropdowns to appear above the trigger */
.uc-footer-bottom .uc-drop {
    top: auto !important;
    bottom: 100% !important;
    left: auto !important;
    right: 0 !important;
    transform: none !important;
    margin-bottom: 5px !important;
}

/* Specific fix for language dropdown positioning */
.footer-lang .uc-drop {
    position: absolute !important;
    transform: translateY(0) !important;
}

/* Add JavaScript override for dropdown positioning */
[data-uc-drop] {
    position: relative !important;
}

/* Ensure proper z-index and positioning */
.uc-drop.uc-open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    z-index: 9999 !important;
}

/* Force all header dropdowns to drop down */
.uc-navbar .uc-drop.uc-open {
    top: calc(100% + 5px) !important;
    bottom: auto !important;
    transform: translateY(0) !important;
}

/* Force all footer dropdowns to drop up */
.uc-footer .uc-drop.uc-open {
    top: auto !important;
    bottom: calc(100% + 5px) !important;
    transform: translateY(0) !important;
}

/* Ensure dropdown links are visible in both light and dark modes */
.footer-lang ul li a {
    display: block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-lang ul li a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dark .footer-lang ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Fix for dropdown positioning and visibility */
.footer-lang .uc-drop.uc-open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Override any conflicting styles for language dropdown */
.footer-lang [data-uc-drop] {
    color: inherit !important;
}

.footer-lang [data-uc-drop] a {
    color: inherit !important;
}

/* Dark mode specific fixes */
.dark .footer-lang [data-uc-drop] {
    background-color: #1f2937 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .footer-lang [data-uc-drop] a {
    color: #ffffff !important;
}

.dark .footer-lang [data-uc-drop] a:hover {
    color: #3b82f6 !important;
}

/* Light mode specific fixes */
.footer-lang [data-uc-drop] {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-lang [data-uc-drop] a {
    color: #1f2937 !important;
}

.footer-lang [data-uc-drop] a:hover {
    color: #3b82f6 !important;
}

/* Additional fixes for overall dropdown behavior */
[data-uc-drop] {
    z-index: 9999 !important;
}

.uc-drop {
    z-index: 9999 !important;
}

/* Ensure proper text colors for all dropdown items */
.uc-drop a,
.uc-drop li a {
    text-decoration: none;
    display: block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

/* Light mode dropdown styling */
.uc-drop {
    background-color: #ffffff;
    color: #1f2937;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.uc-drop a,
.uc-drop li a {
    color: #1f2937 !important;
}

.uc-drop a:hover,
.uc-drop li a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #3b82f6 !important;
}

/* Dark mode dropdown styling */
.dark .uc-drop {
    background-color: #1f2937 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dark .uc-drop a,
.dark .uc-drop li a {
    color: #ffffff !important;
}

.dark .uc-drop a:hover,
.dark .uc-drop li a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #3b82f6 !important;
}

/* Breadcrumb Styles - Ensure consistent text colors */
.breadcrumbs {
    color: #000000 !important; /* Black for light mode */
}

.breadcrumbs a {
    color: #000000 !important; /* Black for light mode */
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #3b82f6 !important; /* Blue for hover */
    text-decoration: none;
}

.breadcrumbs span {
    color: #000000 !important; /* Black for current page */
}

.breadcrumbs i {
    color: #000000 !important; /* Black for separators */
}

/* Dark mode breadcrumb styles - Updated for uc-dark class */
.dark .breadcrumbs,
.uc-dark .breadcrumbs {
    color: #ffffff !important;
}

.dark .breadcrumbs a,
.uc-dark .breadcrumbs a {
    color: #ffffff !important;
}

.dark .breadcrumbs a:hover,
.uc-dark .breadcrumbs a:hover {
    color: #3b82f6 !important;
}

.dark .breadcrumbs span,
.uc-dark .breadcrumbs span {
    color: #d1d5db !important; /* Gray-300 for current page in dark mode */
}

.dark .breadcrumbs i,
.uc-dark .breadcrumbs i {
    color: #9ca3af !important; /* Gray-400 for separators in dark mode */
}

/* Ensure breadcrumb container has proper text color */
.breadcrumbs.panel {
    color: #000000 !important;
}

.dark .breadcrumbs.panel,
.uc-dark .breadcrumbs.panel {
    color: #ffffff !important;
}

/* More specific dark mode overrides for all possible selectors */
html.dark .breadcrumbs,
body.dark .breadcrumbs,
html.uc-dark .breadcrumbs,
body.uc-dark .breadcrumbs,
[data-theme="dark"] .breadcrumbs {
    color: #ffffff !important;
}

html.dark .breadcrumbs a,
body.dark .breadcrumbs a,
html.uc-dark .breadcrumbs a,
body.uc-dark .breadcrumbs a,
[data-theme="dark"] .breadcrumbs a {
    color: #ffffff !important;
}

html.dark .breadcrumbs span,
body.dark .breadcrumbs span,
html.uc-dark .breadcrumbs span,
body.uc-dark .breadcrumbs span,
[data-theme="dark"] .breadcrumbs span {
    color: #d1d5db !important;
}

html.dark .breadcrumbs i,
body.dark .breadcrumbs i,
html.uc-dark .breadcrumbs i,
body.uc-dark .breadcrumbs i,
[data-theme="dark"] .breadcrumbs i {
    color: #9ca3af !important;
}

/* Override any inherited text colors in dark mode */
.dark .breadcrumbs *,
.uc-dark .breadcrumbs *,
html.dark .breadcrumbs *,
html.uc-dark .breadcrumbs *,
body.dark .breadcrumbs *,
body.uc-dark .breadcrumbs *,
[data-theme="dark"] .breadcrumbs * {
    color: inherit !important;
}

.dark .breadcrumbs ul,
.dark .breadcrumbs li,
.uc-dark .breadcrumbs ul,
.uc-dark .breadcrumbs li,
html.dark .breadcrumbs ul,
html.dark .breadcrumbs li,
html.uc-dark .breadcrumbs ul,
html.uc-dark .breadcrumbs li,
body.dark .breadcrumbs ul,
body.dark .breadcrumbs li,
body.uc-dark .breadcrumbs ul,
body.uc-dark .breadcrumbs li,
[data-theme="dark"] .breadcrumbs ul,
[data-theme="dark"] .breadcrumbs li {
    color: inherit !important;
}

/* Force breadcrumb colors with JavaScript backup - highest specificity */
.breadcrumbs[data-theme-light] {
    color: #000000 !important;
}

.breadcrumbs[data-theme-light] a,
.breadcrumbs[data-theme-light] span,
.breadcrumbs[data-theme-light] i {
    color: #000000 !important;
}

.breadcrumbs[data-theme-dark] {
    color: #ffffff !important;
}

.breadcrumbs[data-theme-dark] a,
.breadcrumbs[data-theme-dark] span,
.breadcrumbs[data-theme-dark] i {
    color: #ffffff !important;
}

/* Additional fallback for inline styles */
.breadcrumbs a[style*="color"],
.breadcrumbs span[style*="color"],
.breadcrumbs i[style*="color"] {
    color: inherit !important;
}

/* Newsletter form styles */
.newsletter-form {
    position: relative;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.newsletter-form button[type="submit"] {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.newsletter-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Newsletter message styles */
.alert {
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

.alert-success {
    background-color: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Dark mode newsletter styles */
.dark .newsletter-form input[type="email"],
.uc-dark .newsletter-form input[type="email"] {
    background-color: #374151;
    border-color: #4b5563;
    color: #ffffff;
}

.dark .newsletter-form input[type="email"]:focus,
.uc-dark .newsletter-form input[type="email"]:focus {
    border-color: #3b82f6;
    background-color: #374151;
}

.dark .newsletter-form input[type="email"]::placeholder,
.uc-dark .newsletter-form input[type="email"]::placeholder {
    color: #9ca3af;
}

.dark .alert-success,
.uc-dark .alert-success {
    background-color: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
    color: #10b981;
}

.dark .alert-danger,
.uc-dark .alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* Responsive newsletter form */
@media (max-width: 768px) {
    .newsletter-form input[type="email"],
    .newsletter-form button[type="submit"] {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
}

/* Dark mode detection and override styles */
@media (prefers-color-scheme: dark) {
    .breadcrumbs:not([data-theme-light]) {
        color: #ffffff !important;
    }

    .breadcrumbs:not([data-theme-light]) a,
    .breadcrumbs:not([data-theme-light]) span,
    .breadcrumbs:not([data-theme-light]) i {
        color: inherit !important;
    }
}

.logo-img {
    width: 260px;
    max-width: 90vw;
    height: auto;
}
@media (max-width: 600px) {
    .logo-img {
        width: 180px;
        min-width: 140px;
    }
    .logo-tagline {
        display: block;
        font-size: 0.9rem;
        color: #888;
        text-align: center;
        margin-top: 2px;
        letter-spacing: 0.5px;
    }
}
@media (max-width: 400px) {
    .logo-img {
        width: 120px;
    }
}

/* Utility classes for easy use */
.text-primary {
    color: var(--primary-color) !important;
}
.bg-primary {
    background-color: var(--primary-color) !important;
}
.border-primary {
    border-color: var(--primary-color) !important;
}

/* In custom.css */
.btn-primary,
.btn-alt-primary,
.text-primary,
.bg-primary {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

.tag-badge {
    background: var(--primary-color);
    color: #fff;
    border-radius: 12px;
    padding: 2px 12px;
    font-size: 0.95em;
    font-weight: 500;
    display: inline-block;
    margin-right: 2px;
    margin-bottom: 2px;
}

