/* General Styles */
:root {
    --primary-color: #CE006E;
    /* Red endpoint */
    --secondary-color: #5e32e1;
    /* Purple endpoint */
    --primary-gradient: linear-gradient(225deg, #5e32e1 0%, #CE006E 100%);
    --primary-hover: #d9475c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Bootstrap Overrides */
.bg-primary {
    background: var(--primary-gradient) !important;
}

.text-primary {
    color: var(--primary-color) !important;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-primary {
    background: var(--primary-gradient) !important;
    border: none !important;
    color: var(--white) !important;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(225deg, #CE006E 0%, #5e32e1 100%) !important;
    /* Reverse gradient on hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 46, 4, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background: var(--primary-gradient) !important;
    color: var(--white) !important;
    border-color: transparent !important;
}

.page-item.active .page-link {
    background: var(--primary-gradient) !important;
    border-color: transparent !important;
}

/* Navbar */
.navbar {
    background: var(--primary-gradient) !important;
    backdrop-filter: blur(5px);
    transition: background 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white) !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
    margin-left: 15px;
}

.nav-link:hover {
    color: var(--white) !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 90vh;
    /* Almost full viewport height */
    background: url('../images/hero_bg.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1140px;
    padding: 0 15px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Search Widget */
.search-widget {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    display: inline-block;
    width: 100%;
    max-width: 950px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.search-form-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    justify-content: center;
    flex-wrap: wrap;
}

.search-field {
    flex: 1;
    min-width: 160px;
}

.search-field label {
    display: block;
    text-align: left;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #444;
    font-weight: 600;
}

.search-field select,
.search-field input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 1rem;
}

.search-field select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 90, 96, 0.2);
}

.btn-search {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 12px 40px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    height: 100%;
}

.btn-search:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 90, 96, 0.4);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    color: var(--secondary-color);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

.feature-box {
    padding: 30px;
    transition: transform 0.3s;
    border-radius: 10px;
}

.feature-box:hover {
    transform: translateY(-10px);
    background-color: #fff5f6;
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #222;
}

/* Success Stories */
.stories-section {
    padding: 80px 0;
    background-color: #fff0f3;
    /* Very light pink */
}

.story-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin: 15px;
    transition: transform 0.3s;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.story-img {
    height: 250px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

.story-content {
    padding: 25px;
    text-align: center;
}

.story-names {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Footer */
.footer {
    background-color: #880e4f;
    /* Dark Red */
    color: #fce4ec;
    padding: 60px 0 30px;
}

.footer h5 {
    color: var(--white);
    margin-bottom: 25px;
    font-weight: 700;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
    padding-top: 25px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--primary-gradient);
        padding: 20px;
        border-radius: 0 0 10px 10px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-section {
        height: auto;
        min-height: 80vh;
        padding: 100px 0 50px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .search-widget {
        padding: 20px;
    }

    .search-form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .search-field {
        width: 100%;
        min-width: 100%;
    }

    .btn-search {
        width: 100%;
        margin-top: 10px;
        padding: 12px;
    }

    .feature-box {
        margin-bottom: 20px;
    }

    .story-card {
        margin: 10px 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Horoscope Chart Styles (South Indian) */
.horoscope-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    font-size: 0.85rem;
}

.horoscope-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, minmax(60px, auto));
    border: 2px solid #444;
    background: #fff;
}

.grid-box {
    border: 1px solid #ccc;
    padding: 5px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.rasi-label {
    font-size: 0.65rem;
    color: #888;
    position: absolute;
    top: 2px;
    left: 2px;
    text-transform: uppercase;
}

/* Center Space (Merges 4 cells) */
.center-space {
    grid-column: 2 / 4;
    grid-row: 2 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    background: #f9f9f9;
    border: 1px solid #ccc;
}

/* Positioning for South Indian Chart */
/* Row 1 */
.pos-12 {
    grid-column: 1;
    grid-row: 1;
}

/* Meenam */
.pos-1 {
    grid-column: 2;
    grid-row: 1;
}

/* Mesham */
.pos-2 {
    grid-column: 3;
    grid-row: 1;
}

/* Rishabam */
.pos-3 {
    grid-column: 4;
    grid-row: 1;
}

/* Mithunam */

/* Row 2 */
.pos-11 {
    grid-column: 1;
    grid-row: 2;
}

/* Kumbam */
.pos-4 {
    grid-column: 4;
    grid-row: 2;
}

/* Kadagam */

/* Row 3 */
.pos-10 {
    grid-column: 1;
    grid-row: 3;
}

/* Makaram */
.pos-5 {
    grid-column: 4;
    grid-row: 3;
}

/* Simmam */

/* Row 4 */
.pos-9 {
    grid-column: 1;
    grid-row: 4;
}

/* Dhanusu */
.pos-8 {
    grid-column: 2;
    grid-row: 4;
}

/* Viruchigam */
.pos-7 {
    grid-column: 3;
    grid-row: 4;
}

/* Thulaam */
.pos-6 {
    grid-column: 4;
    grid-row: 4;
}

/* Kanni */

/* Profile Image Auto Fit */
.profile-img-fit {
    height: 250px;
    object-fit: contain;
    background-color: #f8f9fa;
    width: 100%;
}