/*
Theme Name: Luxury DB Theme
Author: CoreHari
Version: 1.1
Description: A clean custom WordPress theme for the Student Database platform.
Text Domain: luxury-db-theme
*/

/* =========================
   RESET & BASE
========================= */

*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	overflow-x: hidden;
	scroll-behavior: smooth;
}

body {
	font-family: 'Poppins', sans-serif;
	background: #f5f8fc;
	color: #1d2b3a;
	overflow-x: hidden;
	width: 100%;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* =========================
   HEADER
========================= */

header {
	background: white;
	padding: 18px 8%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	position: sticky;
	top: 0;
	z-index: 50;
	width: 100%;
}

.logo {
	font-size: 24px;
	font-weight: 700;
	color: #0a2a66;
	white-space: nowrap;
}

/* =========================
   NAVIGATION
========================= */

nav ul,
nav .menu {
	list-style: none;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	gap: 4px;
}

nav li {
	display: inline;
}

nav a,
nav .menu a {
	margin: 0 10px;
	text-decoration: none;
	color: #1d2b3a;
	font-weight: 500;
	font-size: 15px;
}

.whatsapp-btn {
	background: #25D366;
	color: white !important;
	padding: 10px 16px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	white-space: nowrap;
	font-size: 14px;
}

/* =========================
   HERO
========================= */

.hero {
	padding: 90px 8%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	width: 100%;
}

.hero-left {
	width: 55%;
	min-width: 0;
}

.hero-left h1 {
	font-size: 52px;
	line-height: 1.2;
	color: #081f4d;
	margin-bottom: 20px;
	word-break: break-word;
}

.hero-left p {
	font-size: 18px;
	line-height: 1.8;
	color: #546172;
	margin-bottom: 30px;
}

.cta-group {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.cta-group a {
	display: inline-block;
	padding: 14px 24px;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 600;
	white-space: nowrap;
}

.primary {
	background: #0a2a66;
	color: white;
}

.secondary {
	border: 2px solid #0a2a66;
	color: #0a2a66;
}

.hero-right {
	width: 40%;
	min-width: 0;
	flex-shrink: 0;
}

/* =========================
   DASHBOARD CARD
========================= */

.dashboard {
	background: white;
	padding: 30px;
	border-radius: 18px;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
	width: 100%;
}

.dashboard h3 {
	margin-bottom: 20px;
	color: #0a2a66;
}

.metric {
	background: #f5f8fc;
	padding: 16px;
	border-radius: 12px;
	margin-bottom: 12px;
	word-break: break-word;
}

/* =========================
   STATS
========================= */

.stats {
	padding: 20px 8%;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	width: 100%;
}

.stat-card {
	background: white;
	padding: 25px;
	border-radius: 14px;
	text-align: center;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
	min-width: 0;
}

.stat-card h2 {
	color: #0a2a66;
	margin-bottom: 10px;
	word-break: break-word;
}

/* =========================
   SECTIONS & CARDS
========================= */

.section {
	padding: 80px 8%;
	width: 100%;
}

.section-title {
	text-align: center;
	margin-bottom: 50px;
}

.section-title h2 {
	font-size: 38px;
	color: #081f4d;
}

.cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
	width: 100%;
}

.card {
	background: white;
	padding: 30px;
	border-radius: 18px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.card h3 {
	color: #0a2a66;
	margin-bottom: 15px;
}

.card ul {
	padding-left: 18px;
	margin-bottom: 25px;
	color: #546172;
	flex: 1;
}

.card button,
.card .view-database-btn {
	display: inline-block;
	background: #0a2a66;
	color: white;
	border: none;
	padding: 12px 18px;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	align-self: flex-start;
	width: 100%;
	text-align: center;
}

/* =========================
   WHY SECTION
========================= */

.why {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 25px;
	width: 100%;
}

.why-box {
	background: white;
	padding: 28px;
	border-radius: 16px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
	min-width: 0;
}

/* =========================
   CONTACT
========================= */

.contact {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	width: 100%;
}

form {
	background: white;
	padding: 35px;
	border-radius: 18px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
	width: 100%;
}

input,
textarea,
select {
	width: 100%;
	padding: 14px;
	margin-bottom: 16px;
	border: 1px solid #dce3ee;
	border-radius: 10px;
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	-webkit-appearance: none;
	appearance: none;
	max-width: 100%;
}

textarea {
	height: 120px;
	resize: vertical;
}

.submit-btn {
	background: #0a2a66;
	color: white;
	border: none;
	padding: 14px 24px;
	border-radius: 10px;
	font-weight: 600;
	cursor: pointer;
	font-family: 'Poppins', sans-serif;
	font-size: 16px;
	width: 100%;
}

.contact-box {
	background: #0a2a66;
	color: white;
	padding: 35px;
	border-radius: 18px;
	min-width: 0;
	word-break: break-word;
}

/* =========================
   NO POSTS
========================= */

.no-posts {
	grid-column: 1 / -1;
	text-align: center;
	padding: 40px;
	background: white;
	border-radius: 18px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
	color: #546172;
}

/* =========================
   FOOTER
========================= */

footer {
	background: #081f4d;
	color: white;
	padding: 50px 8%;
	margin-top: 60px;
	width: 100%;
}

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

footer h3 {
	margin-bottom: 15px;
}

footer p,
footer a {
	line-height: 1.8;
	color: #d7dff1;
	word-break: break-word;
}

footer a {
	text-decoration: none;
}

/* =====================================================
   RESPONSIVE SYSTEM V2 (CLEAN CONSOLIDATED VERSION)
===================================================== */

/* TABLET */
@media (max-width: 1024px) {

	header {
		padding: 16px 5%;
	}

	.hero {
		padding: 70px 5%;
		gap: 30px;
	}

	.hero-left h1 {
		font-size: 42px;
	}

	.hero-left p {
		font-size: 16px;
	}

	.stats {
		grid-template-columns: repeat(2, 1fr);
		padding: 20px 5%;
	}

	.cards {
		grid-template-columns: repeat(2, 1fr);
	}

	.contact {
		grid-template-columns: 1fr;
	}

	.footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.section {
		padding: 60px 5%;
	}
}


/* MOBILE */
@media (max-width: 768px) {

	html,
	body {
		width: 100%;
		overflow-x: hidden;
	}

	header {
		flex-direction: column;
		align-items: flex-start;
		padding: 14px 5%;
		gap: 12px;
	}

	nav ul,
	nav .menu {
		flex-wrap: wrap;
		width: 100%;
	}

	.hero {
		flex-direction: column;
		text-align: center;
		padding: 50px 5%;
		gap: 25px;
	}

	.hero-left,
	.hero-right {
		width: 100%;
		min-width: 0;
		flex: none;
	}

	.hero-left h1 {
		font-size: 32px;
		line-height: 1.25;
	}

	.hero-left p {
		font-size: 15px;
	}

	.cta-group {
		flex-direction: column;
		width: 100%;
		align-items: center;
	}

	.cta-group a,
	.primary,
	.secondary {
		width: 100%;
		max-width: 320px;
		text-align: center;
	}

	.dashboard {
		padding: 20px;
		width: 100%;
	}

	.stats {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.section {
		padding: 50px 5%;
	}

	.section-title h2 {
		font-size: 28px;
	}

	.cards {
		grid-template-columns: 1fr;
	}

	.card {
		padding: 22px;
	}

	.card h3 {
		word-break: break-word;
	}

	.why {
		grid-template-columns: 1fr;
	}

	.contact {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	form,
	.contact-box {
		padding: 24px;
		width: 100%;
	}

	input,
	textarea,
	select {
		font-size: 16px;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		text-align: center;
	}

	footer {
		padding: 40px 5%;
	}

	/* Slider Fix */

	.horizontal-scroll-container {
		display: flex;
		overflow-x: auto;
		gap: 16px;
		padding-bottom: 10px;
		-webkit-overflow-scrolling: touch;
	}

	.horizontal-scroll-container article {
		flex: 0 0 85%;
		min-width: 85%;
		max-width: 85%;
	}

	/* Single Database Fix */

	.database-landing-card {
		width: 100%;
		padding: 24px 16px;
		box-sizing: border-box;
	}

	.meta-info-grid {
		grid-template-columns: 1fr !important;
	}

	.whatsapp-btn,
	.view-database-btn {
		width: 100%;
		max-width: 100%;
		text-align: center;
		white-space: normal;
	}
}


/* SMALL MOBILE */
@media (max-width: 480px) {

	header {
		padding: 12px 4%;
	}

	.logo {
		font-size: 20px;
	}

	.hero {
		padding: 35px 4%;
	}

	.hero-left h1 {
		font-size: 26px;
		line-height: 1.3;
	}

	.hero-left p {
		font-size: 14px;
	}

	.section {
		padding: 35px 4%;
	}

	.section-title h2 {
		font-size: 22px;
	}

	.card {
		padding: 18px;
	}

	.dashboard {
		padding: 16px;
	}

	.metric {
		font-size: 13px;
	}

	form,
	.contact-box {
		padding: 18px;
	}

	footer {
		padding: 30px 4%;
	}

	.horizontal-scroll-container article {
		flex: 0 0 90%;
		min-width: 90%;
		max-width: 90%;
	}
}

/* ==========================================
   INDEX + SINGLE PAGE FINAL FIX
========================================== */

.single-database-wrapper{
    padding:60px 8%;
    background:#f5f8fc;
    min-height:80vh;
}

.database-landing-card{
    background:#fff;
    padding:50px;
    border-radius:24px;
    box-shadow:0 15px 40px rgba(0,0,0,.04);
    max-width:1000px;
    margin:0 auto;
    position:relative;
}

.featured-database-card{
    min-width:340px;
    max-width:340px;
    flex-shrink:0;
    scroll-snap-align:start;
}

.whatsapp-cta{
    background:#25D366;
    color:#fff !important;
    padding:18px 40px;
    border-radius:12px;
    font-size:18px;
    font-weight:700;
    text-decoration:none;
    display:inline-block;
    box-shadow:0 10px 25px rgba(37,211,102,.3);
}

@media(max-width:768px){

    .single-database-wrapper{
        padding:30px 15px;
    }

    .database-landing-card{
        padding:25px 15px;
        border-radius:16px;
    }

    .database-landing-card h1{
        font-size:28px !important;
        line-height:1.3;
        word-break:break-word;
    }

    .meta-info-grid{
        grid-template-columns:1fr !important;
        gap:15px !important;
        padding:15px 0 !important;
    }

    .featured-database-card{
        min-width:85%;
        max-width:85%;
    }

    .whatsapp-cta{
        width:100%;
        padding:15px 20px;
        font-size:15px;
        white-space:normal;
        line-height:1.4;
        box-sizing:border-box;
        text-align:center;
    }
}

@media(max-width:480px){

    .featured-database-card{
        min-width:90%;
        max-width:90%;
    }

    .database-landing-card h1{
        font-size:24px !important;
    }
}