/* Mobile responsive styles for modern design */
@media only screen and (max-width : 768px) {
	html {
		-webkit-text-size-adjust: none;
	}
	
	img {
		max-width: 100%;
	}
	
	/* Header adjustments */
	#header {
		width: 100%;
		position: fixed;
		top: 0;
		left: 0;
		z-index: 1000;
	}
	
	.navbar {
		flex-direction: row;
		padding: 0.5rem 1rem;
		gap: 1rem;
		justify-content: space-between;
		align-items: center;
		position: relative;
	}
	
	.nav-brand {
		width: auto;
		text-align: left;
		flex-shrink: 0;
	}
	
	.nav-brand .logo {
		font-size: 1.2rem;
		display: flex;
		align-items: center;
		gap: 0.5rem;
	}
	
	.nav-brand .logo-img {
		width: 32px;
		height: 32px;
		object-fit: cover;
		border-radius: 50%;
	}
	
	.nav-brand .logo-text {
		font-size: 1.1rem;
	}
	
	/* Mobile navigation toggle button */
	.mobile-nav-toggle {
		background: none;
		border: none;
		cursor: pointer;
		display: flex;
		flex-direction: column;
		justify-content: space-around;
		width: 30px;
		height: 30px;
		padding: 0;
		z-index: 1001;
		position: relative;
	}
	
	.hamburger-line {
		width: 100%;
		height: 3px;
		background-color: var(--white);
		transition: all 0.3s ease;
		transform-origin: center;
	}
	
	.mobile-nav-toggle.active .hamburger-line:nth-child(1) {
		transform: rotate(45deg) translate(6px, 6px);
	}
	
	.mobile-nav-toggle.active .hamburger-line:nth-child(2) {
		opacity: 0;
	}
	
	.mobile-nav-toggle.active .hamburger-line:nth-child(3) {
		transform: rotate(-45deg) translate(6px, -6px);
	}
	
	/* Language switch - hide header version on mobile, use menu version instead */
	.language-switch {
		display: none;
	}
	
	/* Mobile navigation menu */
	.nav-menu {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: rgba(74, 69, 69, 0.98);
		backdrop-filter: blur(10px);
		border-radius: 0 0 12px 12px;
		box-shadow: 0 4px 20px rgba(0,0,0,0.3);
		flex-direction: column;
		padding: 1rem 0;
		margin: 0;
		display: none;
		z-index: 1000;
	}
	
	.nav-menu.mobile-menu {
		display: flex;
	}
	
	/* Mobile navigation items */
	.nav-item {
		width: 100%;
		margin: 0;
		padding: 0;
		border: none;
		position: relative;
	}
	
	.nav-item:not(:last-child) {
		border-bottom: 1px solid rgba(255,255,255,0.1);
	}
	
	.nav-item a {
		display: block;
		padding: 1rem 1.5rem;
		color: var(--white);
		text-decoration: none;
		font-size: 1rem;
		font-weight: 500;
		transition: all 0.3s ease;
		position: relative;
		text-align: left;
		pointer-events: auto;
		cursor: pointer;
	}
	
	.nav-item a:hover {
		background-color: rgba(255,255,255,0.1);
		color: var(--gold-accent);
		transform: none;
	}
	
	.nav-item.selected a {
		background-color: rgba(255,255,255,0.15);
		color: var(--gold-accent);
		font-weight: 600;
	}
	
	.nav-item.selected a::before {
		content: '';
		position: absolute;
		left: 0;
		top: 0;
		bottom: 0;
		width: 4px;
		background: var(--gold-accent);
	}
	
	/* Language switch in mobile menu */
	.nav-item.language-item {
		border-top: 1px solid rgba(255,255,255,0.2);
		margin-top: 0.5rem;
		padding-top: 0.5rem;
	}
	
	.nav-item.language-item a {
		background: rgba(255,255,255,0.1);
		margin: 0 1rem;
		border-radius: 8px;
		text-align: center;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0.5rem;
	}
	
	.nav-item.language-item a:hover {
		background: rgba(255,255,255,0.2);
	}
	
	/* Page content adjustments */
	.page {
		margin-top: 70px;
	}
	
	/* Main content adjustments */
	.main-content {
		grid-template-columns: 1fr;
		padding: 1rem;
		gap: 1rem;
	}
	
	.title-section {
		padding: 1.5rem 1rem;
		text-align: center;
	}
	
	.main-title {
		font-size: 1.5rem;
		margin-bottom: 0.5rem;
	}
	
	.page-subtitle {
		font-size: 1rem;
	}
	
	/* Sidebar adjustments */
	.right {
		position: static;
		order: 1;
		width: 100%;
		margin-top: 1rem;
	}
	
	.content-wrapper {
		order: 0;
	}
	
	/* Books page adjustments */
	.books-grid {
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
		gap: 1.2rem;
	}
	
	.book-image {
		padding: 1rem;
	}
	
	.book-content {
		padding: 1rem;
	}
	
	.book-title {
		font-size: 1rem;
	}
	
	.book-publisher {
		font-size: 0.8rem;
	}
	
	.btn-download {
		padding: 0.6rem 1.2rem;
		font-size: 0.85rem;
	}
	
	/* About page adjustments */
	.about-content {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	
	.about-image {
		order: -1;
	}
	
	.profile-image {
		max-width: 250px;
	}
	
	/* Speeches page adjustments */
	.videos-container {
		gap: 1.5rem;
	}
	
	.video-header {
		padding: 1rem;
	}
	
	.video-wrapper {
		padding: 0 1rem 1rem 1rem;
	}
	
	.video-footer {
		padding: 0.8rem 1rem;
	}
	
	/* Gallery page adjustments */
	.gallery-grid {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
		gap: 1rem;
	}
	
	.gallery-image {
		height: 150px;
	}
	
	/* Ashrams page adjustments */
	.ashrams-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	
	.ashram-image {
		height: 280px;
	}
}

/* Small mobile devices */
@media only screen and (max-width : 480px) {
	.navbar {
		padding: 0.5rem;
	}
	
	.nav-brand .logo-text {
		font-size: 1rem;
	}
	
	.nav-brand .logo-img {
		width: 28px;
		height: 28px;
	}
	
	.mobile-nav-toggle {
		width: 26px;
		height: 26px;
	}
	
	.hamburger-line {
		height: 2px;
	}
	
	.nav-item a {
		padding: 0.8rem 1rem;
		font-size: 0.9rem;
	}
	
	.page {
		margin-top: 60px;
	}
	
	.main-content {
		padding: 0.8rem;
		gap: 0.8rem;
	}
	
	.title-section {
		padding: 1rem 0.8rem;
	}
	
	.main-title {
		font-size: 1.3rem;
	}
	
	.page-subtitle {
		font-size: 0.9rem;
	}
	
	/* Books page small mobile */
	.books-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	
	.book-image {
		padding: 0.8rem;
	}
	
	.book-content {
		padding: 0.8rem;
	}
	
	.book-cover {
		max-width: 150px;
	}
	
	.book-title {
		font-size: 0.95rem;
	}
	
	.book-publisher {
		font-size: 0.75rem;
	}
	
	.btn-download {
		padding: 0.5rem 1rem;
		font-size: 0.8rem;
	}
	
	/* About page small mobile */
	.about-content {
		gap: 1rem;
	}
	
	.profile-image {
		max-width: 200px;
	}
	
	.section-title {
		font-size: 1.1rem;
	}
	
	.bio-text {
		font-size: 0.9rem;
	}
	
	/* Gallery page small mobile */
	.gallery-grid {
		grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
		gap: 0.8rem;
	}
	
	.gallery-image {
		height: 120px;
	}
	
	/* Ashrams page small mobile */
	.ashrams-grid {
		gap: 1rem;
	}
	
	.ashram-image {
		height: 250px;
	}
}