/**
 * ANSI Homepage Styles
 * Matching WordPress/Breakdance layout - Brown/Maroon Theme
 */

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

:root {
    --primary-brown: #8B4513;
    --dark-brown: #6B3A1F;
    --light-brown: #A0522D;
    --accent-brown: #CD853F;
    --text-dark: #333333;
    --text-brown: #8B4513;
    --text-light: #ffffff;
    --bg-cream: #FAF8F5;
    --bg-light: #f5f5f5;
    --border-gray: #e0e0e0;
    --announcement-bg: #8B4513;
    --box-bg: #D2B48C;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', 'Noto Sans Devanagari', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #fff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Top Header */
.top-header {
    background: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-section .main-logo {
    height: 65px;
    width: auto;
}

.logo-section .amrit-badge {
    height: 65px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    background: #f9f9f9;
}

.search-box input {
    padding: 8px 15px;
    border: none;
    outline: none;
    font-size: 14px;
    width: 200px;
    background: transparent;
}

.search-box button {
    background: transparent;
    color: #666;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
}

.search-box button:hover {
    color: var(--primary-brown);
}

.language-toggle {
    display: flex;
    gap: 8px;
}

.language-toggle a {
    padding: 5px 10px;
    color: #333;
    font-size: 14px;
}

.language-toggle a.active {
    font-weight: bold;
}

/* Main Navigation - Brown Theme, Single Line, Sentence Case */
.main-nav {
    background: var(--primary-brown);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 14px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    transition: background 0.3s;
    white-space: nowrap;
}

.nav-menu > li:hover > a,
.nav-menu > li.active > a {
    background: rgba(0,0,0,0.15);
}

.nav-menu > li > a i {
    font-size: 10px;
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1001;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    font-size: 13px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s, padding-left 0.3s;
}

.dropdown li a:hover {
    background: var(--bg-light);
    padding-left: 25px;
    color: var(--primary-brown);
}

.dropdown li:last-child a {
    border-bottom: none;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-caption h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 5px;
}

.slide-caption p {
    font-size: 16px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.slider-arrow:hover {
    background: rgba(255,255,255,0.5);
}

.slider-arrow.prev {
    left: 10px;
}

.slider-arrow.next {
    right: 10px;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-nav .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid #440000;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-nav .dot.active {
    background: #440000;
}

/* Main Content Section */
.main-content {
    background: var(--bg-cream);
    padding: 30px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 25px;
}

/* Left Sidebar - Leaders Section */
.left-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.leader-card {
    background: #fff;
    border: 1px solid #ddd;
    overflow: hidden;
}

.leader-card .leader-image {
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 12px;
}

.leader-card .leader-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.leader-card .leader-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-brown);
    margin-bottom: 3px;
    line-height: 1.3;
}

.leader-card .leader-info p {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

.infrastructure-links {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
}

.infrastructure-links h3 {
    font-size: 14px;
    color: var(--primary-brown);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-brown);
    text-transform: uppercase;
    font-weight: 600;
}

.infrastructure-links ul li {
    margin-bottom: 8px;
}

.infrastructure-links ul li a {
    display: block;
    font-size: 13px;
    color: var(--primary-brown);
    transition: color 0.3s;
    padding: 2px 0;
}

.infrastructure-links ul li a::before {
    content: "» ";
    color: var(--primary-brown);
}

.infrastructure-links ul li a:hover {
    color: var(--dark-brown);
}

/* Center Content */
.center-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.welcome-section {
    background: #fff;
    padding: 25px;
}

.welcome-section h2 {
    font-size: 18px;
    color: var(--primary-brown);
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.welcome-section p {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 12px;
    text-align: justify;
}

/* Feature Boxes */
.feature-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-box {
    background: #fff;
    border: 1px solid #ddd;
    overflow: hidden;
    text-align: center;
}

.feature-box img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.feature-box-content {
    padding: 15px;
}

.feature-box-content h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.feature-box-content p {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.feature-box-content .btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-brown);
    color: white;
    font-size: 13px;
    border-radius: 3px;
    transition: background 0.3s;
}

.feature-box-content .btn:hover {
    background: var(--dark-brown);
}

/* Info Boxes - Brown Background with Image */
.info-boxes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-box {
    background: linear-gradient(rgba(139, 69, 19, 0.85), rgba(139, 69, 19, 0.85)), 
                url('images/slider/bannernm.jpg') center/cover;
    padding: 20px;
    color: white;
}

.info-box h3 {
    font-size: 16px;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: 600;
}

.info-box ul li {
    margin-bottom: 8px;
}

.info-box ul li a {
    display: block;
    font-size: 13px;
    color: #fff;
    transition: color 0.3s;
}

.info-box ul li a::before {
    content: "» ";
}

.info-box ul li a:hover {
    color: #FFD700;
}

/* Right Sidebar - Announcements */
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.announcements-box {
    background: var(--primary-brown);
    overflow: hidden;
}

.announcements-box h3 {
    background: var(--dark-brown);
    color: #FFD700;
    padding: 12px 15px;
    font-size: 16px;
    text-align: center;
    font-weight: 600;
}

.announcements-scroll {
    height: 400px;
    overflow: hidden;
    padding: 15px;
}

.announcements-scroll ul {
    animation: scrollUp 25s linear infinite;
}

.announcements-scroll ul li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.announcements-scroll ul li a {
    color: #FFD700;
    font-size: 13px;
    line-height: 1.5;
    display: block;
}

.announcements-scroll ul li a:hover {
    color: #FFFFFF;
}

.announcements-scroll ul li a.white-text {
    color: #fff;
}

.announcements-scroll:hover ul {
    animation-play-state: paused;
}

@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* Partners Section */
.partners-section {
    background: #fff;
    padding: 25px 0;
    border-top: 1px solid #ddd;
}

.partners-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.partners-carousel img {
    height: 50px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.partners-carousel img:hover {
    opacity: 1;
}

/* Footer */
.main-footer {
    background: #4A4A4A;
    color: #fff;
    padding: 30px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-col h4 {
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 6px;
    font-size: 13px;
}

.footer-col ul li::before {
    content: "» ";
}

.footer-col ul li a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.footer-social a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #666;
    border-radius: 50%;
    font-size: 14px;
    color: #fff;
    transition: background 0.3s;
}

.footer-social a:hover {
    background: var(--primary-brown);
}

/* Fixed Social Strip */
.fixed-social {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fixed-social .social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    transition: transform 0.5s;
}

.fixed-social .social-icon:hover {
    transform: rotate(360deg);
}

.fixed-social .facebook {
    background: #3b5998;
}

.fixed-social .twitter {
    background: #000;
}

.fixed-social .youtube {
    background: #bb0000;
}

.fixed-social .instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 250px 1fr 280px;
    }
    
    .nav-menu > li > a {
        padding: 14px 12px;
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .left-sidebar {
        order: 2;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .infrastructure-links {
        grid-column: span 3;
    }
    
    .right-sidebar {
        order: 3;
    }
    
    .center-content {
        order: 1;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu > li > a {
        padding: 10px 10px;
        font-size: 12px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .main-nav .container {
        flex-direction: column;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu > li > a {
        padding: 12px 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .main-nav {
        position: relative;
        padding: 10px 0;
    }
    
    .left-sidebar {
        grid-template-columns: 1fr;
    }
    
    .infrastructure-links {
        grid-column: span 1;
    }
    
    .feature-boxes,
    .info-boxes-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .hero-slider {
        height: 250px;
    }
    
    .partners-carousel {
        gap: 20px;
    }
    
    .partners-carousel img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .search-box input {
        width: 150px;
    }
    
    .hero-slider {
        height: 200px;
    }
    
    .slide-caption {
        bottom: 20px;
        left: 20px;
    }
    
    .slide-caption h2 {
        font-size: 18px;
    }
}
