/* ========================================
   DOCUMENT-STYLE HEADER CSS
   3 ROW LAYOUT WITH WATERMARKS
   ======================================== */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #FAFAFA;
    color: #333;
}

/* ========================================
   ROW 1: TOP HEADER
   ======================================== */

.header-row-1 {
    background-color: #FFFFFF;
    border-bottom: 1px solid #DDDDDD;
    padding: 20px 0;
    position: relative;
}

/* LEFT: Logo Section */
.logo-section {
    text-align: center;
    position: relative;
}

.logo-section::before {
    content: 'ॐ';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 120px;
    font-family: 'Noto Sans Devanagari', serif;
    color: #FF9933;
    opacity: 0.50;
    z-index: 0;
}

.site-logo {
    max-height: 80px;
    width: auto;
    position: relative;
    z-index: 1;
}

/* CENTER: Title Section */
.title-section {
    text-align: center;
    position: relative;
    padding: 10px 20px;
}

.title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/images/home/heading-watermark.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.50;
    z-index: 0;
}

.site-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF9933;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: 1px;
}

.site-subtitle {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
}

/* RIGHT: Hits Section */
.hits-section {
    text-align: center;
    position: relative;
    padding: 15px;
    border: 1px solid #E0E0E0;
    background-color: #FEFEFE;
}

.hits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/images/home/right-corner-watermark.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.50;
    z-index: 0;
}

.hits-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #800020;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.btn-header-action {
    display: block;
    width: 100%;
    padding: 8px 15px;
    margin-bottom: 10px;
    background-color: #FF9933;
    color: #FFFFFF;
    border: 1px solid #FF9933;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-header-action:hover {
    background-color: #E68A2E;
    color: #FFFFFF;
    text-decoration: none;
}

.language-selector {
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

.language-selector .form-select {
    border: 1px solid #DDDDDD;
    font-size: 0.85rem;
}

/* ========================================
   ROW 2: MAIN MENU BAR
   ======================================== */

.header-row-2 {
    background-color: #F5F5F5;
    border-bottom: 2px solid #CCCCCC;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-navigation {
    overflow-x: auto;
    white-space: nowrap;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.nav-menu li {
    display: inline-block;
}

.nav-link-item {
    display: inline-block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    border-right: 1px solid #DDDDDD;
    transition: all 0.3s ease;
    font-family: Georgia, 'Times New Roman', serif;
}

.nav-menu li:last-child .nav-link-item {
    border-right: none;
}

.nav-link-item:hover,
.nav-link-item.active {
    color: #FF9933;
    text-decoration: underline;
    background-color: #FFFFFF;
}

/* ========================================
   ROW 3: CONTENT STRIP
   ======================================== */

.header-row-3 {
    background-color: #FFFFFF;
    border-bottom: 1px solid #DDDDDD;
    padding: 15px 0;
    min-height: 250px;
}

/* LEFT: Vertical Menu */
.vertical-menu {
    border: 1px solid #E0E0E0;
    background-color: #FAFAFA;
    padding: 15px 10px;
}

.vertical-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vertical-menu-list li {
    border-bottom: 1px solid #E8E8E8;
    padding: 10px 0;
}

.vertical-menu-list li:last-child {
    border-bottom: none;
}

.vertical-menu-list a {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    transition: color 0.3s ease;
}

.vertical-menu-list a:hover {
    color: #FF9933;
    text-decoration: underline;
}

/* CENTER: Content Placeholder */
.content-placeholder {
    border: 1px dashed #CCCCCC;
    background-color: #FDFDFD;
    padding: 40px;
    text-align: center;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-text {
    color: #999;
    font-size: 1.1rem;
    font-style: italic;
}

/* CENTER: Main Content Area */
.content-area-main {
    border: 1px solid #D0D0D0;
    background-color: #FEFEFE;
    padding: 0;
    min-height: 500px;
}

/* History & Background Section */
.history-background-section {
    position: relative;
    padding: 30px 35px;
    overflow: hidden;
}

.history-background-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/images/home/background-texture.png');
    background-size: 400px 400px;
    background-repeat: repeat;
    background-position: center;
    opacity: 0.50;
    z-index: 0;
    pointer-events: none;
}

.content-heading {
    font-size: 1.8rem;
    font-weight: 700;
    color: #800020;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid #FFD700;
    position: relative;
    z-index: 1;
    font-family: Georgia, 'Times New Roman', serif;
    text-align: center;
}

.content-text-area {
    max-height: 450px;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    padding-right: 10px;
}

.content-text-area p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    margin-bottom: 18px;
    font-family: Georgia, 'Times New Roman', serif;
    text-indent: 30px;
}

.content-text-area p:first-child::first-letter {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FF9933;
    float: left;
    line-height: 1;
    margin-right: 8px;
    margin-top: 5px;
}

/* Custom Scrollbar for Content Area */
.content-text-area::-webkit-scrollbar {
    width: 8px;
}

.content-text-area::-webkit-scrollbar-track {
    background: #F5F5F5;
    border-radius: 4px;
}

.content-text-area::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 4px;
}

.content-text-area::-webkit-scrollbar-thumb:hover {
    background: #FF9933;
}

/* RIGHT: Offers Box */
.offers-box {
    border: 1px solid #E0E0E0;
    background-color: #FFF9F0;
    padding: 15px;
}

.offers-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #800020;
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 8px;
}

.offers-content {
    text-align: center;
}

.offers-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #E0E0E0;
    margin-bottom: 10px;
}

.offers-description {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin: 0;
}

/* Offer items styling (no images) */
.offer-item {
    background: linear-gradient(135deg, #FFF9F0 0%, #FFEFD5 100%);
    border: 1px solid #FFD700;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
}

.offer-badge {
    display: inline-block;
    background: #FF9933;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.offer-text {
    font-size: 0.85rem;
    color: #333;
    margin: 8px 0 0 0;
    font-weight: 500;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets */
@media (max-width: 992px) {
    .site-main-title {
        font-size: 2rem;
    }
    
    .site-subtitle {
        font-size: 0.85rem;
    }
    
    .nav-menu {
        justify-content: flex-start;
    }
    
    .header-row-3 {
        min-height: auto;
    }
    
    .vertical-menu,
    .offers-box {
        margin-bottom: 20px;
    }
    
    .content-area-main {
        margin-bottom: 20px;
    }
    
    .content-text-area {
        max-height: 350px;
    }
}

/* Mobile Phones */
@media (max-width: 768px) {
    .site-logo {
        max-height: 60px;
    }
    
    .site-main-title {
        font-size: 1.5rem;
    }
    
    .site-subtitle {
        font-size: 0.75rem;
    }
    
    .nav-link-item {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .content-placeholder {
        padding: 20px;
        min-height: 150px;
    }
    
    .placeholder-text {
        font-size: 0.95rem;
    }
    
    .content-heading {
        font-size: 1.4rem;
    }
    
    .content-text-area {
        max-height: 300px;
    }
    
    .content-text-area p {
        font-size: 0.9rem;
        text-indent: 20px;
    }
}

/* Extra Small Devices */
@media (max-width: 576px) {
    .header-row-1,
    .header-row-2,
    .header-row-3 {
        padding: 10px 0;
    }
    
    .logo-section,
    .title-section,
    .hits-section {
        margin-bottom: 15px;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-link-item {
        border-right: none;
        border-bottom: 1px solid #DDDDDD;
        text-align: center;
    }
    
    .nav-menu li:last-child .nav-link-item {
        border-bottom: none;
    }
}

/* Print Styles */
@media print {
    .header-row-2,
    .header-row-3 {
        display: none;
    }
    
    .header-row-1 {
        border: none;
    }
}
